﻿function resize(ImgD,FitWidth,FitHeight){ var image=new Image();     image.src=ImgD.src;     if(image.width>0 && image.height>0){         if(image.width/image.height>= FitWidth/FitHeight){             if(image.width>FitWidth){                 ImgD.width=FitWidth;                 ImgD.height=(image.height*FitWidth)/image.width;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         } else{             if(image.height>FitHeight){                 ImgD.height=FitHeight;                 ImgD.width=(image.width*FitHeight)/image.height;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         }     } ImgD.style.display=''; } 

// for default page only 
function resize1(ImgD,FitWidth,FitHeight,max){ var image=new Image();     image.src=ImgD.src;     if(image.width>0 && image.height>0){         if(image.width/image.height>= FitWidth/FitHeight){             if(image.width>FitWidth){                 ImgD.width=FitWidth;                 ImgD.height=(image.height*FitWidth)/image.width;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         } else{             if(image.height>FitHeight){                 ImgD.height=FitHeight;                 ImgD.width=(image.width*FitHeight)/image.height;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         }     } ImgD.style.display=''; _nT+=1; if(_nT==max) morePics('#new .wrap',5,560); } 
function resize2(ImgD,FitWidth,FitHeight,max){ var image=new Image();     image.src=ImgD.src;     if(image.width>0 && image.height>0){         if(image.width/image.height>= FitWidth/FitHeight){             if(image.width>FitWidth){                 ImgD.width=FitWidth;                 ImgD.height=(image.height*FitWidth)/image.width;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         } else{             if(image.height>FitHeight){                 ImgD.height=FitHeight;                 ImgD.width=(image.width*FitHeight)/image.height;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         }     } ImgD.style.display=''; _fT+=1; if(_fT==max) morePics('#forever .wrap',5,560); }
function resize3(ImgD,FitWidth,FitHeight,max){ var image=new Image();     image.src=ImgD.src;     if(image.width>0 && image.height>0){         if(image.width/image.height>= FitWidth/FitHeight){             if(image.width>FitWidth){                 ImgD.width=FitWidth;                 ImgD.height=(image.height*FitWidth)/image.width;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         } else{             if(image.height>FitHeight){                 ImgD.height=FitHeight;                 ImgD.width=(image.width*FitHeight)/image.height;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         }     } ImgD.style.display=''; _wT+=1; if(_wT==max) morePics('#famous .wrap',5,560); } 
