var force_size=0;var img_width=125;var img_height=125;var refresh_time=100000;var refresh_max=10;var duplicate_banners=0;var banners=new Array();banners[0]=new banner('Blue Square','http://ads.bluesq.com/redirect.aspx?pid=6917&bid=1614','http://ads.bluesq.com/renderImage.aspx?pid=6917&bid=1614','10/04/2019');banners[1]=new banner('Super Casino','http://www.supercasino.com?sourceid=505745','http://www.netplayaffiliates.com/resources/view_banner.php?t=505745&s=LVR','10/04/2019');banners[2]=new banner('Unibet','http://adserving.unibet.com/redirect.aspx?pid=19005&bid=3554','http://banners.unibet.com/media/125x125_casino_female_en.gif','30/04/2019');banners[3]=new banner('888','http://Promo.888.com/live-casino/?sr=353692&flag=0000','http://marketing.888.com//CasinoOnNet/EN/Banners/41130-0-125x125_LiveDealer_900.gif','10/04/2019');banners[4]=new banner('Lucky Live','http://affiliates.livecasinopartners.com/processing/clickthrgh.asp?btag=a_139b_19','http://affiliates.livecasinopartners.com/processing/impressions.asp?btag=a_139b_19','10/04/2019');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);