/* -- Adobe GoLive 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 CSClickReturn () {	var bAgent = window.navigator.userAgent; 	var bAppName = window.navigator.appName;	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))		return true; /* dont follow link */	else return false; /* dont follow link */}function CSCloseWindow() { if (self.parent.frames.length != 0) {	self.parent.close()		} else {	window.close()	}}function CSPDFredirect(action) {        if(navigator.mimeTypes && navigator.mimeTypes["application/pdf"] && navigator.mimeTypes["application/pdf"].enabledPlugin) {		location.href=action[1]	}    else if (navigator.appName == "Microsoft Internet Explorer") {       	x = confirm("The page you are trying to view requires the Adobe Portable Document Format (.PDF) browser plug-in or the Adobe Acrobat Reader application. We could not detect if your browser has this plug-in installed. To attempt to view the page anyway, click OK. Otherwise click CANCEL to view an alternate page")		if (x == true)  location.href=action[1]     }	else {		x = confirm("Your browser may not be able to display PDF files. To attempt to view the PDF page anyway, click OK. Otherwise click CANCEL to view an alternate page")		if (x == true)  location.href=action[1] 	}         }// START FORM CALCULATOR 1.0.1 FUNCTIONS (www.mindpalette.com)if (typeof MPFormCalcStoredVars == "undefined") var MPFormCalcStoredVars = new Array();MPFormCalcStoredVars['val1var'] = 2000;MPFormCalcStoredVars['val2var'] = 6000;function MPFormCalcMain(action) {	var formName = action[1];	var field1 = MPFormCalcTrim(action[2]);	var static1 = action[3];	var var1 = action[4];	var operation = action[5];	var field2 = MPFormCalcTrim(action[6]);	var static2 = action[7];	var var2 = action[8];	var roundOff = action[9];	var forceDec = action[10];	var absVal = action[11];	var result_field = action[12];	var result_id = action[13];	var result_var = action[14];	var round_type = action[15];	var commas = action[16];	var minSet = action[17];	var minVal = parseFloat(action[18]);	var maxSet = action[19];	var maxVal = parseFloat(action[20]);	var go = true;	var numVal1 = 0;	var numVal2 = 0;	if (typeof document.forms[formName] == 'undefined') formName = 0;	if (typeof document.forms[formName] == 'undefined') go = false;	if (go) {		var thisForm = document.forms[formName];		numVal1 += MPFormCalcBuildNum(thisForm, field1, static1, var1);		if (action[6] != '' || static2 != '' || var2 != '') {			numVal2 += MPFormCalcBuildNum(thisForm, field2, static2, var2);			numVal1 = MPFormCalcDoOp(numVal1, operation, numVal2);			}		if (minSet && numVal1 < minVal) numVal1 = minVal;		if (maxSet && numVal1 > maxVal) numVal1 = maxVal;		if (roundOff != '') numVal1 = MPFormCalcRound(numVal1, roundOff, round_type);		if (absVal == true) numVal1 = Math.abs(numVal1);		if (commas == true || forceDec > 0) numVal1 = MPFormCalcFormatString(numVal1, forceDec, commas);		if (result_id != '') MPFormCalcDivText(result_id, numVal1);		if (result_var != '') MPFormCalcStoredVars[result_var] = numVal1;		if (result_field != '') thisForm.elements[result_field].value = numVal1;		}	}function MPFormCalcVarType(thisField) {	var fieldType = false;	if (typeof thisField.type != 'undefined') fieldType = thisField.type;	if (!fieldType) if (thisField[0].type != 'undefined') fieldType = 'group';	if (!fieldType) fieldType = 'undefined';	return fieldType;	}function MPFormCalcInArray(needle, haystack) {	results = false;	for (var n=0; n<haystack.length; n++) {		if (haystack[n] == needle) {			results = true;			break;			}		}	return results;	}function MPFormCalcTrim(inString) {	var frontIndex = 0;	var backIndex = inString.length - 1;	var trimList = new Array(" ", "\t", "\n", "\r");	while (MPFormCalcInArray(inString.charAt(frontIndex), trimList)) frontIndex++;	while (MPFormCalcInArray(inString.charAt(backIndex), trimList)) backIndex--;	return inString.substring(frontIndex, (backIndex + 1));	}function MPFormCalcTrimArray(thisArray) {	var results = new Array();	var count = 0;	for (var n=0; n<thisArray.length; n++) {		var thisVal = MPFormCalcTrim(thisArray[n]);		if (thisVal != '') {			results[count] = MPFormCalcTrim(thisArray[n]);			count++;			}		}	return results;	}function MPFormCalcDoOp(num1, operation, num2) {	results = 0;	if (operation == 1) results = num1 - num2;		else if (operation == 2) results = num1 * num2;		else if (operation == 3) results = num1 / num2;		else if (operation == 4) results = num1 + ((num2 / 100) * num1);		else if (operation == 5) results = num1 - ((num2 / 100) * num1);		else results = num1 + num2;	return results;	}function MPFormCalcGetNum(thisString) {	thisString = thisString+"";	var result = "";	var regEx =  /^[0-9.]/;	for (var n=0; n<thisString.length; n++) {		var thisChar = thisString.charAt(n);		if (regEx.test(thisChar)) result += thisChar;		}	if (result == '.' || result == 'NaN') result = 0;	result = (result == '') ? 0 : parseFloat(result);	if (result == "NaN") result = 0;	return result;	}function MPFormCalcBuildNum(thisForm, fields, staticVal, varVal) {	var numVal = 0;	numVal += MPFormCalcGetNum(staticVal);	if (varVal != '') {		if (typeof MPFormCalcStoredVars[varVal] != "undefined") numVal += MPFormCalcGetNum(MPFormCalcStoredVars[varVal]);		}	if (fields != '') {		fieldList = MPFormCalcTrimArray(fields.split(','));		for (var n=0; n<fieldList.length; n++) {			thisField = fieldList[n];			if (thisField != '' && typeof thisForm.elements[thisField] != 'undefined') thisField = thisForm.elements[thisField];			numVal += MPFormCalcFlatten(thisField);			}		}	return numVal;	}function MPFormCalcFlatten(passedField) {	var numVal = 0;	fieldArray = (MPFormCalcVarType(passedField) != "group") ? new Array(passedField) : passedField;	for (var n=0; n<fieldArray.length; n++) {		var thisField = fieldArray[n];		var fieldType = MPFormCalcVarType(thisField);		if (fieldType == "text" || fieldType == "textarea" || fieldType == "hidden" || fieldType == "password") {			numVal = MPFormCalcDoOp(numVal, 0, MPFormCalcGetNum(thisField.value));			} else if (fieldType == "select-one")			numVal = MPFormCalcDoOp(numVal, 0, MPFormCalcGetNum(thisField.options[thisField.options.selectedIndex].value));			else if (fieldType == "select-multiple") {			var thisSum = 0;			for (var i=0; i<thisField.length; i++) {				if (thisField.options[i].selected) {					var selection = MPFormCalcGetNum(thisField.options[i].value);					thisSum += selection;					}				}			numVal = MPFormCalcDoOp(numVal, 0, thisSum);			}			else if (fieldType == "checkbox" || fieldType == "radio") {			if (typeof thisField.length != "undefined") {				var thisSum = 0;				for (var i=0; i<thisField.length; i++) {					if (thisField[i].checked) thisSum += MPFormCalcGetNum(thisField[i].value);					}				numVal = MPFormCalcDoOp(numVal, 0, thisSum);				} else if (thisField.checked) {				numVal = MPFormCalcDoOp(numVal, 0, MPFormCalcGetNum(thisField.value));				}			}		}	return numVal;	}function MPFormCalcRound(number, places, type) {	var precision = (places != 0) ? Math.pow(10, Math.abs(places)) : 0;	if (places > 0) number = number * precision;		else if (places < 0) number = number / precision;	if (type == 2) number = Math.ceil(number);		else if (type == 1) number = Math.floor(number);		else number = Math.round(number);	if (places > 0) number = number / precision;		else if (places < 0) number = number * precision;	return number;	}function MPFormCalcSplitIntDec(number) {	string = number+'';	if (string.indexOf('.') > -1) var results = string.split('.');		else results = new Array(string, '');	return results;	}function MPFormCalcFormatString(number, force, commas) {	var string = number+"";	if (force > 0) {		var temp = MPFormCalcSplitIntDec(string);		var integer = temp[0];		var decimal = temp[1];		while (decimal.length < force) { decimal+="0" };		string = integer+'.'+decimal;		}	if (commas) {		var temp = MPFormCalcSplitIntDec(string);		var integer = temp[0];		var decimal = '.'+temp[1];		var last = (integer.length - 1);		if (last > 2) {			var results = "";			var n = last;			while (n>-1) {				x = 1;				while (x<4 && n>-1) {					results = string.charAt(n) + results;					n--;					x++;					}				if (n>-1) results = ','+results;				}			string = results+decimal;			}		}	return string;	}function MPFormCalcDivText(div, text) {	if (document.layers) {		if (typeof eval("document."+div+".document") != "undefined") {			with (eval("document."+div+".document")) {				open();				write("<"+"HTML"+"><"+"HEAD"+"><"+"/HEAD"+"><"+"BODY"+">"+text+"<"+"/BODY"+"><"+"/HTML"+">");				close();				}			}		} else if (document.all && typeof document.all[div] != "undefined") {		document.all[div].innerHTML = text;		} else if (document.getElementById && !document.all && typeof document.getElementById(div) != "undefined") {		document.getElementById(div).innerHTML = text;		}	}// END FORM CALCULATOR 1.0 FUNCTIONS//-->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);}var DJcmonths=new Array();DJcmonths[1]="January";DJcmonths[2]="February";DJcmonths[3]="March";DJcmonths[4]="April";DJcmonths[5]="May";DJcmonths[6]="June";DJcmonths[7]="July";DJcmonths[8]="August";DJcmonths[9]="September";DJcmonths[10]="October";DJcmonths[11]="November";DJcmonths[12]="December";var DJtoday=new Date();var DJmonth=DJcmonths[DJtoday.getMonth() + 1];var DJdate=DJtoday.getDate();var DJyear=DJtoday.getYear();if (DJyear < 2000)    DJyear = DJyear + 1900;function CSDJCurrentDateCode(action){	document.write(DJmonth + " " + DJdate + ", " + DJyear);}function getCookie(thecookie){	tempString= thecookie + "=";	if(document.cookie.length>0){		start = document.cookie.indexOf(tempString);		if(start!=-1){			end = document.cookie.indexOf(";",start);			if(end==-1){end=document.cookie.length;}			start += tempString.length;			return unescape(document.cookie.substring(start,end))		}	}}function setCookie(thecookie,value,expire){	cookieExpires = new Date	cookieExpires.setMonth(cookieExpires.getMonth() + 6)	document.cookie = thecookie + "=" + escape(value) + ";expires=" + cookieExpires.toGMTString();}function testCookie(thecookie){	if(getCookie(thecookie)){		return(getCookie(thecookie));	}else{		return false;	}}function CSredPrompt(action) {	var thecookie = action[5]	if(testCookie(action[5]) && action[4] == true){				location.href=getCookie(action[5]);	} else {	var x = 0;	}		function kill() {	alert(action[3]);	x = 1;	var enter = prompt(action[1],action[2]); 	if (enter == action[6]){setCookie(action[5], action[7]);location.href=action[7];}	else if (enter == action[8]){setCookie(action[5], action[9]);location.href=action[9];}	else if (enter == action[10]){setCookie(action[5], action[11]);location.href=action[11];}	else if (enter == action[12]){setCookie(action[5], action[13]);location.href=action[13];}	else if (enter == action[15]){setCookie(action[5], action[16]);location.href=action[16];}	else if (enter == action[2]){kill();}	else if (enter == null) return	else  kill()	}	if (x == 0) {	var enter = prompt(action[1],action[2]); 	if (enter == action[6]){setCookie(action[5], action[7]);location.href=action[7];}	else if (enter == action[8]){setCookie(action[5], action[9]);location.href=action[9];}	else if (enter == action[10]){setCookie(action[5], action[11]);location.href=action[11];}	else if (enter == action[12]){setCookie(action[5], action[13]);location.href=action[13];}	else if (enter == action[14]){setCookie(action[5], action[15]);location.href=action[15];}	else if (enter == action[2]){kill();}	else if (enter == null) return	else  kill()	}}function CSCSSRedirect(action) { if (navigator.platform.indexOf("Win32") != -1) { os = "windows" };if (navigator.platform.indexOf("Mac") != -1) { os = "mac" };if (navigator.platform.indexOf("x") != -1 || navigator.platform.indexOf("BSD") != -1 || navigator.platform.indexOf("S") != -1) { os = "unix" };if (navigator.appName.indexOf("Microsoft") != -1) { browser = "IE" };if (navigator.appName.indexOf("Netscape") != -1) { browser = "NN" };if (navigator.appVersion.indexOf("4.") != -1) { version = 4 };if (navigator.appVersion.indexOf("5.") != -1) { version = 5 };var tag='<LINK REL="styleSheet" TYPE="text/css" HREF="'+action[2]+'" >';var type=action[1];	if(type==0 && os=="mac" && browser=="NN" && version==4) { document.write(tag) }	else 	if(type==1 && os=="mac" && browser=="NN" && version==5) { document.write(tag) }	else 	if(type==2 && os=="windows" && browser=="NN" && version==4) { document.write(tag) }	else 	if(type==3 && os=="windows" && browser=="NN" && version==5) { document.write(tag) }	else 	if(type==4 && os=="unix" && browser=="NN" && version==4) { document.write(tag) }	else 	if(type==5 && os=="unix" && browser=="NN" && version==5) { document.write(tag) }	else 	if(type==6 && os=="mac" && browser=="IE") { document.write(tag) }	else 	if(type==7 && os=="windows" && browser=="IE") { document.write(tag) }}function timeRedirect(action) {var now = new Date();var hours = now.getHours();var timeValue = action[1];if (timeValue >= 12) { timeValue = timeValue - 12; } /* deals with 24-hour time */if (action[2] == true) { timeValue += 12; } /* deals with PM times */if (hours < timeValue && action[4] != "(Empty Reference!)" && action[4] != "(EmptyReference!)" && action[3] == true) {window.location = action[4]; }if (hours >= timeValue && action[6] != "(Empty Reference!)" && action[6] != "(EmptyReference!)" && action[5] == true) {window.location = action[6]; }}