// JavaScript Document
function mover(obj,cssName){ 
		obj.className = cssName;
}



function ShowThis(obj){
    var eid=obj.id+0;
    if(document.getElementById(eid)!=null)
    {
        if (document.getElementById(eid).style.display=='block')
        {
           document.getElementById(eid).style.display='none';
           obj.title="none";
        }
        else
        {
           document.getElementById(eid).style.display='block';
           obj.title="block";
        }
     }
  }   
  
  
function DrawImage(ImgD,varWidth,varHight){ 
var image=new Image(); 
image.src=ImgD.src; 
var setWidth=varWidth;
var setHight=varHight;
if(image.width/image.height>= setWidth/setHight){
	 if(image.width>setWidth){ 
		ImgD.width=setWidth; 
		ImgD.height=image.height*(setWidth/image.width); 
		}
	  else{
	   ImgD.width=image.width; 
	   ImgD.height=image.height; 
	   } 
} 
else{ 
	  if(image.height>setHight){ 
		   ImgD.height=setHight; 
		   ImgD.width=(image.width*setHight)/image.height; 
		}
	  else{ 
		   ImgD.width=image.width; 
		   ImgD.height=image.height; 
		  } 
} 
}