/**
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

	--------------------------------------------------------------------
	
	Simple banner rotator. Version: 1.4.0
	Download and support: http://www.spyka.net 
	(c) Copyright 2008, 2009 spyka Web Group
	

	For full documentation:  http://www.spyka.net/docs/simple-banner-rotator
	For support:			 http://www.spyka.net/forums


**/

//								EDIT FROM HERE
///////////////////////////////////////////////////////////////////////////////////

/**
		Script settings
**/

var settings = {
	
	'force_size':		0,         		// 	if set to 1 all banners will be resized to the width and height in the next to settings
	'img_width':		468,			//	width to resize all banners to, only takes effect if above is 1
	'img_height':		60, 			// 	height to resize all banners to, only takes effect if above is 1
	
	'refresh_time':		0,			//	the seconds between refreshs of the banners - use 0 to disable
	'refresh_max':		100,			//	maximum number of refreshs on each page load
	
	'duplicate_banners':	0,			//	keep as 0 to make sure the same banner won't show on the same page. will only take effect
									//  if show_banners(); is used more than once. You must make sure you have enough banners to fill
									//  all the slots else the browser may freeze or give a stack overflow error
	
	'location_prefix': 	'adLocation-',	//	The prefix of the IDs of the <div> which wraps the banners - this div is generated dynamically.
									//  a number will be added on the end of this string. adLocation- was used by default before version 1.4.x
											
	'location_class':		'swb',		// 	A class to add to all of the <div>s which wrap the banners, ideal to use for styling banners - use .swb img in your CSS	
	
	'window': 			'_blank',		//	Window to open links in, _self = current, _blank = new. Use _top if in a frame!		
	
	'default_ad_loc':		'default'		//	The default adLocation. This is assigned to any banners not given an adLocation in the below banner list
									//  There is no real reason to need to change this
}


/**
		Banners minimum = 4
**/
// banner list syntax: new banner(website_name, website_url, banner_url, show_until_date, adlocation),  DATE FORMAT: dd/mm/yyyy
// if you're not using adlocations just leave it empty like '' as in the last example here
// to make sure a banner is always rotating, just set the date far into the future, i.e. year 3000

