/**
    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':			10000,			//	the seconds between refreshs of the banners - use 0 to disable
	'refresh_max':			250,				//	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
**/
// 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('Etoro.com',			'http://www.kqzyfj.com/click-1956839-10635030', 			'http://www.tqlkg.com/image-1956839-10635030', 	'30/04/2019',	''),
  new banner('Electronic Transfer, Inc.',			'http://www.anrdoezrs.net/click-1956839-12876', 			'http://www.tqlkg.com/image-1956839-12876', 	'30/04/2019',	''),
  new banner('Prostores',			'http://www.kqzyfj.com/click-1956839-10408713', 			'http://www.ftjcfx.com/image-1956839-10408713', 	'30/04/2019',	''),
  new banner('AccuQuote',			'http://www.tkqlhce.com/click-1956839-10542031', 			'http://www.awltovhc.com/image-1956839-10542031', 	'30/04/2019',	''),
  new banner('O Desk',			'http://www.kqzyfj.com/click-1956839-10711172', 			'http://www.ftjcfx.com/image-1956839-10711172', 	'30/04/2019',	''),
  new banner('Cash net USA',			'http://www.dpbolvw.net/click-1956839-10640025', 			'http://www.ftjcfx.com/image-1956839-10640025', 	'30/04/2019',	''),
  new banner('Toll Free Forwarding',			'http://www.tkqlhce.com/click-1956839-10706669', 			'http://www.tqlkg.com/image-1956839-10706669', 	'30/04/2019',	''),
  new banner('1800 Mobiles',			'http://www.jdoqocy.com/click-1956839-10758386', 			'http://www.tqlkg.com/image-1956839-10758386', 	'30/04/2019',	''),
  new banner('Junk My Car',			'http://www.kqzyfj.com/click-1956839-10740882', 			'http://www.tqlkg.com/image-1956839-10740882', 	'30/04/2019',	''),
  new banner('Cash Central',			'http://www.jdoqocy.com/click-1956839-10425650', 			'http://www.ftjcfx.com/image-1956839-10425650', 	'30/04/2019',	''),
  new banner('GamePass',			'http://www.dpbolvw.net/click-1956839-10608289', 			'http://www.tqlkg.com/image-1956839-10608289', 	'30/04/2019',	''),
  new banner('Audile.com',			'http://www.tkqlhce.com/click-1956839-10557947', 			'http://www.tqlkg.com/image-1956839-10557947', 	'30/04/2019',	''),
  new banner('Intuit',			'http://www.tkqlhce.com/click-1956839-10659800', 			'http://www.awltovhc.com/image-1956839-10659800', 	'30/04/2019',	''),
  new banner('ReliaCloud Cloud Hosting',			'http://www.jdoqocy.com/click-1956839-10760781', 			'http://www.tqlkg.com/image-1956839-10760781', 	'30/04/2019',	''),
  new banner('Jumpline.com',			'http://www.tkqlhce.com/click-1956839-1207111', 			'http://www.awltovhc.com/image-1956839-1207111', 	'30/04/2019',	''),
  new banner('Efax',			'http://www.anrdoezrs.net/click-1956839-10375560', 			'http://www.tqlkg.com/image-1956839-10375560', 	'30/04/2019',	''),
  new banner('CalFinder',			'http://www.jdoqocy.com/click-1956839-10605608', 			'http://www.lduhtrp.net/image-1956839-10605608', 	'30/04/2019',	''),
  new banner('Real Networks',			'http://www.tkqlhce.com/click-1956839-10780890', 			'http://www.ftjcfx.com/image-1956839-10780890', 	'30/04/2019',	''),
  new banner('Quality Smith',			'http://www.tkqlhce.com/click-1956839-10687794', 			'http://www.lduhtrp.net/image-1956839-10687794', 	'30/04/2019',	''),
  new banner('Luminosity',			'http://www.jdoqocy.com/click-1956839-10523986', 			'http://www.ftjcfx.com/image-1956839-10523986', 	'30/04/2019',	''),
  new banner('Gerber Life Insurance',			'http://www.jdoqocy.com/click-1956839-10583744', 			'http://www.lduhtrp.net/image-1956839-10583744', 	'30/04/2019',	''),
  new banner('US Insurance Online',			'http://www.jdoqocy.com/click-1956839-10724661', 			'http://www.awltovhc.com/image-1956839-10724661', 	'30/04/2019',	''),
  new banner('Avis Rent A Car',			'http://www.kqzyfj.com/click-1956839-10563579', 			'http://www.tqlkg.com/image-1956839-10563579', 	'30/04/2019',	''),
  new banner('Yahoo Games',			'http://www.dpbolvw.net/click-1956839-10409878', 			'http://www.lduhtrp.net/image-1956839-10409878', 	'30/04/2019',	''),
  new banner('Matchmaker',			'http://www.jdoqocy.com/click-1956839-10415372', 			'http://www.awltovhc.com/image-1956839-10415372', 	'30/04/2019',	''),
  new banner('PriceLine',			'http://www.jdoqocy.com/click-1956839-10395956', 			'http://www.lduhtrp.net/image-1956839-10395956', 	'30/04/2019',	''),
  new banner('LavaLife',			'http://www.anrdoezrs.net/click-1956839-10483577', 			'http://www.tqlkg.com/image-1956839-10483577', 	'30/04/2019',	''),
  new banner('Friend Finder',			'http://www.kqzyfj.com/click-1956839-10373251', 			'http://www.ftjcfx.com/image-1956839-10373251', 	'30/04/2019',	''),
  new banner('Terapeak',			'http://www.tkqlhce.com/click-1956839-10573493', 			'http://www.awltovhc.com/image-1956839-10573493', 	'30/04/2019',	''),
  new banner('Care.com',			'http://www.anrdoezrs.net/click-1956839-10583019', 			'http://www.awltovhc.com/image-1956839-10583019', 	'30/04/2019',	''),
  new banner('Care.com',			'http://www.kqzyfj.com/click-1956839-10563245', 			'http://www.tqlkg.com/image-1956839-10563245', 	'30/04/2019',	''),
  new banner('sittercity',			'http://www.jdoqocy.com/click-1956839-10459077', 			'http://www.tqlkg.com/image-1956839-10459077', 	'30/04/2019',	''),
  new banner('Zoo books',			'http://www.tkqlhce.com/click-1956839-4975945', 			'http://www.awltovhc.com/image-1956839-4975945', 	'30/04/2019',	''),
  new banner('Wireless Emporium',			'http://www.jdoqocy.com/click-1956839-10398683', 			'http://www.awltovhc.com/image-1956839-10398683', 	'30/04/2019',	''),
  new banner('Let’s Talk',			'http://www.dpbolvw.net/click-1956839-10664150', 			'http://www.tqlkg.com/image-1956839-10664150', 	'30/04/2019',	''),
  new banner('Jitterbug',			'http://www.dpbolvw.net/click-1956839-10680092', 			'http://www.awltovhc.com/image-1956839-10680092', 	'30/04/2019',	''),
  new banner('Rebtel',			'http://www.dpbolvw.net/click-1956839-10601273', 			'http://www.tqlkg.com/image-1956839-10601273', 	'30/04/2019',	''),
  new banner('Reality Trac',			'http://www.kqzyfj.com/click-1956839-10303993', 			'http://www.awltovhc.com/image-1956839-10303993', 	'30/04/2019',	''),
  new banner('C28',			'http://www.jdoqocy.com/click-1956839-10607705', 			'http://www.ftjcfx.com/image-1956839-10607705', 	'30/04/2019',	''),
  new banner('Kerusso',			'http://www.kqzyfj.com/click-1956839-10678961', 			'http://www.lduhtrp.net/image-1956839-10678961', 	'30/04/2019',	''),
  new banner('Family Christian',			'http://www.anrdoezrs.net/click-1956839-10296195', 			'http://www.tqlkg.com/image-1956839-10296195', 	'30/04/2019',	''),
  new banner('Christian café',			'http://www.dpbolvw.net/click-1956839-10391508', 			'http://www.awltovhc.com/image-1956839-10391508', 	'30/04/2019',	''),
  new banner('Ddayspring',			'http://www.dpbolvw.net/click-1956839-10702835', 			'http://www.ftjcfx.com/image-1956839-10702835', 	'30/04/2019',	''),
  new banner('Dayspring',			'http://www.tkqlhce.com/click-1956839-10681684', 			'http://www.awltovhc.com/image-1956839-10681684', 	'30/04/2019',	''),
  new banner('Dayspring',			'http://www.anrdoezrs.net/click-1956839-10676658', 			'http://www.ftjcfx.com/image-1956839-10676658', 	'30/04/2019',	''),
  new banner('Dayspring',			'http://www.jdoqocy.com/click-1956839-10686759', 			'http://www.awltovhc.com/image-1956839-10686759', 	'30/04/2019',	''),
  new banner('Dayspring',			'http://www.dpbolvw.net/click-1956839-10676650', 			'http://www.ftjcfx.com/image-1956839-10676650', 	'30/04/2019',	''),
  new banner('Dayspring',			'http://www.kqzyfj.com/click-1956839-10683813', 			'http://www.awltovhc.com/image-1956839-10683813', 	'30/04/2019',	''),
  new banner('Dayspring',			'http://www.tkqlhce.com/click-1956839-10686760', 			'http://www.lduhtrp.net/image-1956839-10686760', 	'30/04/2019',	''),
  new banner('Dayspring',			'http://www.tkqlhce.com/click-1956839-10676644', 			'http://www.lduhtrp.net/image-1956839-10676644', 	'30/04/2019',	''),
  new banner('Dayspring',			'http://www.tkqlhce.com/click-1956839-10676666', 			'http://www.awltovhc.com/image-1956839-10676666', 	'30/04/2019',	''),
  new banner('Toms',			'http://www.jdoqocy.com/click-1956839-10690852', 			'http://www.ftjcfx.com/image-1956839-10690852', 	'30/04/2019',	''),
  new banner('Sonlight',			'http://www.dpbolvw.net/click-1956839-10770500', 			'http://www.awltovhc.com/image-1956839-10770500', 	'30/04/2019',	''),
  new banner('Simply youth',			'http://www.jdoqocy.com/click-1956839-10414679', 			'http://www.ftjcfx.com/image-1956839-10414679', 	'30/04/2019',	''),
  new banner('Veggie tales',			'http://www.tkqlhce.com/click-1956839-10604074', 			'http://www.tqlkg.com/image-1956839-10604074', 	'30/04/2019',	''),
  
	new banner('',			'http://www.anrdoezrs.net/click-1956839-10296195', 			'http://www.lduhtrp.net/image-1956839-10296195', 	'30/04/2019',	''),
	new banner('',			'http://www.kqzyfj.com/click-1956839-1643793', 			'http://www.awltovhc.com/image-1956839-1643793', 	'30/04/2019',	''),
	new banner('',			'http://www.dpbolvw.net/click-1956839-10702835', 			'http://www.ftjcfx.com/image-1956839-10702835', 	'30/04/2019',	''),
	new banner('',			'http://www.jdoqocy.com/click-1956839-10658078', 			'http://www.ftjcfx.com/image-1956839-10658078', 	'30/04/2019',	''),
	new banner('',			'http://www.anrdoezrs.net/click-1956839-10690852', 			'http://www.awltovhc.com/image-1956839-10690852', 	'30/04/2019',	''),                        	
	new banner('',			'http://www.christianshirts.net/index.php?promo=oasis', 			'http://www.christianityoasis.com/mall/images/csn.jpg', 	'30/04/2019',	''),
	new banner('',	        'http://www.virtuousplanet.com', 		'http://www.christianityoasis.com/mall/images/vp.jpg',		'10/04/2019',	''),
	new banner('', 			'http://theinspirationcorner.com/index.php', 	'http://www.christianityoasis.com/mall/images/tic.jpg',		'30/04/2019',	''),
	new banner('', 			'http://www.lightcreationsproducts.com', 	'http://www.christianityoasis.com/mall/images/lc.jpg', 	'10/04/2019',	''),
	new banner('', 			'http://www.jdoqocy.com/click-1956839-10391508', 'http://www.lduhtrp.net/image-1956839-10391508', 	'30/04/2019',	''),
	new banner('', 			'http://www.anrdoezrs.net/click-1956839-10529792', 'http://www.lduhtrp.net/image-1956839-10529792', 	'30/04/2019',	''),
	new banner('', 			'http://www.dpbolvw.net/click-1956839-10490358', 'http://www.ftjcfx.com/image-1956839-10490358', 	'30/04/2019',	''),
	
	new banner('Simply youth',			'http://www.jdoqocy.com/click-1956839-10414679', 			'http://www.ftjcfx.com/image-1956839-10414679', 	'30/04/2019',	'kids'),
  new banner('Veggie tales',			'http://www.tkqlhce.com/click-1956839-10604074', 			'http://www.tqlkg.com/image-1956839-10604074', 	'30/04/2019',	'kids'),
  new banner('',			'http://www.anrdoezrs.net/click-1956839-10296195', 			'http://www.lduhtrp.net/image-1956839-10296195', 	'30/04/2019',	'kids'),
	new banner('',			'http://www.kqzyfj.com/click-1956839-1643793', 			'http://www.awltovhc.com/image-1956839-1643793', 	'30/04/2019',	'kids'),
	new banner('',			'http://www.dpbolvw.net/click-1956839-10702835', 			'http://www.ftjcfx.com/image-1956839-10702835', 	'30/04/2019',	'kids'),
	new banner('',			'http://www.jdoqocy.com/click-1956839-10658078', 			'http://www.ftjcfx.com/image-1956839-10658078', 	'30/04/2019',	'kids'),
	new banner('',			'http://www.anrdoezrs.net/click-1956839-10690852', 			'http://www.awltovhc.com/image-1956839-10690852', 	'30/04/2019',	'kids'),
	
	new banner('',			'http://www.kqzyfj.com/click-1956839-10683809%20', 			'http://www.lduhtrp.net/image-1956839-10683809', 	'30/04/2019',	'books'),
	new banner('',			'http://www.dpbolvw.net/click-1956839-10507514%20', 			'http://www.ftjcfx.com/image-1956839-10507514', 	'30/04/2019',	'books'),
	new banner('',			'http://www.dpbolvw.net/click-1956839-10307215%20', 			'http://www.tqlkg.com/image-1956839-10307215', 	'30/04/2019',	'books'),
	new banner('',			'http://www.kqzyfj.com/click-1956839-10365061%20', 			'http://www.awltovhc.com/image-1956839-10365061', 	'30/04/2019',	'books'),
	new banner('',			'http://www.kqzyfj.com/click-1956839-10422783%20', 			'http://www.tqlkg.com/image-1956839-10422783', 	'30/04/2019',	'books'),
	new banner('',			'http://www.anrdoezrs.net/click-1956839-10735614%20', 			'http://www.lduhtrp.net/image-1956839-10735614', 	'30/04/2019',	'books'),
	new banner('',			'http://www.jdoqocy.com/click-1956839-10722284%20', 			'http://www.lduhtrp.net/image-1956839-10722284', 	'30/04/2019',	'books'),
	new banner('',			'http://www.tkqlhce.com/click-1956839-1668459', 			'http://www.tqlkg.com/image-1956839-1668459', 	'30/04/2019',	'books'),
	new banner('',			'http://www.kqzyfj.com/click-1956839-10676163%20', 			'http://www.lduhtrp.net/image-1956839-10676163', 	'30/04/2019',	'books'),
	new banner('',			'http://www.kqzyfj.com/click-1956839-10676474%20', 			'http://www.lduhtrp.net/image-1956839-10676474', 	'30/04/2019',	'books'),
	new banner('',			'http://www.jdoqocy.com/click-1956839-7204321%20', 			'http://www.ftjcfx.com/image-1956839-7204321', 	'30/04/2019',	'books'),
	new banner('',			'http://www.tkqlhce.com/click-1956839-57954%20', 			'http://www.awltovhc.com/image-1956839-57954', 	'30/04/2019',	'books'),
	new banner('',			'http://www.kqzyfj.com/click-1956839-10379587%20', 			'http://www.awltovhc.com/image-1956839-10379587', 	'30/04/2019',	'books')
	
]
//
//         				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="0" 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);
