<!-- 
//----------------------------------------------//
var AuctionNumb=new Array();
var AuctionFoto=new Array();
var AuctionDesc=new Array();
var ImgWidRatio=new Array();
    ImgWidRatio[0]="1";
//----------------------------------------------//
//  ADD AUCTION NUMBERS AND DESCRIPTIONS		  
//----------------------------------------------//
//  Change the values below to add		  
//  each auction number and its description.	  
//  Extra sets should be deleted. More can be added.
//  Apostrophes and Quotes should be avoided, or else 
//  the following substitutions should be made:     
//  Apostrophe should be replaced with &#39;    
//  Quote should be replaced with &#34;         
//----------------------------------------------//
//  Begin new carousel input data here.         //
AuctionNumb[1]="100:10000162"
AuctionFoto[1]="http://www.bug54carnivalglass.com/photos/100_purpfinecutroses51.JPG"
AuctionDesc[1]="PURPLE NORTHWOOD FINECUT & ROSES ROSEBOWL"
ImgWidRatio[1]="1.333"
AuctionNumb[2]="100:10000189"
AuctionFoto[2]="http://www.bug54carnivalglass.com/photos/100_whiteredwreathedcherries1.JPG"
AuctionDesc[2]="WHITE WREATHED CHERRY LARGE OVAL BOWL W/ PURPLE CHERRIES"
ImgWidRatio[2]="1.333"
AuctionNumb[3]="100:10000153"
AuctionFoto[3]="http://www.bug54carnivalglass.com/photos/100_whiteleafbeadsrosebowl1.JPG"
AuctionDesc[3]="WHITE NORTHWOOD LEAF & BEADS ROSEBOWL"
ImgWidRatio[3]="1.333"
AuctionNumb[4]="100:10000156"
AuctionFoto[4]="http://www.bug54carnivalglass.com/photos/100_aobeadedcablerosebowl1.JPG"
AuctionDesc[4]="AQUA OPAL NORTHWOOD BEADED CABLE ROSEBOWL"
ImgWidRatio[4]="1.333"
//  End of new carousel input data here.//
//--------------------------------------//
//          SET UP APPEARANCE           //
//--------------------------------------//
var scrollspeed ="30"; 
var slideborder ="#555555"; 
var slidebgcolor="#EEE9D9"; 
var textcolor   ="#222222"; 
var gallerywidth="372"; 

//--------------------------------------//
//     DO NOT EDIT BELOW THIS LINE      //
//--------------------------------------//
var slider1, slider2, maxWid=0; var sliderwidth=0; 
var quot="'"; var scrollamount=-1; var thCnt=0; 
var CrossSellimages=new Array();

for (var i=1; i<=AuctionNumb.length; i++){
   if (AuctionNumb[i]){
      thCnt++;
      if (!ImgWidRatio[i]) {
         ImgWidRatio[i]=ImgWidRatio[0]
      };
      CrossSellimages[thCnt]='<a href="http://www.bug54carnivalglass.com/cgi/disp_item.cgi?record='+AuctionNumb[i]+'">'+
      '<img src="'+AuctionFoto[i]+'"  width="'+Math.round(96*ImgWidRatio[i])+'" height="96" hspace="2" vspace="4" border="0" '+
      ' onmouseover="thumbwow(this.alt,'+quot+AuctionFoto[i]+quot+',this.offsetLeft,this.offsetWidth,'+quot+AuctionDesc[i]+quot+')" '+
      ' title="" alt="'+AuctionNumb[i]+'" ></a>';
      sliderwidth=sliderwidth+Math.round((96*ImgWidRatio[i])+4);
      if (ImgWidRatio[i]>maxWid){
         maxWid=ImgWidRatio[i]
      }
   }
};
var sliderheight="128"; 
var CrossSellStrip='<nobr>'+CrossSellimages.join("")+'</nobr>';
if (sliderwidth-maxWid*96<parseInt(gallerywidth)){
   gallerywidth=Math.abs(sliderwidth-maxWid*96)
};

