speed = 1;
     f = 0;
     links = new Array();
     var width;
     var imagesLine;     
     function initImagesLine(){
          imagesLine = document.getElementById("imagesLine");
          var pre = imagesLine.childNodes[0];
          var children = pre.childNodes;
          width = 0;
          left = 10;
          for(i=0;i<children.length;i++){
//               alert(i);
               img = children[i];
               links[i] = img;
               img.style.left = left;
               img.onmousemove = onMouseMove;
               img.onmouseout = onMouseOut;
//               img.border=1;
//               img.style.filter += "Alpha(opacity=25)";
               left += img.clientWidth+20;
               width += 20+img.clientWidth;
          }
          setInterval(scrollImagesLine, 10);
     }
     
     function scrollImagesLine(){

          if (speed > 0 && f==0){
               var mes = "";
               for(i=links.length-1;i>=0;i--){
                    img = links[i];
                    var x = img.offsetLeft;

                    if (x <= width-100){
                         img.style.left = img.offsetLeft + speed;
                    }else
                         img.style.left = -100;
               }          
          }
     }

     function onMouseMove(){
          speed = 0;
     }
     
     function onMouseOut(){
          speed = 1;
     }
          
     function onLoad(){
          initImagesLine();          
          var table = document.getElementById("table1");
          var td =  document.getElementById("td1");

          //table.style.width=screen.availWidth;
          var wwidth = (window.innerWidth)?window.innerWidth: ((document.all)?document.body.offsetWidth:null)
          table.style.width=wwidth-50;
          td.style.width = wwidth-570-70-50;

     }
     
     function onResize(){
          var table = document.getElementById("table1");
          var td =  document.getElementById("td1");
          var wwidth = (window.innerWidth)?window.innerWidth: ((document.all)?document.body.offsetWidth:null)
          tableWidth = wwidth-50;
          if (tableWidth > 500){
               table.style.width= tableWidth;
               td.style.width = tableWidth-200;
          }
          
     }
     function gotoHref(href){
     	location.href = href;
     }