function write_flash(mv,w,h,color) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'>");
	document.write("<param name='movie' value='"+mv+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='bgcolor' value='"+color+"'>");
	document.write("<param name='wmode' value='opaque'>");
	document.write("<embed src='"+mv+"' quality='high' bgcolor='"+color+"' wmode='opaque' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed>");
	document.write("</object>");
}

function flex_write_flash(mv,w,h,fprm) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'>");
	document.write("<param name='movie' value='"+mv+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='opaque'>");
	if(fprm) document.write("<param name='FlashVars' value='"+fprm+"'>");
	document.write("<embed src='"+mv+"' wmode='opaque' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'");
	if(fprm) document.write(" FlashVars='"+fprm+"' ");
	document.write("></embed>");
	document.write("</object>");
}

function show1(id,img,w,h,url) {
	w = w+30;
	h = h+60;
	var my_win = window.open('','image','width='+w+',height='+h+',resizable=no,scrollbars=no');
	my_win.document.open();
	my_win.document.write("<html><head><link rel='stylesheet' type='text/css' media='screen' href='../style/style.css'><title>Map</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><table border=0 cellspacing=0 cellpadding=0 width=100% height=100%><tr><td align='center' valign='middle'>");
	my_win.document.write("<img src='/common2/photos/hotels/"+id+"/"+img+"'></td></tr><tr><td align='center'><input class='Bg1' type='button' value='Close Window' onClick='window.close()'></td></tr></table></body></html>");
	my_win.document.close();
	my_win.focus();
}	 
