// -- Adobe GoLive JavaScript Library// -- Global Functions// SACAd.scpt. SuperAdCarousel functions v 1.1.















































// 1st Ad group max 60 entries...















































function SACAd1_01() { SACAdurl[1] = "http://www.hiway16.com/ace/"; return SACAd = "http://www.hiway16.com/comimages/images/tiace.gif"; }















































function SACAd1_02() { SACAdurl[1] = "http://www.bcnorth.ca/"; return SACAd = "http://www.hiway16.com/comimages/images/tiBCNorth.jpg"; }















































function SACAd1_03() { SACAdurl[1] = "http://www.hiway16.com/windsor/"; return SACAd = "http://www.hiway16.com/comimages/images/tiwindsor.gif"; }















































function SACAd1_04() { SACAdurl[1] = "http://www.hiway16.com/quality/"; return SACAd = "http://www.hiway16.com/comimages/images/tiqual.gif"; }















































function SACAd1_05() { SACAdurl[1] = "http://www.hiway16.com/rlestate/"; return SACAd = "http://www.hiway16.com/comimages/images/ticald.gif"; }















































function SACAd1_06() { SACAdurl[1] = "http://www.hiway16.com/granisle/"; return SACAd = "http://www.hiway16.com/comimages/images/tiGranisle.jpg"; }















































function SACAd1_07() { SACAdurl[1] = "http://www.hiway16.com/capri/"; return SACAd = "http://www.hiway16.com/comimages/images/ticapri.gif"; }















































function SACAd1_08() { SACAdurl[1] = "http://www.bcnorth.ca/champion/"; return SACAd = "http://www.hiway16.com/comimages/images/tiBaerental.jpg"; }















































function SACAd1_09() { SACAdurl[1] = "http://www.bcnorth.ca/hlh/"; return SACAd = "http://www.hiway16.com/comimages/images/tiharrison.jpg"; }















































function SACAd1_10() { SACAdurl[1] = "http://www.hoskinsford.com/"; return SACAd = "http://www.hiway16.com/comimages/images/tihosk2.gif"; }















































function SACAd1_11() { SACAdurl[1] = "http://www.hiway16.com/apex/"; return SACAd = "http://www.hiway16.com/comimages/images/tiApex.gif"; }















































function SACAd1_12() { SACAdurl[1] = "http://www.northernhorsesupply.com"; return SACAd = "http://www.hiway16.com/comimages/images/tiNHS.gif"; }















































function SACAd1_13() { SACAdurl[1] = "http://www.hiway16.com/northline/"; return SACAd = "http://www.hiway16.com/comimages/images/tinortli.gif"; }















































function SACAd1_14() { SACAdurl[1] = "http://www.hiway16.com/oscar/"; return SACAd = "http://www.hiway16.com/comimages/images/tiosc.gif"; }















































function SACAd1_15() { SACAdurl[1] = "http://www.bandstra.com/"; return SACAd = "http://www.hiway16.com/comimages/images/tibandstra.gif"; }















































function SACAd1_16() { SACAdurl[1] = "http://www.highway16.com/rainbow/"; return SACAd = "http://www.hiway16.com/comimages/images/tirainbow.jpg"; }















































function SACAd1_17() { SACAdurl[1] = "http://www.highway16.com/schoolhouse/"; return SACAd = "http://www.hiway16.com/comimages/images/tischool.jpg"; }















































function SACAd1_18() { SACAdurl[1] = "http://www.highway16.com/aurora/"; return SACAd = "http://www.hiway16.com/comimages/images/tiaurora.jpg"; }















































function SACAd1_19() { SACAdurl[1] = "http://www.hiway16.com/jewel/"; return SACAd = "http://www.hiway16.com/comimages/images/tishellann.jpg"; }















































function SACAd1_20() { SACAdurl[1] = "http://www.hiway16.com/creative/"; return SACAd = "http://www.hiway16.com/comimages/images/tiCreative.jpg"; }















































// 2nd Ad group - max 60 entries...















































function SACAd2_01() { SACAdurl[2] = "http://www.hiway16.com/aspen/"; return SACAd = "http://www.hiway16.com/comimages/images/tiaspen.gif"; }















































function SACAd2_02() { SACAdurl[2] = "http://www.highway16.com/pleasant/"; return SACAd = "http://www.hiway16.com/comimages/images/tipleas.jpg"; }















































function SACAd2_03() { SACAdurl[2] = "http://www.highway16.com/beerda/"; return SACAd = "http://www.hiway16.com/comimages/images/tibeerda.gif"; }















































