function mycarousel_initCallback(carousel){
	$("#mycarousel li").mouseover(function(){
		$("#Product_MainPic img")[0].src=this.getElementsByTagName("img")[0].name;
		$("#Product_MainPic img")[0].jqimg=this.getElementsByTagName("img")[0].name;
		$(this).siblings().each(function(){
			this.getElementsByTagName("img")[0].className="";
		})
		this.getElementsByTagName("img")[0].className="curr";

	})
};

$(function(){
    jQuery("#mycarousel").jcarousel({initCallback:mycarousel_initCallback});
    jQuery("#Fi_pro").jcarousel();
   $(".jqzoom").jqueryzoom({
		xzoom:480,
		yzoom:320,
		offset:10,
		position:"right",
        preload:1,
		lens:1
	});

});


  function   DrawImage(ImgD){  
        var   flag=false;  
        var   image=new   Image();   
        image.src=ImgD.src;   
        if(image.width>0   &&   image.height>0){   
          flag=true;   
          if(image.width/image.height>=   250/249){   
            if(image.width>250){       
            ImgD.width=250;   
            ImgD.height=(image.height*250)/image.width;   
            }else{   
            ImgD.width=image.width;       
            ImgD.height=image.height;   
            }   
            }   
          else{   
            if(image.height>249){       
            ImgD.height=249;   
            ImgD.width=(image.width*249)/image.height;             
            }else{   
            ImgD.width=image.width;       
            ImgD.height=image.height;   
            }   
            }   
          }   
  } 

