<!-- 

/* 
功能：图片等比例缩放 
目标:ImgTag 
图片宽度:FitWidth 
图片高度:FitHeight 
*/ 
function ResizePic(ImgTag, FitWidth, FitHeight) { 
	var image = new Image(); 
	image.src = ImgTag.src; 
		if(image.width>0 && image.height>0){ 
			if(image.width/image.height >= FitWidth/FitHeight){ 
				if(image.width > FitWidth){ 
					ImgTag.width = FitWidth; 
					ImgTag.height = (image.height*FitWidth)/image.width; 
				} 
				else{ 
					ImgTag.width = image.width; 
					ImgTag.height = image.height; 
				} 
			} 
			else{ 
				if(image.height > FitHeight){ 
					ImgTag.height = FitHeight; 
					ImgTag.width = (image.width*FitHeight)/image.height; 
				} 
				else{ 
					ImgTag.width = image.width; 
					ImgTag.height = image.height; 
				} 
			} 
		} 
} 

function mouseMove(e, width, height){

	var x,y;
 		if(!document.all){
		  x=event.pageX; 
  			y=event.pageY;
		 }
 		else{
  			x=document.body.scrollLeft+event.clientX;
  			y=document.body.scrollTop+event.clientY; 
 		}
	
	document.all.im.width=width;

    document.all.im.width=height;

    document.all.im.src=e.src;

    document.all.d.style.left = x;

    document.all.d.style.top = y;

    document.all.d.style.display = "";

}

function mouseOut(){
	
	document.all.d.style.display = "none"; 
}

//--> 

