function resetbutton(id){
    var jquery_obj = $('#'+id).parent().parent();
    jquery_obj.parent().find('td').not('.exclude').each(function(){
        $(this).attr('background', '/images/bullbottom01a.gif');
    });
    jquery_obj.attr('background', '/images/bullbottom01b.gif');
}
function marqueeProduct(){    
   var speed = 100;
   var marqueeInterval; 
   var content = $('#recommend_products').html();   
   $('#recommend_products').html("<div id='productBox'><div id='productBox1'>"+content+"</div><div id='productBox2'>"+content+"</div></div>");
   
   marqueeInterval = setInterval("scrollMarqueeProduct()",speed);
   $('#productBox').mouseout(function (){
       marqueeInterval = setInterval("scrollMarqueeProduct()",speed);
   }).mouseover(function (){
       clearInterval(marqueeInterval);
   });
}
function scrollMarqueeProduct(){
   var productBox = document.getElementById('productBox');
   var productBox1=document.getElementById("productBox1");
   var productBox2=document.getElementById("productBox2");
   if(productBox.scrollTop>=0){
        productBox.scrollTop++;
      if(productBox.scrollTop >= productBox2.offsetHeight-10){          
        productBox.scrollTop = 0;
      }
   }
}