var banners = [
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/crossdressingtheater.gif',	'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress001.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress002.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress003.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress004.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress005.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress006.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress007.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress008.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress009.jpg',		'31/12/3000',	'hm'), 
new banner('Crossdressing Theater',	'http://www.crossdressingtheater.com',	'http://www.qualityxxx.net/banners/hmcrossdress010.jpg',		'31/12/3000',	'hm'), 
new banner('Sissy VOD',			'http://www.sissyvod.com/',			'http://www.qualityxxx.net/banners/sissyvod.gif',			'31/12/3000',	''), 
new banner('Sex Toys',			'http://www.sextoys.com/?xyz=97342',			'http://images.sextoys.com/store/1/banner/72.jpg',		'31/12/3000',	'off'), 
new banner('The Sissy Store',		'http://www.thesissystore.com/?aff=qualityxxx',		'http://www.qualityxxx.net/banners/thesissystore.jpg',	'31/12/3000',	'off'), 
new banner('Dominant TVs',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=912999&PA=384348&HTML=http://www.dominanttvs.com',					'', 												'31/12/3000',	'off'), 
new banner('Amateur TVs',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=912999&PA=384348&HTML=http://www.amateurtvs.com',					'http://www.qualityxxx.net/banners/amateurtvs.gif', 				'31/12/3000',	'off'), 
new banner('Trannie Club',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=912999&PA=384348&HTML=http://www.trannieclub.com',					'http://www.qualityxxx.net/banners/trannieclub.gif', 				'31/12/3000',	'off'), 
new banner('Trannie Videos',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=912999&PA=384348&HTML=http://www.trannievideos.com',					'http://www.qualityxxx.net/banners/trannievideos.gif', 			'31/12/3000',	'off'), 
new banner('Bobs Tgirls',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=918160&PA=314274',											'http://www.qualityxxx.net/banners/bobstgirls.gif', 				'31/12/3000',	'off'), 
new banner('Big Dick Girls',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=925877-0013&PA=1043791&HTML=http://www.bigdickgirls.com/MzMzNjoyOjA6MTI6MjY=/','http://www.qualityxxx.net/banners/bigdickgirls.gif', 			'31/12/3000',	'off'), 
new banner('Gay Like A Girl',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=925877-0004&PA=1043791&HTML=http://www.gaylikegirl.com/MzMzNjoyOjA6MzoxNw==/',	'http://www.qualityxxx.net/banners/gaylikeagirl.jpg', 			'31/12/3000',	'off'), 
new banner('Panty Club 4 Men',	'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=931607-0000&PA=1884895&HTML=http://www.pantyclub4men.com',				'http://www.qualityxxx.net/banners/pantyclub4men.jpg',			'31/12/3000',	''), 
new banner('Men Wearing Panties',	'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=927199-0000&PA=1170705',										'http://www.qualityxxx.net/banners/menwearingpanties.gif', 			'31/12/3000',	''), 
new banner('The Crossdresser',	'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=933818&PA=1614647',										'http://www.qualityxxx.net/banners/thecrossdresser.jpg', 			'31/12/3000',	''), 
new banner('Pantie Boyz',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.pantieboyz.com/free_tour.html',		'http://www.qualityxxx.net/banners/pantieboyz.gif',			 	'31/12/3000',	''), 
new banner('Tranz Mania',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.tranzmania.com/free_tour.html',		'http://www.bluepixelsprofits.com/banners/tranzmania468x60_1.gif', 	'31/12/3000',	'off'), 
new banner('Club Crossdresser',	'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.clubcrossdresser.com',			'http://www.qualityxxx.net/banners/clubcrossdresser.gif', 			'31/12/3000',	'off'), 
new banner('Kristys Playgound',	'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.kirstystgplayground.com/free_tour.html','http://www.bluepixelsprofits.com/banners/kirsty_468x80_2.gif', 		'31/12/3000',	'tgirl'), 
new banner('Nylon Bitch Yvette',	'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.nylonbitchyvette.com/free_tour.html',	'http://www.bluepixelsprofits.com/banners/yvette_468x80_soft.jpg', 	'31/12/3000',	'tgirl'), 
new banner('Candi Love Doll',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.candilovedoll.com/free_tour.html',	'http://www.bluepixelsprofits.com/banners/candi_468x80_2.jpg', 		'31/12/3000',	'tgirl'), 
new banner('Karen TV Slut',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.karentvslut.com/free_tour.html',		'http://www.bluepixelsprofits.com/banners/karen_468x80_animated.gif', 	'31/12/3000',	'tgirl'), 
new banner('Kims Anal Heaven',	'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.kimsanalheaven.com/free_tour.html',	'http://www.bluepixelsprofits.com/banners/kims_468x80_dildos.jpg', 	'31/12/3000',	'tgirl'), 
new banner('Luci May',			'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.lucimay.com/free_tour.html',		'http://www.bluepixelsprofits.com/banners/lucimay_468x80_soft.gif', 	'31/12/3000',	'tgirl'), 
new banner('Zoe Fuck Puppet',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926173-0000&PA=1549377&HTML=http://www.zoefuckpuppet.com/free_tour.html',	'http://www.bluepixelsprofits.com/banners/zoe_discreet_468.gif', 		'31/12/3000',	'tgirl'), 
new banner('Jamies Fetish',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=940563-0000&PA=2126429',										'http://www.qualityxxx.net/banners/jamiesfetish.gif', 			'31/12/3000',	'off'), 
new banner('Sammi Valentine',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=938194-0000&PA=2126702',										'http://www.qualityxxx.net/banners/sammivalentine.gif', 			'31/12/3000',	'off'), 
new banner('Tara Emory',		'http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=919138-0000&PA=2126704',										'http://www.qualityxxx.net/banners/taraemory.jpg', 				'31/12/3000',	'off'), 
new banner('TS Seduction',		'http://aff.tsseduction.com/track/6038:revshare:TSSEDUCTION,34/',											'http://www.qualityxxx.net/banners/tsseduction.gif', 				'31/12/3000',	'off'), 
new banner('Wild Shemale',		'http://www.wildshemale.com/go.php?ref=2087478',													'http://www.qualityxxx.net/banners/wildshemale.gif', 				'31/12/3000',	'off'), 
new banner('Shemales & Transvestites',	'http://www.shemalesandtransvestites.com/go.php?ref=2087478',										'http://www.qualityxxx.net/banners/shemalesandtransvestites.gif', 	'31/12/3000',	'off'), 
new banner('Chix with Dix',		'http://www.usshemales.com/chixwithdix/go.php?ref=2087478',												'http://www.qualityxxx.net/banners/usshemaleschixwithdix.gif', 		'31/12/3000',	'off'), 
new banner('Ladyboys and Shemales',	'http://www.ladyboysandshemales.com/go.php?ref=2087478',												'http://www.qualityxxx.net/banners/ladyboysandshemales.gif', 		'31/12/3000',	'off'), 
new banner('Dicky Bitches',		'http://www.dickybitches.com/cgi-bin/click.cgi?id=ferroc95284&tr=1',										'http://www.qualityxxx.net/banners/dickybitches.gif',				'31/12/3000',	'off'), 
new banner('Gay Sissies',		'http://www.gaysissies.com/cgi-bin/click.cgi?id=ferroc95284&tr=1',										'http://www.qualityxxx.net/banners/gaysissies.gif',				'31/12/3000',	'off'), 
new banner('Shemale Screen',		'http://www.shemalescreen.com/cgi-bin/click.cgi?id=ferroc95284&tr=1',										'http://www.qualityxxx.net/banners/shemalescreen.gif',			'31/12/3000',	'off'), 
new banner('Trans Pantyhose',		'http://www.transpantyhose.com/cgi-bin/click.cgi?id=ferroc95284&tr=1',										'http://www.qualityxxx.net/banners/transpantyhose.gif',			'31/12/3000',	'off'), 
new banner('All Tranny Pass',		'http://join.alltrannypass.com/track/MzM2NDoyMDoxNA/',												'http://www.qualityxxx.net/banners/alltrannypass.gif', 			'31/12/3000',	'off'), 
new banner('Transexual Cream',	'http://transexualcream.com/maintour.php/25486/23/A',													'http://www.qualityxxx.net/banners/transexualcream.gif', 			'31/12/3000',	'off'), 
new banner('My Sissy Boyfriend',	'http://secure.mysissyboyfriend.com/track/MjE4LjMuMS4xLjAuMC4wLjAuMA',										'http://www.qualityxxx.net/banners/mysissyboyfriend.gif',			'31/12/3000',	'off'), 
new banner('My Humble Sissy',		'http://secure.myhumblesissy.com/track/MjE4LjMuNS44LjAuMC4wLjAuMA',										'http://www.qualityxxx.net/banners/myhumblesissy.gif',			'31/12/3000',	'off') 
]

//         				There is no need to edit below here
///////////////////////////////////////////////////////////////////////////////////
var used=0;var location_counter=0;var refresh_counter=1;var map=new Array();function banner(a,b,c,d,e){this.name=a;this.url=b;this.image=c;this.date=d;this.active=1;this.oid=0;if(e!=''){this.loc=e}else{this.loc=settings.default_ad_loc}}function show_banners(a){location_counter=location_counter+1;if(a!=''&&a!=undefined){map[location_counter]=a}else{map[location_counter]=settings.default_ad_loc}var b='<div id="'+settings.location_prefix+location_counter+'" class="'+settings.location_class+'"></div>';document.write(b);display_banners(location_counter)}function display_banners(a){var b=new Array();if(a==''||!a||a<0){return}var c=banners.length;if((c==used)&&settings.duplicate_banners==0){return}for(i=0;i<(banners.length);i++){banners[i].oid=i;if((banners[i].loc==map[a])&&(banners[i].active==1)){b.push(banners[i])}}var d=Math.floor(Math.random()*b.length);var e=b[d];var f=(settings.force_size==1)?' width="'+settings.img_width+'" height="'+settings.img_height+'"':'';var g='<a href="'+e.url+'" title="'+e.name+'" target="'+settings.window+'"><img border="1" src="'+e.image+'"'+f+' alt="'+e.name+'" /></a>';var h=new Date();var j=e.date;j=j.split('/',3);var k=new Date();k.setFullYear(parseInt(j[2]),parseInt(j[1])-1,parseInt(j[0]));if((h<k)&&e.active==1){var l=document.getElementById(settings.location_prefix+a);if(l==null){alert('spyka Webmaster banner rotator\nError: adLocation doesn\'t exist!')}else{l.innerHTML=g;if(settings.duplicate_banners==0){banners[e.oid].active=0;used++}return}}else{display_banners(a)}return}function refresh_banners(){if((refresh_counter==settings.refresh_max)||settings.refresh_time<1){clearInterval(banner_refresh)}used=0;for(j=0;j<(banners.length);j++){banners[j].active=1}for(j=1;j<(location_counter+1);j++){display_banners(j)}refresh_counter++}var banner_refresh=window.setInterval(refresh_banners,settings.refresh_time);