/* -- 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 newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
mustInitImg = true;
function initImgID() {var di = document.images; if (mustInitImg && di) { for (var i=0; i<di.length; i++) { if (!di[i].id) di[i].id=di[i].name; } mustInitImg = false;}}
function findElement(n,ly) {
	var d = document;
	if (browserVers < 4)		return d[n];
	if ((browserVers >= 6) && (d.getElementById)) {initImgID; return(d.getElementById(n))}; 
	var cd = ly ? ly.document : d;
	var elem = cd[n];
	if (!elem) {
		for (var i=0;i<cd.layers.length;i++) {
			elem = findElement(n,cd.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}
function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (i=0;i<array.length;i+=2) {
			img = null; var n = array[i];
			if (d.images) {
				if (d.layers) {img = findElement(n,0);}
				else {img = d.images[n];}
			}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (!img && d.getElementsByName) {
				var elms = d.getElementsByName(n);
				if (elms) {
					for (j=0;j<elms.length;j++) {
						if (elms[j].src) {img = elms[j]; break;}
					}
				}
			}
			if (img) {img.src = array[i+1];}
		}
	}
}
function changeImages() {
	changeImagesArray(changeImages.arguments);
}
function toggleImages() {
	for (var i=0; i<toggleImages.arguments.length; i+=2) {
		if (selected == toggleImages.arguments[i])
			changeImagesArray(toggleImages.arguments[i+1]);
	}
}
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 */
// RadioRollover.action v1.4.2 - October, 2002
// © Copyright 1999 by Walter Blady
// All rights reserved
var RRW3C = document.getElementById ? true : false;
function WBRadioRollover(action) { 
	if (RRVersion()) {
		if (action[1] != "") {
			var buttonObj = null;
			if (window.navigator.userAgent.indexOf("MSIE") > 0 || RRW3C) {
				buttonObj = document.images[action[1]];
			}
			else {
				buttonObj = parseInt(navigator.appVersion.charAt(0)) > 3 ? RRFindImageObject(action[1],0) : document.images[action[1]];
			}
			if (action[2] == 0) {
				if (buttonObj != RRLeaveOnObj) {
					buttonObj.src = action[3];
				}
			}
			else if (action[2] == 1 || action[2] == 2) {
				if (action[2] == 2) {
					buttonObj.src = action[4];
				}
				if (RRLeaveOnObj != "" && RRLeaveOnObj != buttonObj) {
					RRLeaveOnObj.src = RRLeaveOnButton;
				}
				RRLeaveOnObj = buttonObj;
				RRLeaveOnButton = action[3];
			}
		}
		if (action[5].indexOf("Reference!") == -1 && action[5] != "#") {
			var params;
			if (action[6].length < 1) {
				window.location.href = action[5];
			}
			else {
				if (action[6].toLowerCase().indexOf("blank") != -1) {
					var ACNewWindow = window.open(action[5],"newWindow");
				}
				else {
					window.open(action[5], action[6]);
				}
			}
		}
	}
	return;
}
function RRFindImageObject(baseImage, thisLayer) {
	if (thisLayer) {
		var thisDocument = thisLayer.document;
	}
	else {
		var thisDocument = document;
	}
	var imageObj = thisDocument[baseImage];
	if (imageObj) {
		return imageObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			imageObj = RRFindImageObject(baseImage, thisDocument.layers[i]); 
			if (imageObj) {
				break;
			}
		}
	}
	return imageObj;
}
function RRVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}
// ShowOff.action 1.3 - September 2003
// © Copyright 2001 by Walter Blady
// All rights reserved
var SOisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var SOisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var SOW3C = document.getElementById ? true : false;
var SOScope = "", SOStyle = "", SOClose = "", SOaction, SOvis, SOhid;
var SOtimerArray = new Array(), SOboxArray = new Array(), SOprevArray = new Array(), SOtrapArray = new Array();
var SOstartBoxArray = new Array(), SOmenuBoxArray = new Array(), SOboxDivArray = new Array();
var SOactionArray = new Array();
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
	if (!SOisNav4) {
		SOScope = SOW3C ? 'getElementById("' : "all.";
		SOClose = SOW3C ? '")' : "";
		SOStyle = ".style";
	}
}
function WBShowOff(action) { 
	if (SOVersion() && action[3].length > 0) {
		SOactionArray[action[7]] = action;
		SOtrapArray[action[7]] = action[6];
		 if (SOtimerArray[action[7]]) clearTimeout(SOtimerArray[action[7]]);
		if (action[5] == 1 && action[4].length > 0) {
			SOmenuBoxArray[action[7]] = SOGetDivObj(action[4]);
			if (SOmenuBoxArray[action[7]].onmouseover == null) {
				SOmenuBoxArray[action[7]].onmouseover = eval("SOMouseTrapTimerQuit" + action[7]);
				SOmenuBoxArray[action[7]].onmouseout = eval("SOMouseTrap" + action[7]);
			}
		}
		SOboxArray[action[7]] = SOGetObject(action[3]);
		if (action[5] == 1) {
			SOboxDivArray[action[7]] = SOGetDivObj(action[3]);
			if (SOboxDivArray[action[7]].onmouseover == null) {
				SOboxDivArray[action[7]].onmouseover = eval("SOMouseTrapTimerQuit" + action[7]);
				SOboxDivArray[action[7]].onmouseout = eval("SOMouseTrap" + action[7]);
			}
		}
		SOvis = (SOW3C || SOisIE4) ? "visible" : "show";
		SOhid = (SOW3C || SOisIE4) ? "hidden" : "hide";
		if ((action[1] == 1 || action[1] == 2) && action[2].length > 0) {
			SOstartBoxArray[action[7]] = SOGetObject(action[2]);
			SOstartBoxArray[action[7]].visibility = SOhid;
		}
		if (SOprevArray[action[7]]) {
			SOprevArray[action[7]].visibility = SOhid;
		}
		SOboxArray[action[7]].visibility = SOvis;
		SOprevArray[action[7]] = SOboxArray[action[7]];
	}
	else {
		if (SOprevArray[action[7]]) {
			SOMouseTrap()
		}
	}
	return;
}
function SOMouseTrapTimerQuit0() {
	if (SOtimerArray[0]) clearTimeout(SOtimerArray[0]);
	return;
}
function SOMouseTrap0() {
	SOtimerArray[0] = setTimeout("SOMouseTrapp0()", SOtrapArray[0]);
	return;
}
function SOMouseTrapp0() {
	SOprevArray[0].visibility = SOhid;
	if (SOactionArray[0][1] == 2 && SOactionArray[0][2].length > 0) {
		SOstartBoxArray[0] = SOGetObject(SOactionArray[0][2]);
		SOstartBoxArray[0].visibility = SOvis;
	}	
	return;
}
function SOMouseTrapTimerQuit1() {
	if (SOtimerArray[1]) clearTimeout(SOtimerArray[1]);
	return;
}
function SOMouseTrap1() {
	SOtimerArray[1] = setTimeout("SOMouseTrapp1()", SOtrapArray[1]);
	return;
}
function SOMouseTrapp1() {
	SOprevArray[1].visibility = SOhid;
	if (SOactionArray[1][1] == 2 && SOactionArray[1][2].length > 0) {
		SOstartBoxArray[0] = SOGetObject(SOactionArray[1][2]);
		SOstartBoxArray[1].visibility = SOvis;
	}	
	return;
}
function SOMouseTrapTimerQuit2() {
	if (SOtimerArray[2]) clearTimeout(SOtimerArray[2]);
	return;
}
function SOMouseTrap2() {
	SOtimerArray[2] = setTimeout("SOMouseTrapp2()", SOtrapArray[2]);
	return;
}
function SOMouseTrapp2() {
	SOprevArray[2].visibility = SOhid;
	if (SOactionArray[2][1] == 2 && SOactionArray[2][2].length > 0) {
		SOstartBoxArray[2] = SOGetObject(SOactionArray[2][2]);
		SOstartBoxArray[2].visibility = SOvis;
	}	
	return;
}
function SOMouseTrapTimerQuit3() {
	if (SOtimerArray[3]) clearTimeout(SOtimerArray[3]);
	return;
}
function SOMouseTrap3() {
	SOtimerArray[3] = setTimeout("SOMouseTrapp3()", SOtrapArray[3]);
	return;
}
function SOMouseTrapp3() {
	SOprevArray[3].visibility = SOhid;
	if (SOactionArray[3][1] == 2 && SOactionArray[3][2].length > 0) {
		SOstartBoxArray[3] = SOGetObject(SOactionArray[3][2]);
		SOstartBoxArray[3].visibility = SOvis;
	}	
	return;
}
function SOGetObject(obj) {
	var params = eval("document." + SOScope + obj + SOClose + SOStyle);
	return params;
}
function SOGetDivObj(obj) {
	var params = eval("document." + SOScope + obj + SOClose);
	return params;
}
function SOVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4);
}
function CSGoBack1() { history.back() }
function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}
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;
}
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);
}
// Favikon.action v1.0 - March, 2005
// © Copyright 2005 by Walter Blady
// All rights reserved
function WBFavikon(action) {
	if (ACVersion() && action[1] != "") {
		var WBFimage = new Image();
		WBFimage.src = action[1];
		var params = '<link rel="icon" href="' + action[1] + '" type="image/x-icon" />\n';
		params += '<link rel="shortcut icon" href="' + action[1] + '" type="image/x-icon" />';
		self.document.write(params);
	}
	return;
}
function ACVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4);
}
/* EOF */
