// -- Adobe GoLive JavaScript Library// -- Global FunctionsCSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);CSIsW3CDOM = ((document.getElementById) && !(IsIE()&&CSBVers<6)) ? true : false;function IsIE() { return CSAg.indexOf("MSIE") > 0;}function CSIEStyl(s) { return document.all.tags("div")[s].style; }function CSNSStyl(s) { if (CSIsW3CDOM) return document.getElementById(s).style; else return CSFindElement(s,0);  }CSIImg=false;function CSInitImgID() {if (!CSIImg && document.images) { for (var i=0; i<document.images.length; i++) { if (!document.images[i].id) document.images[i].id=document.images[i].name; } CSIImg = true;}}function CSFindElement(n,ly) { if (CSBVers<4) return document[n];	if (CSIsW3CDOM) {CSInitImgID();return(document.getElementById(n));}	var curDoc = ly?ly.document:document; var elem = curDoc[n];	if (!elem) {for (var i=0;i<curDoc.layers.length;i++) {elem=CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}	return elem;}function CSGetImage(n) {if(document.images) {return ((!IsIE()&&CSBVers<5)?CSFindElement(n,0):document.images[n]);} else {return null;}}CSDInit=false;function CSIDOM() { if (CSDInit)return; CSDInit=true; if(document.getElementsByTagName) {var n = document.getElementsByTagName('DIV'); for (var i=0;i<n.length;i++) {CSICSS2Prop(n[i].id);}}}function CSICSS2Prop(id) { var n = document.getElementsByTagName('STYLE');for (var i=0;i<n.length;i++) { var cn = n[i].childNodes; for (var j=0;j<cn.length;j++) { CSSetCSS2Props(CSFetchStyle(cn[j].data, id),id); }}}function CSFetchStyle(sc, id) {	var s=sc; while(s.indexOf("#")!=-1) { s=s.substring(s.indexOf("#")+1,sc.length); if (s.substring(0,s.indexOf("{")).toUpperCase().indexOf(id.toUpperCase())!=-1) return(s.substring(s.indexOf("{")+1,s.indexOf("}")));}	return "";}function CSGetStyleAttrValue (si, id) {	var s=si.toUpperCase();	var myID=id.toUpperCase()+":";	var id1=s.indexOf(myID);	if (id1==-1) return "";	s=s.substring(id1+myID.length+1,si.length);	var id2=s.indexOf(";");	return ((id2==-1)?s:s.substring(0,id2));}function CSSetCSS2Props(si, id) {	var el=document.getElementById(id);	if (el==null) return;	var style=document.getElementById(id).style;	if (style) {		if (style.left=="") style.left=CSGetStyleAttrValue(si,"left");		if (style.top=="") style.top=CSGetStyleAttrValue(si,"top");		if (style.width=="") style.width=CSGetStyleAttrValue(si,"width");		if (style.height=="") style.height=CSGetStyleAttrValue(si,"height");		if (style.visibility=="") style.visibility=CSGetStyleAttrValue(si,"visibility");		if (style.zIndex=="") style.zIndex=CSGetStyleAttrValue(si,"z-index");	}}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);}CSInit = new Array;CSExit = new Array;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}// -- Action Functions// OpenPopUp 1.0 action by Nate Baldwin, www.mindpalette.comfunction MPOpenPopup(action) {for (i=5; i<11; i++) {	action[i] == false ? action[i] = 0 : action[i] = 1;	}var posX = 0;var posY = 0;if (action[4] == true) {	posX = ((screen.availWidth/2)-(action[2]/2));	posY = ((screen.availHeight/2)-(action[3]/2));	} else {	posX = action[12];	posY = action[13];	}window.open(action[15],action[1],"height="+action[3]+",width="+action[2]+",resizable="+action[11]+",toolbar="+action[9]+",menubar="+action[6]+",directories="+action[7]+",scrollbars="+action[5]+",left="+posX+",top="+posY);if (action[14] != "" && action[14] != "#" && action[14] != "(EmptyReference!)" && action[14] != "(Empty Reference!)") window.location = action[14];}function CSdigitalclock(action){img1 = CSGetImage(action[1]);img2 = CSGetImage(action[2]);img3 = CSGetImage(action[3]);img4 = CSGetImage(action[4]);usemilitary = action[5];giflocation = action[6];path = giflocation.substring(0, giflocation.length - 5);extension = (giflocation.indexOf("jpg") != -1) ? (".jpg") : (".gif");digClock();}function digClock() {   now = new Date();hours = now.getHours();theMonth = now.getMonth();if(navigator.appVersion.indexOf("MSIE 5.0; Macintosh") != -1) {	if (theMonth <= 11 && theMonth >= 4) { hours = hours + 1 };	if (hours == 24) { hours = 0 };	}minutes = now.getMinutes();hours = ((hours > 12 && usemilitary == false) ? hours -12 : hours);if (hours >= 0 && hours <=9) hours = "0" + hours;if (usemilitary == false && hours == 00) { hours = 12 };if (minutes >= 0 && minutes <=9) minutes = "0" + minutes;hours = "" + hours;minutes = "" + minutes;hour1 = hours.substring(0,1);hour2 = hours.substring(1,2);minutes1 = minutes.substring(0,1);minutes2 = minutes.substring(1,2);updater();}	function updater() {img1.src = path + hour1 + extension;img2.src = path + hour2 + extension;img3.src = path + minutes1 + extension;img4.src = path + minutes2 + extension;theTimer = setTimeout("digClock()",1000);}function MPDetectImg() {var MPData = unescape(location.search);var MPImage = "";var MPImageX = "";var MPImageY = "";if (MPData != "") {	var trimString = MPData.substring(1);	if (trimString != "") {		var allPairs = trimString.split("*");		for (i=0; i<allPairs.length; i++) {			var thisPair = allPairs[i];			var splitPair = thisPair.split("=");			if (splitPair[0] == "MPImage") {				MPImage = splitPair[1];				}			if (splitPair[0] == "MPImageX") {				MPImageX = splitPair[1];				}			if (splitPair[0] == "MPImageY") {				MPImageY = splitPair[1];				}			}		}				if (MPImage != "" && MPImage != "#") {			document.write("<img src=\""+MPImage+"\" alt=\"\"");			}		if (MPImageX != "" && MPImageY != "" && MPImageX != 0 && MPImageY != 0) {			document.write(" width=\""+MPImageX+"\" height=\""+MPImageY+"\"");			}		if (MPImage != "" && MPImage != "#") {			document.write(" border=\"0\">");			}}}window.onload = MPFocusWin1;var counter = 0;function MPFocusWin1() {if (counter == 0) {	window.focus();	}}function MPDetectTitle() {var MPData2 = unescape(location.search);var MPTitle = "";if (MPData2 != "") {	var trimString2 = MPData2.substring(1);	if (trimString2 != "") {		var allPairs2 = trimString2.split("*");		for (i=0; i<allPairs2.length; i++) {			var thisPair = allPairs2[i];			var splitPair = thisPair.split("=");			if (splitPair[0] == "MPTitle") {				MPTitle = splitPair[1];				}			}			if (MPTitle != "" && MPTitle != "#") {				document.write("<title>"+MPTitle+"</title>");				} else {				document.write("<title>Popup Window</title>");				}	}}}window.onload = MPFocusWin1;var counter = 0;function MPFocusWin1() {if (counter == 0) {	window.focus();	}}window.onload = MPFocusWin1;var counter = 0;function MPCloseWin1() {counter++;self.close();}function MPFocusWin1() {if (counter == 0) {window.focus();}}SSnumimg=1; SSsens2=-1;SSsens3=-1function CSSlideShow(action) {SSmax=action[2]SSimgNom=action[1]SSloop=action[4]SSsens=action[3] SSpalin=action[5]var SSimg = null;	if (document.images) {		if (!IsIE()&&CSBVers<5) SSimg = CSFindElement(SSimgNom,0);		else SSimg = document.images[SSimgNom];SSstr=SSimg.srcSSn=SSstr.lengthSSp=SSn-6SSpstr=SSstr.substring(0,SSp)SSnimg=SSstr.substring(SSp,SSp+2)SSformat=SSstr.substring(SSp+2,SSn)if (SSformat==".jpg" || SSformat==".JPG" || SSformat==".gif" || SSformat==".GIF"){}else{ alert("Image extension must be .jpg or .gif (case sensitive). Images must be numbered 01, 02 ...")}slide(SSmax,SSformat,SSpstr,SSnimg,SSimgNom,SSloop,SSpalin)}}function slide(SSmax,SSformat,SSpstr,SSnimg,SSimgNom,SSloop,SSpalin){if (SSsens2==true) {SSsens=true}if (SSsens2==false) {SSsens=false}if (SSsens==true) {SSsuite=SSnumimg-1	if (SSnumimg>SSmax)SSsuite=SSmax	if (SSnumimg<=1 & SSloop==true & SSpalin!=true) { SSsuite=SSmax }	if (SSnumimg<=1 & SSloop==true & SSpalin==true) { 		if (SSsens2==-1 & SSsens3==-1) {SSsuite=SSmax;SSsens3=1} else { SSsuite=SSnumimg+1; SSsens2=false }}	if (SSnumimg<=1 & SSloop!=true & SSpalin!=true) {		if  (SSsens2==-1 & SSsens3==-1) { SSsuite=SSmax;SSsens3=1 } else {SSsuite=SSnumimg; SSfini()}}}else{SSmax=SSmax-1SSsuite=SSnumimg+1	if (SSnumimg>SSmax & SSloop==true & SSpalin!=true) { SSsuite=1}	if (SSnumimg>SSmax & SSloop==true & SSpalin==true) {SSsuite=SSnumimg-1; SSsens2=true }	if (SSnumimg>SSmax & SSloop!=true &  SSpalin!=true) { SSsuite=SSnumimg;SSfini() }	if (SSnumimg<1) SSsuite=1}SSnumimg=SSsuiteif (SSsuite<10) {	SSaller="0"+SSsuite	}	else SSaller=SSsuiteSSsource=SSpstr+SSaller+SSformatvar SSimg = null;	if (document.images) {		if (!IsIE()&&CSBVers<5) SSimg = CSFindElement(SSimgNom,0);		else SSimg = document.images[SSimgNom];		if (SSimg) SSimg.src = SSsource;	}}function SSfini() {}function CSCloseWindow() { if (self.parent.frames.length != 0) {	self.parent.close()		} else {	window.close()	}}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);}function MPShowFormResults() {var MPData = unescape(location.search);var MPString = "";if (MPData != "") {	var trimString = MPData.substring(1);	if (trimString != "") {		var allPairs = trimString.split("&");		for (i=0; i<allPairs.length; i++) {			var thisPair = allPairs[i];			var splitPair = thisPair.split("=");			var thisName = unescape(splitPair[0]);			var thisValue = unescape(splitPair[1]);			MPString += "<b>"+thisName+":</b> "+thisValue+"<br>\n";			}		}	}document.write(MPString);}function MPImageWindow(action) {for (i=10; i<16; i++) {	if (action[i] == false) {		action[i] = 0;		} else {		action[i] = 1;		}	}var posX = 0;var posY = 0;if (action[9] == true) {	posX = ((screen.availWidth/2)-(action[7]/2));	posY = ((screen.availHeight/2)-(action[8]/2));	} else {	posX = action[16];	posY = action[17];	}	var queryString = "?*MPImage="+action[1]+"*MPImageX="+action[2]+"*MPImageY="+action[3]+"*MPTitle="+action[4]+"*";action[5] += queryString;	window.open(action[5],action[6],"height="+action[8]+",width="+action[7]+",toolbar="+action[14]+",menubar="+action[11]+",directories="+action[12]+",scrollbars="+action[10]+",left="+posX+",top="+posY);}// EOF