/* -- Adobe GoLive JavaScript Library */
/* -- Global Functions */
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 */
function CSFixFct() {
	var d = document; var w = window;
	if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {
		d.location = d.location; }
}
function CSNSFix(action) { 
	var d = document; var w = window;
	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
		if (typeof d.cs == 'undefined') { 
			d.cs = new Object;
			d.cs.csFix = new Object; 
		} else if (CSIsFrame (w) == true) CSFixFct();
		d.cs.csFix.w = w.innerWidth;
		d.cs.csFix.h = w.innerHeight; 
		window.onresize = CSFixFct;
	  }
}
function CSIsFrame (window) {
	var rootWindow = window.parent;
	if (rootWindow == 'undefined') return false;
	for (i = 0; i < rootWindow.frames.length; i++)
		if (window == rootWindow.frames[i]) return true;
	return false;
}
// CSS Write Action Script
// By Matt Ridley
//  Changes in version 1.1
//   * Now deals specifically with IE5 Mac
//   * Now allows choosing a StyleSheet for all other browers (v4 or later)
//   * Now doesn't write a StyleSheet if the URL is "(Empty Reference!)"
function isMSIE() {
	if ((navigator.appName.indexOf("Explorer") != -1) && (parseInt(navigator.appVersion) >= 4)) {
		return true; }
	else {return false;}
}
function isNS() {
	if ((navigator.appName.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion) >= 4)) {
		return true; }
	else {return false;}
}
function isPC() {
	if (navigator.userAgent.indexOf("Win") != -1) {
		return true; }
	else {return false;}
}
function isMac() {
	if (navigator.appVersion.indexOf("PPC") != -1) {
		return true; }
	else {return false;}
}
function doCSSWrite(action) {
theStr="";
	if (isNS()) {
		if (isMac()) {
			theStr=action[1];
		}
		else if (isPC()) {
			theStr=action[2];
		}
	}
	if (isMSIE()) {
		if (isMac()) {
			theStr=action[3];
			if (navigator.userAgent.indexOf("MSIE 5") != -1) {
				theStr=action[5];
			}
		}
		else if (isPC()) {
			theStr=action[4];
		}
	}
	if (action[6]==true) {
		if (isNS()!=true && isMSIE()!=true && parseInt(navigator.appVersion)>=4) {
			theStr=action[7];
		}
	}
	if ((theStr!="") && (theStr!="(Empty Reference!)")) {
		document.write("<LINK HREF=\""+theStr+"\" REL=\"styleSheet\" TYPE=\"text/css\">");
	}
} // end function
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 CSCloseWindow(action) {
	window.close();
}
CSImages=new Array();
function CSPreloadImage(action) {
	if (document.images) { CSImages[CSImages.length]=new Image(); CSImages[CSImages.length-1].src=action[1]; }
}
/* EOF */
