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>= 730/1000){ 
   if(image.width>730){
    ImgD.width=730; 
    ImgD.height=(image.height*730)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   /*ImgD.alt="bigpic"  */
  } 
  else{ 
   if(image.height>1000){
    ImgD.height=1000; 
    ImgD.width=(image.width*1000)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
    /*ImgD.alt="bigpic"  */ 
  } 
}
}

//************************************************

var flag=false; 
function Imagesize(ImgD){ 
var image=new Image(); 
image.src=ImgD.src; 
if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 100/100){ 
   if(image.width>100){
    ImgD.width=100; 
    ImgD.height=(image.height*100)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   /*ImgD.alt="bigpic"  */
  } 
  else{ 
   if(image.height>100){
    ImgD.height=100; 
    ImgD.width=(image.width*100)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
    /*ImgD.alt="bigpic"  */ 
  } 
}
}



	var navCurrentId;
 
	function show(id)
	{
		var objMenu = document.getElementById("menu" + id);
		objMenu.style.visibility = "visible";
 
		var objMenuA = document.getElementById("menuA" + id);
		if (objMenuA.className == "menu")
		{
			navCurrentId = objMenuA.uniqueID;
		}
		else
		{
			objMenuA.className = "menu";
		}
	}
 
	function hidd(id)
	{
		var objMenu = document.getElementById("menu" + id);
		objMenu.style.visibility = "hidden";
 
		var objMenuA = document.getElementById("menuA" + id);
		if (objMenuA.uniqueID != navCurrentId)
		{
			objMenuA.className = "menu";
		}
	}
