
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


//image1 = new Image();
//image1.src = "./share/img/images/spacer.gif";

//image2 = new Image();
//image2.src = "./share/img/images/fp1000.jpg";

//image3 = new Image();
//image3.src = "./share/img/images/mx1050.jpg";

//image3 = new Image();
//image3.src = "./share/img/images/mx1100.jpg";

//image4 = new Image();
//image4.src = "./share/img/images/mx1300.jpg";

//image5 = new Image();
//image5.src = "./share/img/images/mx1500.jpg";

//image6 = new Image();
//image6.src = "./share/img/images/fp1000.jpg";

//image7 = new Image();
//image7.src = "./share/img/images/wct800.jpg";

//image8 = new Image();
//image8.src = "./share/img/images/wct805.jpg";

//image9 = new Image();
//image9.src = "./share/img/images/wct815.jpg";

//image10 = new Image();
//image10.src = "./share/img/images/ww150.jpg";

//image11 = new Image();
//image11.src = "./share/img/images/bg-food2.jpg";

//image12 = new Image();
//image12.src = "./share/img/images/bg-bar2.jpg";

//image13 = new Image();
//image13.src = "./share/img/images/bg-hospitality3.jpg";

//image14 = new Image();
//image14.src = "./share/img/images/bg-food.jpg";

//image15 = new Image();
//image15.src = "./share/img/images/bg-bar.jpg";

//image16 = new Image();
//image16.src = "./share/img/images/bg-hospitality.jpg";

//image17 = new Image();
//image17.src = "./share/img/images/logo.gif";

//image18 = new Image();
//image18.src = "./share/img/images/btn_go.gif";

//image19 = new Image();
//image19.src = "./share/img/images/shoppingcart.gif";

//image20 = new Image();
//image20.src = "./share/img/images/test_btn.gif";


var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=8 //(must be divisible by 8)
var direction="up"

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-250+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<70+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits

else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


window.onload=initbox



function setCellBGimage(id,sImgSrc) {
var c = document.getElementById ? document.getElementById(id) :
document.all ? document.all[id] :
document.layers ? document[id+'Outer'].document[id+'Inner'] : null;
if (document.layers) {
c.background.src = sImgSrc;
} else {
c.style.backgroundImage = 'url('+sImgSrc+')';
}
}




function toggle(id,text){
d=document.getElementById(id);
d.innerHTML=text;
}

function imageString(details) {
return '<p><a href="./shopping/view_cart.php?qty=1&type=2&mode=ADD' + details +
       '"><img src="./share/img/images/btn_cart_gray.gif" border="0"></a>&nbsp;&nbsp;' + 
       '<a href="./catalog/product.php?' + details +
       '"><img src="./share/img/images/btn_info_gray.gif" border="0"></a>&nbsp;&nbsp;' +
       '<a href="http:./parts/index.php?' + details +
       '"><img src="./share/img/images/btn_parts_gray.gif" border="0"></a></p>';
}

refreshRotateDetails = new Array
refreshRotateDetails[0] = '&product_id=103&item_id=103&cat_id=30';
refreshRotateDetails[1] = '&item_id=67&group_name=Heavy_Duty_Blenders';
refreshRotateDetails[2] = '&item_id=49&group_name=Food_Processors';
refreshRotateDetails[3] = '&item_id=86&group_name=Toasters';
refreshRotateDetails[4] = '&item_id=88&group_name=Toasters';
refreshRotateDetails[5] = '&item_id=98&group_name=Toasters';
refreshRotateDetails[6] = '&item_id=76&group_name=Coffee_Makers';

refreshRotate = new Array
refreshRotate[0] = '<span class="newheader">WPG300</span><br>Dual Italian-Style Panini Grill' + imageString(refreshRotateDetails[0])
refreshRotate[1] = '<span class="newheader">MX1500</span><br>Half-Gallon Programmable Hi-Power Blender with Sound Enclosure' + imageString(refreshRotateDetails[1])
refreshRotate[2] = '<span class="newheader">FP1000</span><br>2.5 Quart Dicing Food Processor' + imageString(refreshRotateDetails[2])
refreshRotate[3] = '<span class="newheader">WCT800</span><br>Heavy Duty Commercial Toaster' + imageString(refreshRotateDetails[3])
refreshRotate[4] = '<span class="newheader">WCT810</span><br>Heavy Duty Commercial Toaster' + imageString(refreshRotateDetails[4])
refreshRotate[5] = '<span class="newheader">WW150</span><br>Belgian Waffle Maker' + imageString(refreshRotateDetails[5])
refreshRotate[6] = '<span class="newheader">WCM08B</span><br>4-Cup Coffeemaker (with Stainless Carafe)' + imageString(refreshRotateDetails[6])

refreshRotate2 = new Array
refreshRotate2[0] = "<table border=0 cellspacing=0 cellpadding=0><td background=./share/img/images/mx1000.jpg height=330 width=298><img src=./share/img/images/spacer.gif width=296 height=330 border=0></td></table>"
refreshRotate2[1] = "<table border=0 cellspacing=0 cellpadding=0><td background=./share/img/images/mx1500.jpg height=330 width=296><img src=./share/img/images/spacer.gif width=296 height=330 border=0></td></table>"
refreshRotate2[2] = "<table border=0 cellspacing=0 cellpadding=0><td background=./share/img/images/fp1000.jpg height=330 width=296><img src=./share/img/images/spacer.gif width=296 height=330 border=0></td></table>"
refreshRotate2[3] = "<table border=0 cellspacing=0 cellpadding=0><td background=./share/img/images/wct800.jpg height=330 width=296><img src=./share/img/images/spacer.gif width=296 height=330 border=0></td></table>"
refreshRotate2[4] = "<table border=0 cellspacing=0 cellpadding=0><td background=./share/img/images/wct810.jpg height=330 width=296><img src=./share/img/images/spacer.gif width=296 height=330 border=0></td></table>"
refreshRotate2[5] = "<table border=0 cellspacing=0 cellpadding=0><td background=./share/img/images/ww150.jpg height=330 width=296><img src=./share/img/images/spacer.gif width=296 height=330 border=0></td></table>"
refreshRotate2[6] = "<table border=0 cellspacing=0 cellpadding=0><td background=./share/img/images/wcm08b.jpg height=330 width=296><img src=./share/img/images/spacer.gif width=296 height=330 border=0></td></table>"


phraseCnt = refreshRotate.length;

randomNum = Math.floor ((Math.random() * phraseCnt))
randomNum = 0

function picPhrase() {
  trashTalk = refreshRotate[randomNum]
  document.write (trashTalk)
}

function picPhrase2() {
 
  trashTalk2 = refreshRotate2[randomNum]

  document.write (trashTalk2)
}

