function showBigImg(sItemId,filename,title){
	var objBigImg=document.getElementById("big_img");
	var mouseX=window.event.clientX+document.body.scrollLeft;
	var mouseY=window.event.clientY+document.body.scrollTop;
	objBigImg.style.top = mouseY-150;
	objBigImg.style.left = mouseX+10;
	objBigImg.style.display="";
	document.getElementById("linkImg").href="../xiangxi.asp?id="+sItemId+"";
	document.getElementById("bigImg").innerHTML="<a href='../sells_"+sItemId+".html' target='_blank'><img src='../user/image_cp/"+filename+"' alt='"+title+"' width='200' onload='showImage(this)' /></a>";
}

function closeBigImg(){
var objBigImg=document.getElementById("big_img");
objBigImg.style.display="none";
}

function showColorOver(obj){
	obj.style.backgroundColor="#0A246A";
	obj.style.color="#ffffff";
	obj.style.cursor="hand";
}
function showColorOut(obj){
	obj.style.backgroundColor="#F4F9FF";
	obj.style.color="#333333";
}



var flag=false;
function showImage(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 1){
if(image.width>200){ 
ImgD.width=200;
ImgD.height=(image.height*200)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>200){ 
ImgD.height=200;
ImgD.width=(image.width*200)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 
