// -- 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);
}
function CSScriptExit() {
idxArray = new Array;
for(var i=0;i<CSExit.length;i++)
	idxArray[i] = i;
CSAction2(CSExit, 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
// ReloadWindow.action v1.0 - September/1999
// Special version for IE browsers
// © Copyright 1999 by Walter Blady
// All rights reserved.
//Set global variable for AdCarouselLinks.
//Use this Action as an action headItem sset to on UNload.
function WBReloadWindow(action) {
	if (RWVersion()) { window.location.reload(); }
	return;
}
// Browser check.
function RWVersion() {
	// Browser must be Explorer and version 3 or greater...
	return (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3);
}
function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}
// AdGoRoundLinks.action v1.3 - December, 2000
// © Copyright 1999 by Walter Blady
// All rights reserved
function WBAdGoRoundLinks(action) {
	if (AGRVersion()) {
		var adlink = eval("AGRAdURL" + (action[1] + 1));
		if (adlink != null) {
			var params;
			if (action[2].length < 1) {
				window.location.href = adlink;
			}
			else {
				if (action[2].toLowerCase().indexOf("blank") != -1) {
					var AGRLNewWindow = window.open(adlink,"newWindow", "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,favorites=yes,resizable=yes");
					return;
				}
				else {
					params = eval(action[2] + ".window.location");
				}
				params.href = adlink;
			}
		}
	}
	return;
}
function AGRLVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}
// AdGoRound.action v1.3.1 - September, 2001
// © Copyright 1999 by Walter Blady
// All rights reserved
var AGRAdImg, AGRAdver = null, AGRExposure = 0, AGRCount = 1, AGRAction = null, AGRFlag = false;
var AGRTimer = 0, AGRTimerArray = new Array(), AGRActionArray = new Array();
var AGRAdArray = new Array(), AGRCountArray = new Array();
function WBAdGoRound(action) {
	if (AGRVersion() && document.images && action[1] != "" && action[2] > 0) {
		AGRActionArray[action[4]] = action;
		AGRAdArray[action[4]] = action[2];
		AGRCountArray[action[4]] = 1;
		AGRAdImg = null;
		var AGRW3C = document.getElementById ? true : false;
		if (action[5]) {
			AGRCountArray[action[4]] = (Math.floor((Math.random() * 10000)) % action[2]) + 1;
		}
		if (window.navigator.userAgent.indexOf("MSIE") > 0 || AGRW3C) {
			AGRAdImg = document.images[action[1]];
		}
		else {
			AGRAdImg = parseInt(navigator.appVersion.charAt(0)) > 3 ? AGRFindImageObject(action[1],0) : document.images[action[1]];
		}
		if (AGRTimerArray[action[4]] == null) {
			AGRTimerArray[action[4]] = AGRAdImg;
			AGRDisplay(AGRAdImg, AGRActionArray[action[4]], AGRAdArray, AGRCountArray, action[4]);
		}
	}
	return;
}
function AGRDisplay(AGRAdImg, AGRAction, AGRAd, AGRCount, index) {
	if (AGRCount[index] > AGRAd[index]) {
		AGRCount[index] = 1;
	}
	AGRAdver = eval("AGRAd" + (AGRAction[4] + 1) + "_" + AGRCount[index]);
	if (AGRAdver != null) {
		AGRAdImg.src = eval("AGRAdver()");
		if (AGRExposure == 0) {
			AGRExposure = AGRAction[3];
		}
	}
	AGRCount[index] = AGRCount[index] + 1;
	AGRTimerArray[AGRAction[4]] = AGRAdImg;
	AGRTimer = "AGRNextAd" + AGRAction[4] + "()";
	var t = setTimeout(AGRTimer, AGRExposure*1000);
	return;
}
function AGRNextAd0() {
	AGRDisplay(AGRTimerArray[0], AGRActionArray[0], AGRAdArray, AGRCountArray, 0);
	return;
}
function AGRNextAd1() {
	AGRDisplay(AGRTimerArray[1], AGRActionArray[1], AGRAdArray, AGRCountArray, 1);
	return;
}
function AGRNextAd2() {
	AGRDisplay(AGRTimerArray[2], AGRActionArray[2], AGRAdArray, AGRCountArray, 2);
	return;
}
function AGRNextAd3() {
	AGRDisplay(AGRTimerArray[3], AGRActionArray[3], AGRAdArray, AGRCountArray, 3);
	return;
}
function AGRNextAd4(action) {
	AGRDisplay(AGRTimerArray[4], AGRActionArray[4], AGRAdArray, AGRCountArray, 4);
	return;
}
function AGRNextAd5(action) {
	AGRDisplay(AGRTimerArray[5], AGRActionArray[5], AGRAdArray, AGRCountArray, 5);
	return;
}
function AGRNextAd6() {
	AGRDisplay(AGRTimerArray[6], AGRActionArray[6], AGRAdArray, AGRCountArray, 6);
	return;
}
function AGRNextAd7() {
	AGRDisplay(AGRTimerArray[7], AGRActionArray[7], AGRAdArray, AGRCountArray, 7);
	return;
}
function AGRNextAd8(action) {
	AGRDisplay(AGRTimerArray[8], AGRActionArray[8], AGRAdArray, AGRCountArray, 8);
	return;
}
function AGRNextAd9(action) {
	AGRDisplay(AGRTimerArray[9], AGRActionArray[9], AGRAdArray, AGRCountArray, 9);
	return;
}
function AGRFindImageObject(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 = SACFindImageObject(baseImage, thisDocument.layers[i]); 
			if (imageObj) {
				break;
			}
		}
	}
	return imageObj;
}
function AGRVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}
// OpenPopUp 1.4 action by Nate Baldwin, www.mindpalette.com, copyright 2002
function MPOpenPopup(action) {
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];
	}
if (action[16] == true) {
	posX = 0;
	posY = 0;
	action[2] = screen.availWidth;
	action[3] = screen.availHeight;
	}
for (i=5; i<12; i++) {
	action[i] == true ? action[i] = "yes" : action[i] = "no";
	}
var windowOptions = "";
windowOptions += "width=" + action[2];
windowOptions += ",height=" + action[3];
windowOptions += ",resizable=" + action[11];
windowOptions += ",scrollbars=" + action[5];
windowOptions += ",menubar=" + action[6];
windowOptions += ",toolbar=" + action[9];
windowOptions += ",directories=" + action[7];
windowOptions += ",location=" + action[10];
windowOptions += ",status=" + action[8];
windowOptions += ",left=" + posX;
windowOptions += ",top=" + posY;
window.open(action[15], action[1], windowOptions);
if (action[14] != "" && action[14] != "#" && action[14] != "(EmptyReference!)" && action[14] != "(Empty Reference!)")
	window.location = action[14];
}
function CSOpenPositionWindow(action) {
// Matt Ridley, Dec. '98
	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");	
	wf = wf + ",left=" + action[12];
	wf = wf + ",top=" + action[13];	
	window.open(action[1],action[2],wf);
}
function CSGoBack1() { history.back() }
// EOF
