//function swf(src,w,h){
//	html = '';
//	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10.0.12.36" id="param" width="'+w+'" height="'+h+'" >';
//	html += '<param name="movie" value="'+src+'">';
//	html += '<param name="quality" value="high">';
//	html += '<param name="bgcolor" value="#ffffff">';
//	html += '<param name="wmode" value="transparent">';
//	html += '<param name="menu" value="false">';
//	html += '<param name="swliveconnect" value="true">';
//	html += '<param name="allowScriptAccess" value="always">';
//	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always"><\/embed>';
//	html += '<\/object>';
//	document.write(html);	
//}

function swf(src,w,h, type, id, aid){

	//alert(type);
	var url = "url=http://www.ohmyhotel.com/ohmyhotel/getXml_main_flash.aspx";
	
	if(type != null)	
	{
		if(type == 'areatour')
			url += "&aid=" + aid + "&id=" + id + "&type1=area&type2=tour";
		else
			url += "&aid=" + aid + "&id=" + id + "&type=" + type;
	}
		


	//alert(url);

	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'" >';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="wmode" value="transparent">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<param name="allowScriptAccess" value="always">';
	html += '<param name="FlashVars" value="' + url + '">';
	html += '<embed src="'+src+ "?" + url + '" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" wmode="transparent"><\/embed>';
	html += '<\/object>';
	document.write(html);	
}
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 
