function loadup() { rotate(); } // Script : /bnrs/bin/bnRotate1.js var updateWindow = 1; var firstLoad = 1; imageCache = new Image(); logCGI_bnr3 = new Image(); var bnr3_how_many_ads = 2; bnr3_idArray = Array(0,12,103); var bnr3_CurrentlyDisplayedAd = Math.floor(Math.random()*(bnr3_how_many_ads)) + 1; var bnr3_displayArray = new Array(); logCGI_bnr3.src = "http://salsaboston.com/bnrs/bin/views.cgi?ad=" + bnr3_idArray[bnr3_CurrentlyDisplayedAd]; bnr3_displayArray[bnr3_CurrentlyDisplayedAd]=1; logCGI_bnr1 = new Image(); var bnr1_how_many_ads = 4; bnr1_idArray = Array(0,40,66,102,104); var bnr1_CurrentlyDisplayedAd = Math.floor(Math.random()*(bnr1_how_many_ads)) + 1; var bnr1_displayArray = new Array(); logCGI_bnr1.src = "http://salsaboston.com/bnrs/bin/views.cgi?ad=" + bnr1_idArray[bnr1_CurrentlyDisplayedAd]; bnr1_displayArray[bnr1_CurrentlyDisplayedAd]=1; function ClickThrough_bnr3() { if (bnr3_CurrentlyDisplayedAd==1) window.location.href="http://salsaboston.com/bnrs/bin/bnrs.cgi?id=12&url=salsaboston.com/referral"; if (bnr3_CurrentlyDisplayedAd==2) window.location.href="http://salsaboston.com/bnrs/bin/bnrs.cgi?id=103&url=salsaboston.com/advertise"; } function ClickThrough_bnr1() { if (bnr1_CurrentlyDisplayedAd==1) window.location.href="http://salsaboston.com/bnrs/bin/bnrs.cgi?id=40&url=havanaclubsalsa.com"; if (bnr1_CurrentlyDisplayedAd==2) window.location.href="http://salsaboston.com/bnrs/bin/bnrs.cgi?id=66&url=salsaboston.com/havana_saturday"; if (bnr1_CurrentlyDisplayedAd==3) window.location.href="http://salsaboston.com/bnrs/bin/bnrs.cgi?id=102&url=www.masacote.com/salsaboston"; if (bnr1_CurrentlyDisplayedAd==4) window.location.href="http://salsaboston.com/bnrs/bin/bnrs.cgi?id=104&url=swingcityboston.com"; } function rotate() { if (updateWindow==1) { if (++bnr3_CurrentlyDisplayedAd > 2) bnr3_CurrentlyDisplayedAd=1; if (!bnr3_displayArray[bnr3_CurrentlyDisplayedAd]) logCGI_bnr3.src = "http://salsaboston.com/bnrs/bin/views.cgi?ad=" + bnr3_idArray[bnr3_CurrentlyDisplayedAd]; bnr3_displayArray[bnr3_CurrentlyDisplayedAd]=1; } if (updateWindow==2) { if (++bnr1_CurrentlyDisplayedAd > 4) bnr1_CurrentlyDisplayedAd=1; if (!bnr1_displayArray[bnr1_CurrentlyDisplayedAd]) logCGI_bnr1.src = "http://salsaboston.com/bnrs/bin/views.cgi?ad=" + bnr1_idArray[bnr1_CurrentlyDisplayedAd]; bnr1_displayArray[bnr1_CurrentlyDisplayedAd]=1; } if (bnr3_CurrentlyDisplayedAd==1) document.images["bnr3"].src="http://salsaboston.com/bnrs/images/amadorbnr.jpg"; if (bnr3_CurrentlyDisplayedAd==2) document.images["bnr3"].src="http://salsaboston.com/bnrs/images/advertise_bnr.jpg"; if (bnr1_CurrentlyDisplayedAd==1) document.images["bnr1"].src="http://salsaboston.com/bnrs/images/bnrfriday.gif"; if (bnr1_CurrentlyDisplayedAd==2) document.images["bnr1"].src="http://salsaboston.com/bnrs/images/saturdaybnr.gif"; if (bnr1_CurrentlyDisplayedAd==3) document.images["bnr1"].src="http://www.masacote.com/images/ads/salsaboston.jpg"; if (bnr1_CurrentlyDisplayedAd==4) document.images["bnr1"].src="http://swingcityboston.com/calendar/calendar.cgi?make_marquee=1&return_image=1&x_center=260&y_offset=66&bg=marquee_bnr.png"; if (++updateWindow > 2) updateWindow = 1; window.setTimeout('rotate();',10000); if (firstLoad) { imageCache.src = "http://salsaboston.com/bnrs/images/amadorbnr.jpg"; imageCache.src = "http://salsaboston.com/bnrs/images/bnrfriday.gif"; imageCache.src = "http://salsaboston.com/bnrs/images/saturdaybnr.gif"; imageCache.src = "http://www.masacote.com/images/ads/salsaboston.jpg"; imageCache.src = "http://salsaboston.com/bnrs/images/advertise_bnr.jpg"; imageCache.src = "http://swingcityboston.com/calendar/calendar.cgi?make_marquee=1&return_image=1&x_center=260&y_offset=66&bg=marquee_bnr.png"; } firstLoad=0; } // end /bnrs/bin/bnRotate1.js str=('\ \ SalsaBoston\ \ \ \ \ \ \ \ \ \ \ \ '); document.write(str);