function setupGallery(){
   document.write('<table align="center" border="0" cellspacing="0" cellpadding="0" style="position:relative; border:2px solid '+slideborder+'; background-color:'+slidebgcolor+'; width:'+(parseInt(gallerywidth)+2)+'px; height:130px;"><tr><td valign="top" align="center">');
   document.write('<div style="position:relative;width:'+gallerywidth+'px;height:129px;overflow:hidden;">');
   document.write('<div style="position:absolute;left:0px;bottom:0px;width:'+gallerywidth+'px;height:129px;" onMouseover="scrollamount=0" onMouseout="scrollamount=-1">');
   document.write('<div id="slidegroup1" style="position:absolute;left:0px;bottom:9px;"></div>');
   document.write('<div id="slidegroup2" style="position:absolute;left:-1000px;bottom:9px;"></div>');
   document.write('<div id="blowup" style="position:absolute;left:0px;bottom:0px;visibility:hidden;border:1px '+slideborder+' solid;" onmouseout="unwow()"></div>');
   document.write('</div></div>');
   document.write('</td></tr><tr><td align="center" id="slidelabel" style="padding:2px; font-family:sans-serif; font-size:14px; font-weight:normal; color:'+textcolor+'" title="A few of my items currently in stock.">');
   document.write('A few of my items currently in stock.');                                          
   document.write('</td></tr></table>');
   document.write('<span style="font-family:sans-serif;color:gray;font-size:10px;">Get this script from <a href=http://www.isdntek.com/tagbot/xsell.htm><font color=gray>ISDN*tek</font></a></span>')
};     

function loadimages(){
   slider1=document.getElementById("slidegroup1");
   slider2=document.getElementById("slidegroup2");
   slider1.innerHTML=CrossSellStrip;	
   slider2.innerHTML=CrossSellStrip;	
   slider2.style.left=""+sliderwidth+"px";  	
   startaction=setInterval("slideleft()",parseInt(scrollspeed));
};

function slideleft(){
   if (parseInt(slider1.style.left)>(sliderwidth*(-1))) {
      slider1.style.left=(parseInt(slider1.style.left)+scrollamount)+"px"
   } else {
      slider1.style.left=(parseInt(slider2.style.left)+sliderwidth+scrollamount)+"px"
   }
   if (parseInt(slider2.style.left)>(sliderwidth*(-1))) {
      slider2.style.left=(parseInt(slider2.style.left)+scrollamount)+"px"
   } else {
      slider2.style.left=(parseInt(slider1.style.left)+sliderwidth)+"px"
   }
};

function thumbwow(num,foto,thumOffset,thumSize,label){
   if (parseInt(slider1.style.left)<=0){
     if (thumOffset+parseInt(slider1.style.left)>0-thumSize){
        leftstart=thumOffset+parseInt(slider1.style.left)
     } else {
        leftstart=thumOffset+parseInt(slider2.style.left)
     }
   } else {
     if (thumOffset+parseInt(slider2.style.left)>0-thumSize){leftstart=thumOffset+parseInt(slider2.style.left)}else{leftstart=thumOffset+parseInt(slider1.style.left)}
   };
   document.getElementById("blowup").style.left=leftstart+0+(Math.round((thumSize-thumSize/0.8-2)/2))+"px";
   document.getElementById("blowup").innerHTML='<a href="http://www.bug54carnivalglass.com/cgi/disp_item.cgi?record='+num+'">'+
   '<img src="'+foto+'" height="120" border="0" ></a>';
   document.getElementById("blowup").style.visibility="visible";
   document.getElementById("slidelabel").innerHTML=label;
};

function unwow(){
   document.getElementById("blowup").style.visibility="hidden";
   document.getElementById("slidelabel").innerHTML=document.getElementById("slidelabel").title
};

setupGallery();

loadimages();

// -->		

