// if 1 (one), all images will be resized to img_width and img_height, else images will display their correct size
var force_size	= 0;
// desired height and width of images, only takes affect if above is one
var img_width	= 728;
var img_height	= 90;

// time between refreshs of ad locations, to disable refreshs set to 0. In milliseconds, 1000 = 1 second
var refresh_time = 30000;
// maximum amount of refreshs, good to set if a user may be on a page for a long period of time.
var refresh_max = 10;

// if you do not want the same banners to display on the same page then set this to 0, else set it to 1.
// this option is only used if you have put the show_banners() javascript code more than once into a page
var duplicate_banners = 0;


// ignore/skip this line 
var banners = new Array();

// banner list syntax: banners[x] = new banner(website_name, website_url, banner_url, show_until_date);  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('GT Xpress Buy 1 Get 1 Free', 'http://click.linksynergy.com/fs-bin/click?id=AMEomvFwTjQ&offerid=133367.10000595&subid=0&type=4', 'http://ad.linksynergy.com/fs-bin/show?id=AMEomvFwTjQ&bids=133367.10000595&subid=0&type=4&gridnum=1', '01/01/2050');
banners[1] = new banner('Egg Genie As Seen on TV', 'http://www.dgtsls.com/redir.aspx?CID=20799&AFID=55986&DID=92003&SID=shoptv', 'http://www.dgtsls.com/imp.aspx?a=20799&b=55986&c=1&DID=91280&img=https://creative.digitaltargetmarketing.com/media/egggenie/banner/468_60.gif', '01/01/2050');
banners[2] = new banner('Big City Sliders', 'http://severnmarketing.com/ad.php?b=300&a=CD115', 'http://emoryday.directtrack.com/42/115/300', '01/01/2050');
banners[3] = new banner('Turbo Cooker Plus As Seen On TV', 'http://severnmarketing.com/ad.php?b=471&a=CD115', 'http://emoryday.directtrack.com/42/115/471', '01/01/2050');
banners[4] = new banner('Miracle Blade As Seen On TV', 'https://www.dpbird.com/click.track?CID=102440&amp;AFID=55986&amp;ADID=216831&amp;SID=shoptv', 'http://www.surftilyoudrop.com/images/miracleblade3.gif', '01/01/2050');
banners[5] = new banner('Slap Chop As Seen On TV', 'https://www.dgtsls.com/redir.aspx?CID=20765&AFID=55986&DID=92489&SID=shoptv', 'https://creative.digitaltargetmarketing.com/media/slapchop/banner/468_60.gif', '01/01/2050');
banners[6] = new banner('YoshiBlade As Seen On TV', 'https://www.dgtsls.com/redir.aspx?CID=20785&AFID=55986&DID=92392&SID=shoptv', 'https://creative.digitaltargetmarketing.com/media/yoshiblade/banner/468_60.gif', '01/01/2050');
banners[7] = new banner('Hulk Hogan Ultimate Grill As Seen On TV', 'http://www.dgtsls.com/redir.aspx?CID=20819&AFID=55986&DID=92632&SID=shoptv', 'http://www.dgtsls.com/imp.aspx?a=20819&b=55986&c=1&DID=91760&img=https://creative.digitaltargetmarketing.com/media/hulkgrill/banner/468_60.jpg', '01/01/2050');
banners[8] = new banner('Titan Peeler As Seen On TV', 'https://www.dgtsls.com/redir.aspx?CID=20773&AFID=55986&DID=92412&SID=shoptv', 'https://creative.digitaltargetmarketing.com/media/titanpeeler/banner/468_60.jpg', '01/01/2050');
banners[9] = new banner('Nuwave Oven As Seen On TV', 'http://severnmarketing.com/ad.php?b=888&a=CD115', 'http://partners.offershot.com/42/115/888', '01/01/2050');
banners[10] = new banner('Bottle Tops As Seen On TV', 'http://severnmarketing.com/ad.php?b=986&a=CD115', 'http://partners.offershot.com/42/115/986', '01/01/2050');
banners[11] = new banner('Xpress Redi Set Go', 'http://click.linksynergy.com/fs-bin/click?id=AMEomvFwTjQ&offerid=133367.10000599&subid=0&type=4', 'http://ad.linksynergy.com/fs-bin/show?id=AMEomvFwTjQ&bids=133367.10000599&subid=0&type=4&gridnum=1', '01/01/2050');

//         				
///////////////////////////////////////////////////////////////////////////////////

var used=0;var first_pass=0;var location_counter=1;var refresh_counter=1;function banner(name,url,image,date){this.name=name;this.url=url;this.image=image;this.date=date;this.active=1;}function show_banners(){var html='<div id="adLocation-'+location_counter+'"></div>';document.write(html);display_banners(location_counter);location_counter++;}function display_banners(location){if(location==''||!location||location<0){return;}var am=banners.length;if((am==used)&&duplicate_banners==0){return;}var rand=Math.floor(Math.random()*am);var bn=banners[rand];var image_size=(force_size==1)?' width="'+img_width+'" height="'+img_height+'"':'';var html='<a href="'+bn.url+'" title="'+bn.name+'" target="_blank"><img border="0" src="'+bn.image+'"'+image_size+' alt="'+bn.name+'" /></a>';var now=new Date();var input=bn.date;input=input.split('/',3);var end_date=new Date();end_date=end_date.setFullYear(parseFloat(input[2]),parseFloat(input[1]),parseFloat(input[0]));if((now<end_date)&&bn.active==1){var location_element=document.getElementById('adLocation-'+location);if(location_element==null){alert('spyka Webmaster banner rotator\nError: adLocation doesn\'t exist!');}else
{location_element.innerHTML=html;if(duplicate_banners==0){bn.active=0;used++;}}}else
{display_banners(location);}}function refresh_banners(){if((refresh_counter==refresh_max)||refresh_time<1){clearInterval(banner_refresh);}used=0;for(i=0;i<banners.length;i++){banners[i].active=1;}for(i=1;i<location_counter;i++){display_banners(i);}refresh_counter++;}var banner_refresh=window.setInterval(refresh_banners,refresh_time);