// JavaScript Document
//store image rotator
var AD_COUNT = 10, NUM_SLOTS = 1; 
var cur_ad = 1, target = 1; 
function cycleAds2() 
{ ad_img = document.getElementById('imgslot1'); ad_img.src = "ads/store"+(cur_ad+1)+".JPG"; cur_ad = (cur_ad + 1) % AD_COUNT; setTimeout("cycleAds2()", 4000);
}

//cigar image rotator
var AD_COUNT1 = 5, NUM_SLOTS1 = 1; 
var cur_ad1 = 1, target1 = 1; 
function cycleAds3() 
{ ad_img1 = document.getElementById('imgslot2'); ad_img1.src = "ads/cigar"+(cur_ad1+1)+".gif"; cur_ad1 = (cur_ad1 + 1) % AD_COUNT1; setTimeout("cycleAds3()", 4000);
}

//ads image rotator
var AD_COUNT2 = 12, NUM_SLOTS2 = 5;
var cur_ad2 = 0, target2 = 0;
function cycleAds() {
ad_img2 = document.getElementById('adslot'+(target2+1));
ad_img2.src = "ads/adimg"+(cur_ad2+1)+".jpg";
cur_ad2 = (cur_ad2 + 1) % AD_COUNT2;
target2 = (target2 + 1) % NUM_SLOTS2;
setTimeout("cycleAds()", 2500);
    }
