// cycling banner ads
var adimg = new Array()
var adtext = new Array()
var ad_cntr = 0
var adlink = new Array()
var adtimer = new Array()
var adpop = new Array()

//image files for each ad
adimg[1] = "/ad/images/ad_bored.gif"
adimg[2] = "/ad/images/ad_happy.gif"
adimg[3] = "/ad/images/ad_family.gif"

//alternate text on images
adtext[1] = "Bored with Dialup? Click here."
adtext[2] = "Convert to Highspeed Now! Click here."
adtext[3] = "Discover the Benefits of Highspeed! Click here."

//target page for each ad 
adlink[1] = "/special/main.shtml"
adlink[2] = "/special/main.shtml"
adlink[3] = "/special/main.shtml"

//time to display each ad
adtimer[1] = "4000"
adtimer[2] = "4000"
adtimer[3] = "5000"

//define whether or not target page needs to open in a new window
adpop[1] = 0  //0=no; 1=yes
adpop[2] = 0
adpop[3] = 0
 
function ad_swap()
{
	ad_cntr++
	if (ad_cntr == adimg.length) 
	{
		ad_cntr = 1
	}
	document.getElementById("ad_loc").src = (adimg[ad_cntr])
	document.getElementById("ad_loc").title = (adtext[ad_cntr])
	setTimeout("ad_swap()", adtimer[ad_cntr])
}

function ad_goto()
{
	if (adpop[ad_cntr]==0)
	{
		document.location = adlink[ad_cntr]
	}
	else if (adpop[ad_cntr]==1)
	{
		var options = ("dependent=no,height=680,width=800,location=1,directories=0,menubar=1,resizable=1,left=200,top=50,scrollbars=1,status=1,toolbar=1")
		var url = adlink[ad_cntr]
		var pop_window = window.open(url,"special",options)
		pop_window.focus()
	}
}


ad_swap()
//end of banner ads