function ImagePreload()
{
 document.Preload = new Array();
 if(document.images)
 {
  for(var i=0; i < ImagePreload.arguments.length; i++)
  {
   document.Preload[i] = new Image();
   document.Preload[i].src = ImagePreload.arguments[i];
  }
 }
}

function popup(w,h,site) {
        x = screen.availWidth/2-w/2;
        y = screen.availHeight/2-h/2;
        var popupWindow = window.open(
            '','','width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y);
        popupWindow.document.write(site);
      }

function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
imgarr[i].setAttribute('xsrc', imgarr[i].getAttribute('src'));
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',this.getAttribute('xsrc'))
        }
    }
  }
}

