function objectTAG(name,file,width,height,wmode,bgcolor) {
	document.write('\
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+name+'" align="middle">\
<param name="allowScriptAccess" value="sameDomain">\
<param name="movie" value="'+file+'">\
<param name="quality" value="high">\
<param name="wmode" value="'+wmode+'">\
<param name="bgcolor" value="'+bgcolor+'">\
<embed src="'+file+'" quality="high" wmode="'+wmode+'" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+name+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\
</object>\
	');
}

//날씨 쿠키
function setCookie( name, value, expiredays ) 
{ 
var todayDate = new Date(); 
todayDate.setDate( todayDate.getDate() + expiredays ); 
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
}

function weather_change(str)
{
	name = 'g_city';
	value = str;
	expiredays = 365;

	setCookie( name, value, expiredays );
}
//날씨 쿠키

function printSWF( id, flashUri, vWidth, vHeight, winMode, bgColor) {
	var _obj_ = "";

	if ( id == '' )
	{
		tmp = "happy_flash_";
		rand = Math.round(( Math.random()*100000 ));

		id = tmp + rand;
	}

	if ( winMode == '' )
	{
		winMode = 'transparent';
	}
	if ( bgColor == '' )
	{
		bgColor = '#FFFFFF';
	}

	//alert(id);
	
	_obj_ = '<embed src="' + flashUri + '" quality="high" wmode="' + winMode + '" bgcolor="' + bgColor + '" width="' + vWidth +'" height="' + vHeight + '" id="' + id + '" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>    ';
	
	document.writeln( _obj_ );

	eval("window." + id + " = document.getElementById('" + id + "');");
}


function FlashXmlbody(Ftrans,wid,hei) {

	printSWF('',Ftrans,wid,hei,'');

}