function DrawImage1(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 178/76)
	  { 
          ImgD.width=178; 
          ImgD.height=(image.height*178)/image.width;
       } 
    else
	  { 
          ImgD.height=76; 
          ImgD.width=(image.width*76)/image.height;
       }
    }
}

function DrawImage2(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 130/100)
	  { 
          ImgD.width=130; 
          ImgD.height=(image.height*130)/image.width;
       } 
    else
	  { 
          ImgD.height=100; 
          ImgD.width=(image.width*100)/image.height;
       }
    }
}

function DrawImage3(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 118/50)
	  { 
          ImgD.width=118; 
          ImgD.height=(image.height*118)/image.width;
       } 
    else
	  { 
          ImgD.height=50; 
          ImgD.width=(image.width*50)/image.height;
       }
    }
}

function DrawImage4(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 100/100)
	  { 
          ImgD.width=100; 
          ImgD.height=(image.height*100)/image.width;
       } 
    else
	  { 
          ImgD.height=100; 
          ImgD.width=(image.width*100)/image.height;
       }
    }
}

function DrawImage5(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 200/200)
	  { 
          ImgD.width=200; 
          ImgD.height=(image.height*200)/image.width;
       } 
    else
	  { 
          ImgD.height=200; 
          ImgD.width=(image.width*200)/image.height;
       }
    }
}

function DrawImage6(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 104/96)
	  { 
          ImgD.width=104; 
          ImgD.height=(image.height*104)/image.width;
       } 
    else
	  { 
          ImgD.height=96; 
          ImgD.width=(image.width*96)/image.height;
       }
    }
}

function DrawImage7(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 90/45)
	  { 
          ImgD.width=90; 
          ImgD.height=(image.height*90)/image.width;
       } 
    else
	  { 
          ImgD.height=45; 
          ImgD.width=(image.width*45)/image.height;
       }
    }
}
function DrawImage8(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 200/220)
	  { 
          ImgD.width=200; 
          ImgD.height=(image.height*200)/image.width;
       } 
    else
	  { 
          ImgD.height=220; 
          ImgD.width=(image.width*220)/image.height;
       }
    }
}

function DrawImage9(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 100/100)
	  { 
          ImgD.width=100; 
          ImgD.height=(image.height*100)/image.width;
       } 
    else
	  { 
          ImgD.height=100; 
          ImgD.width=(image.width*100)/image.height;
       }
    }
}

