var slideshow_width='405px'
var slideshow_height='370px'
var pause=5000

var fadeimages=new Array()
fadeimages[0]=["images/day_specials/1003.jpg", "product/1003.htm", "1003-Low Cost Pencils", "","Lowest price starting at $0.09 each."];fadeimages[1]=["images/day_specials/NWCLRTOT_lg.jpg", "product/9298.htm", "9298-Non-Woven Cooler Tote", "Promotional Non-Woven Cooler Tote","Lowest price starting at $1.86 each."];fadeimages[2]=["images/day_specials/TI-5516.jpg", "product/5055.htm", "5055-16FT. Pro Grip Tape Measure", "","Lowest price starting at $1.95 each."];fadeimages[3]=["images/day_specials/6017.jpg", "product/6017.htm", "6017-MAG-LITE 2 AA LED FLASHLIGHT(New Reduced Prices)", "","Lowest price starting at $19.54 each."];fadeimages[4]=["images/day_specials/50EY.jpg", "product/10607.htm", "10607-Eyeglass Cloth", "","Lowest price starting at $0.91 each."];fadeimages[5]=["images/day_specials/Shopping Cart Pink  Fruit small.jpg", "product/10227.htm", "10227-Shipping Cart List and Coupon Holder", "","Lowest price starting at $0.95 each."];fadeimages[6]=["images/day_specials/847_2.jpg", "product/12006.htm", "12006-Kool Tote Folding Insulated Lunch Bag", "","Lowest price starting at $1.47 each."];fadeimages[7]=["images/day_specials/451-827.jpg", "product/10229.htm", "10229-BREAST CANCER AWARENESS MAG-LITEŽ SOLITAIRE Flashlight", "","Lowest price starting at $7.56 each."];fadeimages[8]=["images/day_specials/3373.jpg", "product/3373.htm", "3373-AAA Mini Mag-LiteŽ Flashlight ( New reduced prices)", "","Lowest price starting at $8.15 each."];fadeimages[9]=["images/day_specials/LUGSPAT_lg.jpg", "product/10007.htm", "10007-Luggage Spotter (Cool Design Colors)", "","Lowest price starting at $1.75 each."];fadeimages[10]=["images/day_specials/therm-O-Snack.jpg", "product/20001.htm", "20001-Insulated Thermal Totebag", "","Lowest price starting at $1.61 each."];fadeimages[11]=["images/day_specials/thermo.jpg", "product/11006.htm", "11006-Large Insulated Grocery Bag", "","Lowest price starting at $2.16 each."];fadeimages[12]=["images/day_specials/501_3.jpg", "product/10273.htm", "10273-Readers Mark Bookmark Magnifier", "","Lowest price starting at $0.63 each."];fadeimages[13]=["images/day_specials/FSTFOLD_lg.jpg", "product/10106.htm", "10106-Feast & Fold Lunch Cooler", "","Lowest price starting at $2.56 each."];fadeimages[14]=["images/day_specials/HANSPRAY_lg.jpg", "product/10116.htm", "10116-Hand Sanitizer Spray Pump", "","Lowest price starting at $0.78 each."];fadeimages[15]=["images/day_specials/KLPNOTE_lg.jpg", "product/10138.htm", "10138-Klip Notes", "","Lowest price starting at $0.77 each."];fadeimages[16]=["images/day_specials/224.jpg", "product/10234.htm", "10234-BEAMER KEYCHAIN LIGHT", "","Lowest price starting at $0.68 each."];fadeimages[17]=["images/day_specials/REGRTOT_lg.jpg", "product/10157.htm", "10157-Non-Woven Reusable Grocery Tote", "","Lowest price starting at $1.39 each."];

var preloadedimages=new Array()
for (p=0;p<fadeimages.length;p++){
preloadedimages[p]=new Image()
preloadedimages[p].src=fadeimages[p][0]
}

var ie4=document.all
var dom=document.getElementById

if (ie4||dom)
document.write('<div style="vertical-align:bottom;position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10;visibility: hidden"></div></div>')
else
document.write('<img name="defaultslide" src="'+fadeimages[0][0]+'">')

var curpos=10
var degree=10
var curcanvas="canvas0"
var curimageindex=0
var nextimageindex=1

function fadepic(){
if (curpos<100){
curpos+=10
if (tempobj.filters)
tempobj.filters.alpha.opacity=curpos
else if (tempobj.style.MozOpacity)
tempobj.style.MozOpacity=curpos/101
}
else{
clearInterval(dropslide)
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML=insertimage(nextimageindex)
nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
var tempobj2=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj2.style.visibility="hidden"
setTimeout("rotateimage()",pause)
}
}

function insertimage(i){
var tempcontainer=fadeimages[i][1]!=""? '<a href="'+fadeimages[i][1]+'">' : ""
tempcontainer+='<br \><br \><img src="'+fadeimages[i][0]+'" border="0" alt="'+fadeimages[i][3]+'"></a><br \><b><span id="blackboldtext1">'+fadeimages[i][2]+'</span><br \><span class="redboldtext">'+fadeimages[i][4]+'</span></b>'
tempcontainer=fadeimages[i][1]!=""? tempcontainer : tempcontainer
return tempcontainer
}

function rotateimage(){
if (ie4||dom){
resetit(curcanvas)
var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
tempobj.style.visibility="visible"
var temp='setInterval("fadepic()",25)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else
document.images.defaultslide.src=fadeimages[curimageindex][0]
curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}

function resetit(what){
curpos=10
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
if (crossobj.filters)
crossobj.filters.alpha.opacity=curpos
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=curpos/101
}

function startit(){
var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.innerHTML=insertimage(curimageindex)
rotateimage()
}

if (ie4||dom)
window.onload=startit
else
setInterval("rotateimage()",pause)
