var tid='';

function gCW(el){
                var tmp=el.style.overflow
                el.style.overflow='auto'
                var w=el.scrollWidth
                el.style.overflow=tmp
                return w
           }



function move_right(){
   var c=document.getElementById('moveprod');
   var d=document.getElementById('movecontainer');

   if (c && parseInt(c.style.left)+gCW(c)-7>d.offsetWidth){
          //alert(parseInt(c.style.left)-110);
           c.style.left=(parseInt(c.style.left)-110)+'px';
          // alert(c.style.left);
           tid=setTimeout("move_right()",1);
   }
}
function move_left(){
   var c=document.getElementById('moveprod');
   var d=document.getElementById('movecontainer');


   if (c && parseInt(c.style.left)<0){


           c.style.left=(parseInt(c.style.left) + 110)+'px';;
           tid=setTimeout("move_left()",1);
   }
}
function showm(ce, but, cl){
     if(but && document.getElementById(but)){
             document.getElementById(but).className  = cl;
     }
     document.getElementById(ce).style.display = 'block';
}
function hidem(ce, but, cl){
     if(but && document.getElementById(but)){
             document.getElementById(but).className  = cl;
     }
     document.getElementById(ce).style.display = 'none';

}