﻿
function LoadNoProductImage(img, size)
{
	img.src = "/images/no_picture_" + size + ".jpg";
}


var win=null;
 function NewWindow(mypage,mywidth,myheight){
      if (win) { win.close(); }
      myleft=400;mytop=100
      settings="width=" + mywidth + ",height=" + myheight + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
      win=window.open(mypage,"popupWin",settings);
      win.focus();
 }
 



function warp()
{
    window.location=gotolink
}


var myimages=new Array()
var gotolink="#"

function preloadimages()
{
    for (i=0;i<preloadimages.arguments.length;i++)
    {
        myimages[i]=new Image()
        myimages[i].src=preloadimages.arguments[i]
    }
}


function PopupPic(sPicURL) { 
    	
   	    window.open( "popup.html?"+sPicURL, "",  
   	    "resizable=0"); 
    	
        };
		
var arrTemp=self.location.href.split("?"); 
var picUrl = (arrTemp.length>0)?arrTemp[1]:""; 
var NS = (navigator.appName=="Netscape")?true:false; 

function FitPic() { 
       iWidth = (NS)?window.innerWidth:document.body.clientWidth; 
       iHeight = (NS)?window.innerHeight:document.body.clientHeight; 
       iWidth = document.images[0].width - iWidth; 
       iHeight = document.images[0].height - iHeight; 
       window.resizeBy(iWidth, iHeight + 50); 
       self.focus(); 
     }; 

