// Created by jsbanners.pl, Mon Feb  6 05:13:00 2012

// time between refreshs of ad locations, to disable refreshs set to 0. In milliseconds, 1000 = 1 second
var refresh_time = 12000;

// ignore/skip this line 
var banners = new Array();

// banner list syntax: banners[x] = new banner(website_name, website_url, banner_url, show_until_date, target);  DATE FORMAT: dd/mm/yyyy
// be sure to increase x by 1 for each banner added!
// to make sure a banner is always rotating, just set the date far into the future, i.e. year 3000

banners[0] = new banner('Banner 0','/cgi-bin/store.cgi','http://sites.etotalhost.com/common/image/banners/YYY/toystore.gif','30/04/2019','content');
banners[1] = new banner('Banner 1','http://www.positive.org/JustSayYes/safesex.html','http://sites.etotalhost.com/common/image/banners/ZZZ/cps.gif','30/04/2019','_blank');
banners[2] = new banner('Banner 2','http://stopaids.org','http://sites.etotalhost.com/common/image/banners/ZZZ/logo-stop-aids-project.gif','30/04/2019','_blank');
banners[3] = new banner('Banner 3','http://www.marriageequality.org','http://sites.etotalhost.com/common/image/banners/ZZZ/marriage_equality.gif','30/04/2019','_blank');
banners[4] = new banner('Banner 4','http://www.matthewshepard.org','http://sites.etotalhost.com/common/image/banners/ZZZ/matthew_shepard.jpg','30/04/2019','_blank');
banners[5] = new banner('Banner 5','http://www.rainbowmates.com','http://personals.findgaydad.com/common/image/banners/DSP/rainbowmates_468_60.gif','30/04/2019','_blank');
banners[6] = new banner('Banner 6','http://www.frotfrat.com','http://personals.findgaydad.com/common/image/banners/DSP/frotfrat_468_60.gif','30/04/2019','_blank');
banners[7] = new banner('Banner 7','http://videos.globalfight.com','http://personals.findgaydad.com/common/image/banners/DSP/video_animated.gif','30/04/2019','_blank');
banners[8] = new banner('Banner 8','http://www.qnation.fm','http://sites.etotalhost.com/common/image/banners/qnation.gif','30/04/2019','_blank');
banners[9] = new banner('Banner 9','http://astore.amazon.com/one063-20','http://personals.findgaydad.com/common/image/banners/DSP/findgaydad_bookstore.jpg','30/04/2019','_blank');
banners[10] = new banner('Banner 10','http://www.thedungeon.us','http://personals.findgaydad.com/common/image/banners/DSP/thedungeon.jpg','30/04/2019','_blank');
banners[11] = new banner('Banner 11','http://www.aidshealth.org','http://sites.etotalhost.com/common/image/banners/ZZZ/ahflogo.gif','30/04/2019','_blank');
banners[12] = new banner('Banner 12','http://www.realmenhavehair.com','http://personals.findgaydad.com/common/image/banners/DSP/realmenhavehair.jpg','30/04/2019','_blank');
banners[13] = new banner('Banner 13','http://www.gearfetish.us','http://personals.findgaydad.com/common/image/banners/DSP/gearfetish_promobutton.gif','30/04/2019','_blank');
banners[14] = new banner('Banner 14','http://personals.manspank.us','http://personals.findgaydad.com/common/image/banners/DSP/manspank_animated.gif','30/04/2019','_blank');
banners[15] = new banner('Banner 15','http://www.freespeechcoalition.com','http://sites.etotalhost.com/common/image/banners/ZZZ/468x60-animate.gif','30/04/2019','_blank');
banners[16] = new banner('Banner 16','http://personals.globalfight.com','http://personals.findgaydad.com/common/image/banners/DSP/globalfight.jpg','30/04/2019','_blank');
banners[17] = new banner('Banner 17','http://www.hrw.org','http://sites.etotalhost.com/common/image/banners/humanrightswatch.gif','30/04/2019','_blank');
banners[18] = new banner('Banner 18','http://www.freedomtomarry.org','http://sites.etotalhost.com/common/image/banners/freedomtomarry.gif','30/04/2019','_blank');
banners[19] = new banner('Banner 19','http://www.sldn.org','http://sites.etotalhost.com/common/image/banners/sldn_color_logo.gif','30/04/2019','_blank');
banners[20] = new banner('Banner 20','http://www.hrc.org','http://sites.etotalhost.com/common/image/banners/logo_human_rights.gif','30/04/2019','_blank');
banners[21] = new banner('Banner 21','http://www.ngltf.org','http://sites.etotalhost.com/common/image/banners/tfonline.gif','30/04/2019','_blank');
banners[22] = new banner('Banner 22','http://www.glaad.org','http://sites.etotalhost.com/common/image/banners/logo-glaad.gif','30/04/2019','_blank');

//         				There is no need to edit below here
///////////////////////////////////////////////////////////////////////////////////

var first_pass = 0;
var location_counter = 0;

function banner(name, url, image, date, target)
{
	this.name	= name;
	this.url	= url;
	this.image	= image;
	this.date	= date;
	this.target	= target;
	this.active = 1;
}

function show_banners()
{
	if (!first_pass++) {
		var html = '<div id="adLocation"></div>';
		document.write(html);
		window.setInterval(show_banners, refresh_time);
	}
	display_banners(location_counter);
	location_counter = ++location_counter % banners.length;
}

function display_banners(location)
{
	var bn = banners[location];
	
	var html 		= '<a href="' + bn.url + '" title="' + bn.name + '" target="' + bn.target +'"><img border="0" src="' + bn.image + '" alt="' + bn.name+ '" /></a>';
	
	var location_element = document.getElementById('adLocation');
	
	if(location_element == null)
	{
		logmsg('adLocation does not exist' + location);
	}
	else
	{
		location_element.innerHTML = html;
	}
}

//Mon Feb  6 05:13:00 2012

