/* -- 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 */
}

// SuperAdCarousel.action v1.6 - August, 2003
// © Copyright 1999 by Walter Blady
// All rights reserved
var SACAdurl = new Object();
function WBSuperAdCarousel(action) {
	if (SACVersion() && document.images && action[2] != "" && action[3] > 0) {
		var SACW3C = document.getElementById ? true : false;
		var count, adImg = null;
		for (count = 1; eval("SACAd" + action[3] + "_" + count + "()").toLowerCase() != "end" && count < 61; count++) { }
		count -= 1;
		if (window.navigator.userAgent.indexOf("MSIE") > 0 || SACW3C) {
			adImg = document.images[action[2]];
		}
		else {
			adImg = parseInt(navigator.appVersion.charAt(0)) > 3 ? SACFindImageObject(action[2],0) : document.images[action[2]];
		}
		var thisDate = new Date();
		var thisHour = thisDate.getHours();
		var thisMin = thisDate.getMinutes();
		var thisSec = thisDate.getSeconds();
		if (action[1] == 0) {
			thisSec = (thisSec * thisMin) % count + 1;
			var advert = eval("SACAd" + action[3] + "_" + thisSec + "()");
		}
		else {
			thisMin = (thisMin * thisHour) % count + 1;
			var advert = eval("SACAd" + action[3] + "_" + thisMin + "()");
		}
		if (advert != "") {
			adImg.src = advert;
		}
	}
	return;
}
function SACFindImageObject(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 SACVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}


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);
}