var i_height=100;
var i_width=150;
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>= i_width/i_height){
			if(image.width>i_width){  
				ImgD.width=i_width;
				ImgD.height=(image.height*i_width)/image.width;
			}else{
				ImgD.width=image.width;  
				ImgD.height=image.height;
			}
			//ImgD.alt=image.width+"กม"+image.height;
		}
		else{
			if(image.height>i_height){  
				ImgD.height=i_height;
				ImgD.width=(image.width*i_height)/image.height;     
			}else{
				ImgD.width=image.width;  
				ImgD.height=image.height;
			}
			//ImgD.alt=image.width+"กม"+image.height;
			}
	}
}

function makevisible(cur,which){
	if (which==0)
	cur.filters.alpha.opacity=100;
	else
	cur.filters.alpha.opacity=80;
}
document.writeln("");