﻿/* -- JavaScript Library */CSInit = new Array;function CSScriptInit() {if(typeof(skipPage) != "undefined") { if(skipPage) return; }idxArray = new Array;for(var i=0;i<CSInit.length;i++)	idxArray[i] = i;CSAction2(CSInit, idxArray);}CSStopExecution=false;function CSAction(array) {return CSAction2(CSAct, array);}function CSAction2(fct, array) { 	var result;	for (var i=0;i<array.length;i++) {		if(CSStopExecution) return false; 		var aa = fct[array[i]];		if (aa == null) return false;		var ta = new Array;		for(var j=1;j<aa.length;j++) {			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}				else ta[j]=aa[j];}			} else ta[j]=aa[j];		}					result=aa[0](ta);	}	return result;}CSAct = new Object;function CSSlideNewWindow(action) {var wh = ""if (action[7] || action[8] || action[9] == true) wh=action[4]-125else wh = action[4]var wf = "";	wf = wf + "width=" + action[3];wf = wf + ",height=" + wh;wf = wf + ",resizable=" + (action[5] ? "yes" : "no");wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no");wf = wf + ",menubar=" + (action[7] ? "yes" : "no");wf = wf + ",toolbar=" + (action[8] ? "yes" : "no");wf = wf + ",directories=" + (action[9] ? "yes" : "no");wf = wf + ",location=" + (action[10] ? "yes" : "no");wf = wf + ",status=" + (action[11] ? "yes" : "no");		if(navigator.appVersion.charAt(0) >=4) {var sw=screen.width-20;var sh=screen.height;var newwidth=action[3]; var newheight=action[4];var positionleft=(sw-newwidth)/2;var positiontop=""if (action[7] || action[8] || action[9] == true) positiontop=(sh-newheight)/3;else positiontop=(sh-newheight)/2.5;}newwindow=window.open(action[1],action[2],wf); newwindow.focus()	if(navigator.appVersion.charAt(0) >=4) {	for(width1 = 1 ; width1 < positionleft ; width1 = width1 + 10)	newwindow.moveTo(width1,positiontop)	}}CSExit = new Array;function CSScriptExit() {idxArray = new Array;for(var i=0;i<CSExit.length;i++)	idxArray[i] = i;CSAction2(CSExit, idxArray);}function CSResizeWindow(action) { 	if(navigator.appVersion.charAt(0) >=4) { window.resizeTo (action[1],action[2]) }}CSStateArray = new Object;CSCookieArray = new Object;CSCookieValArray = new Object;function CSWriteCookie(action) {	var name   = "DFT" + action[1];	var hrs    = action[2];	var path   = action[3];	var domain = action[4];	var secure = action[5];		var exp    = new Date((new Date()).getTime() + hrs * 3600000);		var cookieVal = "";	for(var prop in CSCookieArray) {		if(("DFT" + CSCookieArray[prop]) == name) {			if(cookieVal != "") cookieVal += "&";			cookieVal += prop + ":" + escape(CSStateArray[prop]);		}	}	if(hrs != 0)		cookieVal += "; expires=" + exp.toGMTString();	if(path != "")		cookieVal += "; path=" + path;	if(domain != "")		cookieVal += "; domain=" + domain;	if(secure == true)		cookieVal += "; secure";	document.cookie = name + '=' + cookieVal;}function CSReadCookie(action) {	var name    = "DFT" + action[1];	var cookies = document.cookie;	if(cookies == "") return;	var start = cookies.indexOf(name);	if(start == -1) return;	start += name.length + 1;	var end = cookies.indexOf(";", start);	if(end == -1) end = cookies.length;	var cookieVal = cookies.substring(start, end);	var arr = cookieVal.split('&');	for(var i = 0; i < arr.length; i++) {		var a = arr[i].split(':');		CSStateArray[a[0]] = unescape(a[1]);	}	}function CSDefineState(action) {	CSCookieArray[action[1]] = action[3]; }function CSSetState(action) {	CSStateArray[action[1]] = action[2];}function CSInitState(action) {	if(typeof(CSStateArray[action[1]]) == "undefined")		CSStateArray[action[1]] = action[2];}function CSCheckState(action) {	var obj1 = CSStateArray[action[1]];	var obj2 = action[2];	if(typeof(obj1) == "object") {		for(var i=0;i<obj1.length;i++) {			if(obj1[i] != obj2[i])				return false;			}		return true;		}	var res;	var op = action[3];		     if(op == "==") res = (CSStateArray[action[1]] == action[2]);			else if(op == "!=") res = (CSStateArray[action[1]] != action[2]);			else if(op == ">" ) res = (CSStateArray[action[1]] >  action[2]);			else if(op == ">=") res = (CSStateArray[action[1]] >= action[2]);			else if(op == "<" ) res = (CSStateArray[action[1]] <  action[2]);			else if(op == "<=") res = (CSStateArray[action[1]] <= action[2]);		return res;}function CSOpenWindowPrompt(action) {var where = self.location.hrefvar nw = prompt("Enter a new width:","")if (nw != null) {var nh = prompt("Enter a new height:","")}var wf = "";	wf = wf + "width=" + nw;wf = wf + ",height=" + nh;wf = wf + ",resizable=" + (action[1] ? "yes" : "no");wf = wf + ",scrollbars=" + (action[2] ? "yes" : "no");wf = wf + ",menubar=" + (action[3] ? "yes" : "no");wf = wf + ",toolbar=" + (action[4] ? "yes" : "no");wf = wf + ",directories=" + (action[5] ? "yes" : "no");wf = wf + ",location=" + (action[6] ? "yes" : "no");wf = wf + ",status=" + (action[7] ? "yes" : "no");			if (nw == null || nh == null) { 	return null	} else {	window.open(where,'testwin',wf);	}}function CSOpenWindow(action) {	var wf = "";		wf = wf + "width=" + action[3];	wf = wf + ",height=" + action[4];	wf = wf + ",resizable=" + (action[5] ? "yes" : "no");	wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no");	wf = wf + ",menubar=" + (action[7] ? "yes" : "no");	wf = wf + ",toolbar=" + (action[8] ? "yes" : "no");	wf = wf + ",directories=" + (action[9] ? "yes" : "no");	wf = wf + ",location=" + (action[10] ? "yes" : "no");	wf = wf + ",status=" + (action[11] ? "yes" : "no");			window.open(action[1],action[2],wf);}