function SACAd2_04() { SACAdurl[2] = "http://www.highway16.com/walls/"; return SACAd = "http://www.hiway16.com/comimages/images/tiwal.gif"; }















































function SACAd2_05() { SACAdurl[2] = "http://www.highway16.com/worms/"; return SACAd = "http://www.hiway16.com/comimages/images/tiworms.gif"; }















































function SACAd2_06() { SACAdurl[2] = "http://www.hiway16.com/tricon/"; return SACAd = "http://www.hiway16.com/comimages/images/titricon.gif"; }















































function SACAd2_07() { SACAdurl[2] = "http://www.hiway16.com/trln/"; return SACAd = "http://www.hiway16.com/comimages/images/titrlnWinter.jpg"; }















































function SACAd2_08() { SACAdurl[2] = "http://www.hiway16.com/horsetack/"; return SACAd = "http://www.hiway16.com/comimages/images/titack.gif"; }















































function SACAd2_09() { SACAdurl[2] = "http://www.highway16.com/ferdie/"; return SACAd = "http://www.hiway16.com/comimages/images/tiferdies.jpg"; }















































function SACAd2_10() { SACAdurl[2] = "http://www.all-westglass.com"; return SACAd = "http://www.hiway16.com/comimages/images/tiAllwest.gif"; }















































function SACAd2_11() { SACAdurl[2] = "http://www.highway16.com/blmotorinn/"; return SACAd = "http://www.hiway16.com/comimages/images/tiblmotorinn.gif"; }















































function SACAd2_12() { SACAdurl[2] = "http://www.hiway16.com/cowboy/"; return SACAd = "http://www.hiway16.com/comimages/images/ticowbo.gif"; }















































function SACAd2_13() { SACAdurl[2] = "http://www.hiway16.com/willow/"; return SACAd = "http://www.hiway16.com/comimages/images/tiwilo.gif"; }















































function SACAd2_14() { SACAdurl[2] = "http://www.bldchamber.ca/"; return SACAd = "http://www.hiway16.com/comimages/images/tiBLDChamber.jpg"; }















































function SACAd2_15() { SACAdurl[2] = "http://www.ldprinting.ca"; return SACAd = "http://www.hiway16.com/comimages/images/tildprint.gif"; }















































function SACAd2_16() { SACAdurl[2] = "http://www.thecomfortzone.ca/"; return SACAd = "http://www.hiway16.com/comimages/images/ticomfort.jpg"; }















































function SACAd2_17() { SACAdurl[2] = "http://www.hiway16.com/bridal/"; return SACAd = "http://www.hiway16.com/comimages/images/tibridal.jpg"; }















































function SACAd2_18() { SACAdurl[2] = "http://www.hiway16.com/wanakena/"; return SACAd = "http://www.hiway16.com/comimages/images/tiwanakena.gif"; }















































function SACAd2_19() { SACAdurl[2] = "http://www.hiway16.com/haide/"; return SACAd = "http://www.hiway16.com/comimages/images/tihaide.jpg"; }















































function SACAd2_20() { SACAdurl[2] = "http://www.bcnorth.ca/dipper/"; return SACAd = "http://www.hiway16.com/comimages/images/tiDipper.gif"; }















































// 3rd Ad group max 60 entries...















































function SACAd3_01() { SACAdurl[3] = "http://www.highway16.com/pleasantvly/"; return SACAd = "http://www.hiway16.com/comimages/images/tipleasantvly.gif"; }















































function SACAd3_02() { SACAdurl[3] = "http://www.hiway16.com/lakeland/"; return SACAd = "http://www.hiway16.com/comimages/images/tilakeland.gif"; }















































function SACAd3_03() { SACAdurl[3] = "http://www.hiway16.com/hungryhill/"; return SACAd = "http://www.hiway16.com/comimages/images/tihungry.jpg"; }















































function SACAd3_04() { SACAdurl[3] = "http://www.hiway16.com/houston/"; return SACAd = "http://www.hiway16.com/comimages/images/tihomall.gif"; }















































function SACAd3_05() { SACAdurl[3] = "http://www.hiway16.com/blbuilding/"; return SACAd = "http://www.hiway16.com/comimages/images/tiblb.jpg"; }















































function SACAd3_06() { SACAdurl[3] = "http://www.bcnorth.ca/lakeside/"; return SACAd = "http://www.hiway16.com/comimages/images/tilikkel.jpg"; }















































