// roating, linked banner images
adLength = new Array(0,5,2)
adImages = new Array("promos/images/TGSafety.jpg","loveyourbundle/tg_lyb.gif","promos/images/HSI_web_banner.jpg")
adURL = new Array("javascript:newWindowCyb('http://www.fairpoint.com/safety');","javascript:newWindowCyb('loveyourbundle/index.html');","javascript:newWindowCyb('promos/HSI.pdf');")
thisAd = 0
imgCt = adImages.length
function rotate() {
	if (document.images) {
		if (document.adBanner.complete){
		thisAd++
		if (adLength[thisAd] == 0) { //added code so if you set the time interval to 0, rotate() will skip that banner
			thisAd++	
			}
			if (thisAd >= imgCt) {
			thisAd = 0 }
		document.adBanner.src=adImages[thisAd] }
		setTimeout("rotate()",adLength[thisAd] * 3000) }
}

function newLocation(){
document.location.href = adURL[thisAd]
}


// open new windows
function newWindowCC(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=585,height=623");
}

function newWindowDSL(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=558,height=560");
}

function newWindow2(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=450,height=375");
}

function newWindowCyb(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=1025,height=850");
}