﻿<!--
	function showMapLayer(){
		$("div#mapPackage")
			.animate(
				{ opacity : 'toggle' , height : 'toggle'}
				, 500
				, function(){ 
				}
			);
	};

	function showMainExplain(obj){
		$(obj)
			.parent().parent()
			.find("li").attr("class","")
			.find("p").attr("class","hide").end()
			.find("span.iconOpen").html("+");
		$(obj)
			.find("span.iconOpen").html("-").end()
			.parent().attr("class","select").end()
			.parent().find("p").attr("class","detail");
	};

	function showCommunityView(obj, idx){
		var url = (idx == 0) ? "/community/com_gallery_list.asp" : "/community/com_analyze_list.asp";
		$(obj).parent().parent().next().find("a").attr("href",url);
		$(obj).parent().parent().find("a").attr("class","").end().end().end().attr("class","select");
		$(obj).parent().parent().parent().find("#sample ol").addClass("hide").eq(idx).removeClass("hide");
	};

	function showNoticeView(obj , idx){
		var url = (idx == 2) ? "/news/news_update_list.asp" : "/news/news_notice_list.asp";
		$(obj).parent().parent().next().find("a").attr("href",url);
		$(obj).parent().parent().find("a").attr("class","").end().end().end().attr("class","select");
		$(obj).parent().parent().parent().find("ol.noticeList").attr("class","noticeList hide").eq(idx).attr("class","noticeList");
	}

	function getHigh1Cash(){
		$.get(
			'/sitelib/get_hionegame_cashinfo.asp'
			, {}
			, function(data){
				var dataJ = eval(data);
				if (dataJ["rtnCode"] == '101') {
					$('#spnCashInfoAll').html(dataJ["all"] + ' 캐시');
					$('#spnCashInfoReal').html(dataJ["real"] + ' 캐시');
					$('#spnCashInfoBonus').html(dataJ["bonus"] + ' 캐시');
				} else {
					$('#spnCashInfoAll').html('??');
				};
			}
		);
	}

	function viewGrandEventReward(){
		window.open("/event/event_grand_101126/popup_event_reward.asp","eventRewardView",'width=431,height=516,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes');
	}
	
// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드)
function flashWrite(url,w,h,id,bg,vars,win){

	// 플래시 코드 정의
	var flashStr=
	"<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='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// 플래시 코드 출력
	document.write(flashStr);

}


// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드)
function flashWrite9(url,w,h,id,bg,vars,win){

	// 플래시 코드 정의
	var flashStr=
	"<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='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// 플래시 코드 출력
	document.write(flashStr);

}

// 프로필 팝업 열기 (2011-04-26 추가, K)
function popProfile(n) {
    window.open("/profile/profile.asp?n=" + encodeURIComponent(n), 'daprofile', 'width=354,height=348,status=no,toolbar=no,menubar=no,location=no,scrollbars=no');
}

//-->
