
/************************************************************
*
*  JavaScript
*
************************************************************/

 //ex)<script type="text/javascript">flashX('slide.swf','462','495','slide');</script> <== html ����
function flashX(src,w,h,swfid){
swf_html = '';
swf_html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+w+'" height="'+h+'" id="'+swfid+'">';
swf_html += '<param name="allowScriptAccess" value="sameDomain">';
swf_html += '<param name="movie" value="'+src+'">';
swf_html += '<param name="quality" value="high">';
swf_html += '<param name="bgcolor" value="#FFFFFF">';
swf_html += '<PARAM NAME="wmode" VALUE="transparent">';
swf_html += '<embed src="'+src+'" quality="high" bgcolor="#FFFFFF" width="'+w+'" height="'+h+'" name="'+swfid+'" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
swf_html += '</object>';
document.write(swf_html);

$("#player").html(swf_html);
}

//	보물찾기 이벤트용		2011-09-30
function go_treasure_find(id,num){
//	if (id != 'mmaker00' && id != 'soous75' ){
//		alert('보물상찾기 이벤트는 10월 4일부터 진행됩니다.');
//		return;
//	}
	if (id == ""){
		login();
	}else{
		var		url		=	"http://m.iiacairstar.kr/event_20110929/treasure_find.html?user_id="+id+"&num="+num;
		dynamic_treasure.src		=	url;
	}
}

var popupAAEvent;
	//로그인 팝업 레이어

$().ready(function(){
    popupAAEvent = MessageBox.makePopup( {title:"", sourceId:"eventAA_layer",  style: MessageBox.STYLE_NORMAL } );
//	popupSitemap = MessageBox.makePopup( {title:"", sourceId:"sitemap_layer",  style: MessageBox.STYLE_NORMAL } );
});

function event_windows_on(){
	popupAAEvent.show();
}	
function event_windows_off(){
	popupAAEvent.hide();
}

//	보물찾기 이벤트용		2011-09-30






