largeAds = new Array();
largeAds[1] = 'oscrewed_ao9.html;125/ao9_100.jpg';
largeAds[2] = 'dinosaur-emblem_b2157.html;125/b2157_100.jpg';
largeAds[3] = 'flying-spaghetti-monster_b2181.html;125/b2181_100.jpg';
largeAds[4] = 'darwin-fish-plaque_b2214.html;125/b2214_100.jpg';
largeAds[5] = 'dancing-trees_b8054.html;125/b8054_100.jpg';
largeAds[6] = 'fu_fu1.html;125/fu1_100.jpg';
largeAds[7] = 'bears-helmet-xl-decal_helm002.html;125/helm002_100.jpg';
largeAds[8] = 'steelers-xl-logo-decals_lglo029.html;125/lglo029_100.jpg';
largeAds[9] = 'white-sox-large-logo_lglowhitesox.html;125/lglowhitesox_100.jpg';
largeAds[10] = 'no-smoking-12-pak_nocigpak.html;125/nocigpak_100.jpg';
largeAds[11] = 'obama-emblem_ob9.html;125/ob9_100.jpg';
largeAds[12] = 'steelers-reflective-decal_p17355031.html;125/p17355031_100.jpg';
largeAds[13] = 'one-love_rst7205.html;125/rst7205_100.jpg';
largeAds[14] = 'yellow-submarine_s3061.html;125/s3061_100.jpg';
largeAds[15] = 'peace-canvas-tote_sgtote003.html;125/sgtote003_100.jpg';
largeAds[16] = 'positive-praisers_ts1945.html;125/ts1945_100.jpg';
largeAds[17] = 'a-united-states-flag_u400.html;125/u400_100.jpg';
largeAds[18] = 'gadsden-don-t-tread-on-me_u798.html;125/u798_100.jpg';

smallAds = new Array();
smallAds[1] = 'trickle-up_ao8.html;25/ao8_25.jpg';
smallAds[2] = 'nobama_ao10.html;25/ao10_25.jpg';
smallAds[3] = 'don-t-blame-me_ao11.html;25/ao11_25.jpg';
smallAds[4] = 'well-behaved-women_b5377.html;25/b5377_25.jpg';
smallAds[5] = 'love-your-mother_b5722.html;25/b5722_25.jpg';
smallAds[6] = 'bandaid_b5780.html;25/b5780_25.jpg';
smallAds[7] = 'shut-up-hippy_g116.html;25/g116_25.jpg';
smallAds[8] = 'peace_kk197.html;25/kk197_25.jpg';
smallAds[9] = '2012-obama_ob1.html;25/ob1_25.jpg';
smallAds[10] = 'steelers-strip_p13376031.html;25/p13376031_25.jpg';
smallAds[11] = 'tolerance_pmg014.html;25/pmg014_25.jpg';
smallAds[12] = 'four-skulls_sp1127.html;25/sp1127_25.jpg';
smallAds[13] = 'bring-capitalism_vm36.html;25/vm36_25.jpg';
smallAds[14] = 'annoy-liberals_vp22.html;25/vp22_25.jpg';
smallAds[15] = 'vietnam-ribbon_xbm067.html;25/xbm067_25.jpg';
smallAds[16] = 'keep-working_xrg084a.html;25/xrg084a_25.jpg';
smallAds[17] = 'don-t-mess-with-texas_xrg570.html;25/xrg570_25.jpg';
smallAds[18] = 'a-scooby-doo_zbs783.html;25/zbs783_25.jpg';

medAds = new Array();
medAds[1] = 'custom_stickers/;custom.stickers.gif';
medAds[2] = 'custom_stickers/;custom.stickers.gif';

var activenum = 0

function chooseItLarge(){
var how_many_ads = 18;
var now = new Date()
var sec = now.getMilliseconds();
sec = sec + activenum;
activenum = activenum + 1;
var adnumber = sec % how_many_ads;
adnumber +=1;
adstring = largeAds[adnumber];
splitIt(adstring, ";")
}

function chooseItSmall(){
var how_many_ads = 18;
var now = new Date()
var sec = now.getMilliseconds();
sec = sec + activenum;
activenum = activenum + 1;
var adnumber = sec % how_many_ads;
adnumber +=1;
adstring = smallAds[adnumber];
splitIt(adstring, ";")
}

function chooseItMed(){
var how_many_ads = 3;
var now = new Date()
var sec = now.getMilliseconds();
sec = sec + activenum;
activenum = activenum + 1;
var adnumber = sec % how_many_ads;
adnumber +=1;
adstring = medAds[adnumber];
if (adnumber < 3) {
splitIt(adstring, ";")
}
else {
flashwrite()
}
}

function flashwrite(){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="180" height="82" title="Gift Selector"><param name="movie" value="/Merchant2/flash/banner.swf"><param name="quality" value="high"><param name="BGCOLOR" value="#FF9900"><embed src="/Merchant2/sg_imgs/header_imgs/giftselect.swf" width="180" height="82" quality="high" type="application/x-shockwave-flash" bgcolor="#FF9900"></embed></object>')
}

function splitIt(stringToSplit, separator){
theSplitstring = stringToSplit.split(separator);
writeIt(theSplitstring[0],theSplitstring[1],theSplitstring[2]);
}

function writeIt(theurl, theimage){
stringy = '<a href="http://www.stickergiant.com/'
stringy = stringy + theurl;
stringy = stringy + '" class="adstyle"><img src="/Merchant2/imgs/';
stringy = stringy + theimage;
stringy = stringy + '" border=0>'
stringy = stringy + '</a>'
document.write(stringy);
}