function SACAd3_07() { SACAdurl[3] = "http://www.rusticroost.ca/"; return SACAd = "http://www.hiway16.com/comimages/images/tirustic.jpg"; }















































function SACAd3_08() { SACAdurl[3] = "http://www.hiway16.com/bj/"; return SACAd = "http://www.hiway16.com/comimages/images/tibj2.gif"; }















































function SACAd3_09() { SACAdurl[3] = "http://www.bcnorth.ca/highmark/"; return SACAd = "http://www.hiway16.com/comimages/images/tiHighmark.gif"; }















































function SACAd3_10() { SACAdurl[3] = "http://www.pharmasave.com/stores/store_locator-details.asp?PR=BC&SID=170"; return SACAd = "http://www.hiway16.com/comimages/images/tipharma.gif"; }















































function SACAd3_11() { SACAdurl[3] = "http://www.hiway16.com/griffin/"; return SACAd = "http://www.hiway16.com/comimages/images/tigriffin.gif"; }















































function SACAd3_12() { SACAdurl[3] = "http://www.bcnorth.ca/log/"; return SACAd = "http://www.hiway16.com/comimages/images/tipondosy.jpg"; }















































function SACAd3_13() { SACAdurl[3] = "http://www.highway16.com/bulkleycleaners/"; return SACAd = "http://www.hiway16.com/comimages/images/tiBulkClean.gif"; }















































function SACAd3_14() { SACAdurl[3] = "http://www.highway16.com/imagedesign/"; return SACAd = "http://www.hiway16.com/comimages/images/tirandy.gif"; }















































function SACAd3_15() { SACAdurl[3] = "http://www.hiway16.com/osullivans/"; return SACAd = "http://www.hiway16.com/comimages/images/tiosulliv.jpg"; }















































function SACAd3_16() { SACAdurl[3] = "http://www.bcnorth.ca/finch/"; return SACAd = "http://www.hiway16.com/comimages/images/tiFinch.gif"; }















































function SACAd3_17() { SACAdurl[3] = "http://www.hiway16.com/sly/"; return SACAd = "http://www.hiway16.com/comimages/images/tisly.jpg"; }















































function SACAd3_18() { SACAdurl[3] = "http://www.hiway16.com/uniglobe/"; return SACAd = "http://www.hiway16.com/comimages/images/tiuniglobe.gif"; }















































function SACAd3_19() { SACAdurl[3] = "http://www.bcnorth.ca/beaverpoint/"; return SACAd = "http://www.hiway16.com/comimages/images/tibeaver.jpg"; }















































function SACAd3_20() { SACAdurl[3] = "http://www.hiway16.com/carpetco/"; return SACAd = "http://www.hiway16.com/comimages/images/ticarpetco.gif"; }















































// End
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
// SuperAdCarousel.action v1.3 - MArch, 2000
// © Copyright 1999 by Walter Blady
// All rights reserved.
var SACAdurl = new Object();
function WBSuperAdCarousel(action) {
	if (SACVersion() && document.images && action[1] != "" && action[2] > 0 && action[3] > 0) {
		var adImg = null, count = action[3];
		if (count > 60) {count = 60; }
		if (window.navigator.userAgent.indexOf("MSIE") > 0) {
			adImg = document.images[action[1]];
		}
		else {
			adImg = parseInt(navigator.appVersion.charAt(0)) > 3 ? SACFindImageObject(action[1],0) : document[action[1]];
		}
		var thisDate = new Date();
		var thisMin = thisDate.getMinutes() + 1;
		while (thisMin > count) {
			thisMin = thisMin - count
		}
		if (thisMin > 9) {
			advert = eval("SACAd" + action[2] + "_" + thisMin);
		}
		else {
			advert = eval("SACAd" + action[2] + "_0" + thisMin);
		}
		if (advert != null) {
			adImg.src = eval("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);
}
// SuperAdCLinks.action v1.2 - March, 2000
// © Copyright 1999 by Walter Blady
// All rights reserved.
function WBSuperAdCLinks(action) {
	if (SACLVersion()) {
		if (SACAdurl[action[1]] != null) {
			var params;
			if (action[2].length < 1) {
				window.location.href = SACAdurl[action[1]];
			}
			else {
				if (action[2].toLowerCase().indexOf("blank") != -1) {
					var ACNewWindow = window.open(action[SACAdurl[action[1]]],"newWindow");
					return;
				}
				else {
					params = eval(action[2] + ".window.location");
				}
				params.href = SACAdurl[action[1]];
			}
		}
	}
	return;
}
function SACLVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}// EOF