////in magazine/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function gnb_01()
{
	window.location.href="/IKY_InMagazine/default.asp"
}
//woman fashion
function gnb_01_1()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=WO_FA"
}
//man fashion
function gnb_01_2()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=MA_FA"
}
//woman beauty
function gnb_01_3()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=WO_BE"
}
//man beauty
function gnb_01_4()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=MA_BE"
}
//star people
function gnb_01_5()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=ST_PE"
}
//love sex
function gnb_01_6()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=LO_SE"
}
//life culture
function gnb_01_7()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=LI_CU"
}
//food travel
function gnb_01_8()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=FO_TR"
}
//interior
function gnb_01_9()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=IN_PL"
}
//car
function gnb_01_10()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=CA_TE"
}
//leisure
function gnb_01_11()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=LE_SP"
}
//money
function gnb_01_12()
{
	window.location.href="/IKY_InMagazine/ListByGroup.asp?iky_group=MO_CA"
}
//special issue
function gnb_01_13()
{
	window.location.href="/IKY_InMagazine/ViewSpecial.asp"
}
//top artcle
function gnb_01_14()
{
	window.location.href="/IKY_InMagazine/TopArticle.asp"
}
//find artcle
function gnb_01_15()
{
	window.location.href="/IKY_InMagazine/Search.asp"
}
//top 100
function gnb_01_16()
{
	window.location.href="/IKY_InMagazine/TopSearch.asp"
}
//emagazine
function gnb_01_17()
{
	window.location.href="/IKY_InMagazine/emagazine.asp"
}


////in magazine/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function gnb_02()
{
	window.location.href="/IKY_OnStyle/"
}
//style hunter
function gnb_02_1()
{
	window.location.href="/IKY_OnStyle/list.asp?board=1"
}
//weekly item
function gnb_02_2()
{
	window.location.href="/IKY_OnStyle/list.asp?board=2"
}
//on air
function gnb_02_3()
{
	window.location.href="/IKY_OnStyle/onair_list.asp"
}
//board
function gnb_02_4()
{
	window.location.href="/IKY_OnStyle/ask_list.asp"
}

////brand news/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function gnb_03()
{
	window.location.href="/IKY_BNews/"
}
//presitge brand
function gnb_03_1()
{
	window.location.href="/IKY_BNews/brand_list.asp"
}
//news launching
function gnb_03_2()
{
	window.location.href="/IKY_BNews/news_list.asp"
}

////kiss zine/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function gnb_04()
{
	window.location.href="/IKY_KissZine/"
}
//Click Sketch
function gnb_04_1()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=1"
}
//cul_1
function gnb_04_2()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=3"
}
function gnb_04_3()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=4"
}
function gnb_04_4()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=5"
}
function gnb_04_5()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=6"
}
function gnb_04_6()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=7"
}
function gnb_04_7()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=8"
}
function gnb_04_8()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=9"
}
function gnb_04_9()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=14"
}
function gnb_04_10()
{
	window.location.href="/IKY_KissZine/kisszine_board_index.asp?board_id=15"
}
//style quiz
function gnb_04_11()
{
	window.location.href="/IKY_KissZine/poll_index.asp"
}
//kiss say
function gnb_04_12()
{
	window.location.href="/IKY_KissZine/kiss_list.asp?board=1001"
}

////kiss blog/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function gnb_05()
{
	window.location.href="/IKY_KBlog/"
}
//trend
function gnb_05_1()
{
	window.location.href="/IKY_KBlog/trend/list.asp"
}
//intoduce
function gnb_05_2()
{
	window.location.href="/IKY_KBlog/introduce.asp"
}

//search
function gnb_05_3()
{
//	window.location.href="/IKY_KBlog/Member_Search.asp"
	window.location.href="/IKY_KBlog/NewMember_List.asp"

}

//search
function gnb_05_4()
{
	window.location.href="/IKY_KBlog/Member_Search.asp"
}

function gnb_05_5()
{
	window.location.href="/IKY_KBlog/Revolution/MansRevolutionList.asp"
}
function gnb_05_6()
{
	window.location.href="/IKY_KBlog/Revolution/sRevolutionList.asp"
}

////kiss party/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function gnb_06()
{
	window.location.href="/IKY_Party/"
}
//let1 party
function gnb_06_1()
{
	window.location.href="/IKY_Party/party_view_frm.asp?board_id=88"
}
//party people
function gnb_06_2()
{
	window.location.href="/IKY_Party/kissyou_people_view.asp"
}
//party a 2 z
function gnb_06_3()
{
	window.location.href="/IKY_Party/partyAtoZView.asp?board_id=1"
}
//party freeboard
function gnb_06_4()
{
	window.location.href="/IKY_Party/trend/list.asp?cate=10"
}
//social party
function gnb_06_5()
{
	//window.location.href=""
}
//big party
function gnb_06_6()
{
	//window.location.href=""
}


////kiss event/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function gnb_07()
{
	window.location.href="/IKY_Event/"
}
//kissyou event
function gnb_07_1()
{
	window.location.href="/IKY%IKY_Event/event_view_list_frm.asp"
}
//kissyou fanstion
function gnb_07_1()
{
	window.location.href="/IKY%IKY_Event/event_view_list_frm.asp"
}
//kissyou event
function gnb_07_2()
{
	window.location.href="/IKY_Event/room_request.asp"
}
//kissyou ebungae
function gnb_07_3()
{
	window.location.href="/IKY_Event/meet_request.asp"
}


// LuxuryBrand////////////////////////////////////////////////////////////////////////////
function gnb_08(){
	this.location.href="/IKY_LBrand/";
}
// È÷½ºÅä¸®µðÀÚÀÌ³Ê
function gnb_08_1(){
	window.location.href="/IKY_LBrand/LBrandHistory.asp";
}
// ¹ÂÁî¸ðµ¨
function gnb_08_2(){
	window.location.href="/IKY_LBrand/LBrandMuseNModels.asp";
}
// ÀÎ¾ÆÆ¼Å¬
function gnb_08_3(){
	window.location.href="/IKY_LBrand/LBrandInArticlesView.asp";
}
// ÀÌº¥Æ® ·±Äª
function gnb_08_4(){
	window.location.href="/IKY_LBrand/LBrandNews.asp";
}
// with Celebrities
function gnb_08_5(){
	window.location.href="/IKY_LBrand/LBrandCelebritiesList.asp?board=3000";
}
// Åå·°¼Å¸®ºê·£µå
function gnb_08_6(){
	window.location.href="/IKY_LBrand/LBrandTalkList.asp?board=3001";
}
// ÆÐ¼Ç ÆäÀÌ½º¿ÀÇÁ
function gnb_08_7(){
	window.location.href="/IKY_LBrand/LBrandFFOff.asp";
}
// ·°¼Å¸® °Ë»ö
function gnb_08_8(){
	window.location.href="/IKY_LBrand/LBrandListAll.asp";
}

/*
function top_link(){
	this.location.href="/IKY_main/";
}

// SingleDiary///////////////////////////////////////////////////////////////////////////////////
function gnb_01(){
	this.location.href="/iky_sdiary/";
}

// À§µåÄ¿ÇÇ
function gnb_01_1(){
	this.location.href="/iky_sdiary/with_index.asp";
}
// Æ÷Åä¸±·¹ÀÌ
function gnb_01_2(){
	this.location.href="/iky_sdiary/photo_index.asp";
}
// ½Ì±Û XÆÄÀÏ
function gnb_01_3(){
	this.location.href="/iky_sdiary/";
}
// ÀÌ»óÇÑ³ª¶óÀÇ Æú
function gnb_01_4(){
	this.location.href="/iky_sdiary/poll_index.asp";
}

// µµÀü È²´çÄûÁî
function gnb_01_5(){
	this.location.href="/iky_sdiary/quiz_index.asp";
}

// KissZine/////////////////////////////////////////////////////////////////////////////////////////////
function gnb_02(){
	this.location.href="/iky_kisszine/";
}

// ·Î¸Ç½º±æµé±â
function gnb_02_1(){
	this.location.href="/iky_kisszine/kisszine_board_index.asp?board_id=8";
}
// 29´ãÀÌ¾ß±â
function gnb_02_2(){
	this.location.href="/iky_kisszine/kisszine_board_index.asp?board_id=5";
}
// ´ÙÀÌ¾î¸®
function gnb_02_3(){
	this.location.href="/iky_kisszine/kisszine_board_index.asp?board_id=7";
}
// ¾ÆÀÚºô
function gnb_02_4(){
	this.location.href="/iky_kisszine/kisszine_board_index.asp?board_id=6";
}
// ¸À³ª°Ô »ç´Â¾ß±â
function gnb_02_5(){
	this.location.href="/iky_kisszine/kisszine_board_index.asp?board_id=3";
}
// °õÅÊÀÌ ÀÏ±â
function gnb_02_6(){
	this.location.href="/iky_kisszine/kisszine_board_index.asp?board_id=4";
}
// FoxÀÇ ³­Àå¸¸È­
function gnb_02_7(){
	this.location.href="/iky_kisszine/kisszine_board_index.asp?board_id=9";
}


// In Magazine////////////////////////////////////////////////////////////////////////////////////
function gnb_03(){
	this.location.href="/IKY_InMagazine/";
}
// ÆÐ¼Ç
function gnb_03_1(){
	this.location.href="//IKY_InMagazine/fashion_sub.asp?se=2";
}
// ºäÆ¼
function gnb_03_2(){
	this.location.href="/IKY_InMagazine/beauty_Sub.asp?se=6";
}
// ½ºÅ¸ÇÇÇÃ
function gnb_03_3(){
	this.location.href="/IKY_InMagazine/star_Sub.asp?se=11";
}
// ·¯ºê¼½½º
function gnb_03_4(){
	this.location.href="/IKY_InMagazine/love_Sub.asp?se=14";
}
// ÀÎÅ×¸®¾î
function gnb_03_5(){
	this.location.href="/IKY_InMagazine/interior_Sub.asp?se=18";
}
// ¶óÀÌÇÁÄÃÃÄ
function gnb_03_6(){
	this.location.href="/IKY_InMagazine/life_Sub.asp?se=22";
}
// ÇªµåÆ®·¡ºí
function gnb_03_7(){
	this.location.href="/IKY_InMagazine/world_Sub.asp?se=28";
}
// ÀÌ¸Å°ÅÁø  ¹ÙÀÚ////////////////////////////////////////////////////////////////////////////////
function gnb_03_8(){
	this.location.href="/IKY_eMagazine/emagazine.asp?id=ba&tp=0";
}
//¿¡½ºÄâÀÌ¾î////////////
function gnb_03_9(){
	this.location.href="/IKY_eMagazine/emagazine.asp?id=es&tp=0";
}
//¸ÞÁ¾///////
function gnb_03_10(){
	this.location.href="/IKY_eMagazine/emagazine.asp?id=ma&tp=0";
}
//¸¶¸®²ø·¹¸£///////
function gnb_03_11(){
	this.location.href="/IKY_eMagazine/emagazine.asp?id=ml&tp=0";
}

// Club////////////////////////////////////////////////////////////////////////////////
function gnb_04(){
	this.location.href="/IKY_Cafe/";
}
// Å¬·´ÇÇÇÃ
function gnb_04_1(){
	this.location.href="/IKY_Cafe/club_people_view.asp";
}
// º£½ºÆ®Å¬·´
function gnb_04_2(){
	this.location.href="/IKY_Cafe/club_best_list.asp";
}
// Å°½ºÀ¯ÃßÃµÅ¬·´
function gnb_04_3(){
	this.location.href="/IKY_Cafe/club_recom_list.asp";
}
// Å¬·´ ¹ø°³ÄÃ·º¼Ç
function gnb_04_4(){
	this.location.href="/IKY_Cafe/club_offboard.asp";
}
// Å¬·´Ä«Å×°í¸®
function gnb_04_5(){
	this.location.href="/IKY_Cafe/club_category.asp";
}

// Matching////////////////////////////////////////////////////////////////////////////
function gnb_05(){
	this.location.href="/IKY_matching/";
}
// Å°½ºÀ¯ ÇÇÇÃ
function gnb_05_1(){
	this.location.href="/IKY_Matching/kissyou_people_view.asp";
}
// ¸¶ÀÌ¸ÅÄª
function gnb_05_2(){
	this.location.href="/IKY_Matching/Matching/KissMatching.asp";
}
// Âò¼­ºñ½º
function gnb_05_3(){
	this.location.href="/IKY_Matching/ZZim/ToZZim_List.asp";
}
// ÀÎ¿¬Ã£±â
function gnb_05_4(){
	this.location.href="/IKY_Matching/Member_Search.asp";
}

// My Page///////////////////////////////////////////////////////////////////////
function gnb_06(){
	this.location.href="/IKY_mypage/";
}
// °³ÀÎÁ¤º¸
function gnb_06_1(){
	this.location.href="/IKY_MyPage/UserInfo/MyInfo.asp";
}
// Ä£±¸°ü¸®
function gnb_06_2(){
	this.location.href="/IKY_MyPage/UserBuddy/BuddyList.asp";
}
// ¸Þ¼¼Áö°ü¸®
function gnb_06_3(){
	this.location.href="/IKY_MyPage/MsgBox/ToBoxList.asp";
}
// ±¸¸Å³»¿ª
function gnb_06_4(){
	this.location.href="/IKY_MyPage/UserBuy/my_book_list.asp";
}
// Å°½º¸¶Å©
function gnb_06_5(){
	this.location.href="/iky_mypage/KissMark/kissmark_list.asp";
}
// ³ªÀÇ È¸¿øÅ¸ÀÔ
function gnb_06_8(){
	this.location.href="/IKY_MyPage/UserType/Type_Info.asp";
}
// È¸¿øÅ»Åð
function gnb_06_9(){
	this.location.href="/IKY_mypage/";
}

// e¸Þ°ÅÁø ¸ÞÀÎ////////////////////////////////////////////
function gnb_06_10(){
	this.location.href="/iky_emagazine ";
}
// ÆÄÆ¼///////////////////////////////////////////////////
function gnb_07_01(){
	this.location.href="/iky_party ";
}
*/

var Default_UserMenuHTML = new String();

/*
Default_UserMenuHTML = new String(
"<table width=\"90\" height=\"120\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td background=\"/iky_images/common/_.gif\" style=\"padding:13px 0px 0px 13px;\" valign=\"top\"><table width=\"73\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr> <td height=\"18\" valign=\"bottom\" onclick=\"UserProfile()\" style=\"cursor:hand;\"> ÇÁ·ÎÆÄÀÏ</td>"
+"<tr><td height=\"18\" valign=\"bottom\" style=\"cursor:hand;padding-top:2px;\" onclick=\"UserMessage()\"> ÂÊÁöº¸³»±â</td>"
+"<tr><td height=\"18\" valign=\"bottom\" style=\"cursor:hand;padding-top:2px;\" onclick=\"UserOnetoone()\"> 1:1Ã¤ÆÃ</td>"
+"<tr> <td height=\"18\" valign=\"bottom\" style=\"cursor:hand;padding-top:3px;\" onclick=\"UserZZim()\"> ÂòÇÏ±â</td>"
+"<tr> <td height=\"18\" valign=\"bottom\" style=\"cursor:hand;padding-top:3px;\" onclick=\"UserBuddy();\"> Ä£±¸µî·Ï</td>"
+"</tr></table></td></tr></table>"
);
*/

Default_UserMenuHTML = new String(
"<table width=\"75\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"FFFFFF\">"
+"<tr>"
+"<td height=\"1\" colspan=\"3\" bgcolor=\"#CACACA\"></td>"
+"</tr>"
+"<tr>"
+"<td width=\"1\" rowspan=\"2\" bgcolor=\"#CACACA\"></td>"
+"<td><table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\" class=\"contents_list\">"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserProfile()\">KISS BLOG </td>"
+"</tr>"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserMessage()\">ÂÊÁöº¸³»±â</td>"
+"</tr>"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserBuddy()\">Ä£±¸µî·Ï</td>"
+"</tr>"
+"</table></td>"
+"<td width=\"1\" bgcolor=\"#949494\"></td>"
+"</tr>"
+"<tr>"
+"<td height=\"1\" colspan=\"2\" bgcolor=\"#949494\"></td>"
+"</tr>"
+"</table>");

/*
Default_UserMenuHTML2 = new String(
"<table width=\"90\" height=\"120\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td background=\"/iky_images/common/_.gif\" style=\"padding:13px 0px 0px 13px;\" valign=\"top\"><table width=\"73\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr> <td height=\"18\" valign=\"bottom\" onclick=\"UserProfile()\" style=\"cursor:hand;\"> ÇÁ·ÎÆÄÀÏ</td>"
+"<tr><td height=\"18\" valign=\"bottom\" style=\"cursor:hand;padding-top:2px;\" onclick=\"alert('ÀÎÁõÈ¸¿ø ÀÌ»ó ÀÌ¿ë °¡´ÉÇÕ´Ï´Ù.')\"> ÂÊÁöº¸³»±â</td>"
+"<tr><td height=\"18\" valign=\"bottom\" style=\"cursor:hand;padding-top:2px;\" onclick=\"alert('ÀÎÁõÈ¸¿ø ÀÌ»ó ÀÌ¿ë °¡´ÉÇÕ´Ï´Ù.')\"> 1:1Ã¤ÆÃ</td>"
+"<tr> <td height=\"18\" valign=\"bottom\" style=\"cursor:hand;padding-top:3px;\" onclick=\"UserZZim()\"> ÂòÇÏ±â</td>"
+"<tr> <td height=\"18\" valign=\"bottom\" style=\"cursor:hand;padding-top:3px;\" onclick=\"UserBuddy();\"> Ä£±¸µî·Ï</td>"
+"</tr></table></td></tr></table>"
);
*/

Default_UserMenuHTML2 = new String(
"<table width=\"75\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"FFFFFF\">"
+"<tr>"
+"<td height=\"1\" colspan=\"3\" bgcolor=\"#CACACA\"></td>"
+"</tr>"
+"<tr>"
+"<td width=\"1\" rowspan=\"2\" bgcolor=\"#CACACA\"></td>"
+"<td><table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\" class=\"contents_list\">"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserProfile()\">KISS BLOG </td>"
+"</tr>"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserMessage()\">ÂÊÁöº¸³»±â</td>"
+"</tr>"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserBuddy()\">Ä£±¸µî·Ï</td>"
+"</tr>"
+"</table></td>"
+"<td width=\"1\" bgcolor=\"#949494\"></td>"
+"</tr>"
+"<tr>"
+"<td height=\"1\" colspan=\"2\" bgcolor=\"#949494\"></td>"
+"</tr>"
+"</table>");

Default_UserMenuHTML3 = new String(
"<table width=\"75\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"FFFFFF\">"
+"<tr>"
+"<td height=\"1\" colspan=\"3\" bgcolor=\"#CACACA\"></td>"
+"</tr>"
+"<tr>"
+"<td width=\"1\" rowspan=\"2\" bgcolor=\"#CACACA\"></td>"
+"<td><table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\" class=\"contents_list\">"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserProfile()\">KISS BLOG </td>"
+"</tr>"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserMessage2()\">ÂÊÁöº¸³»±â</td>"
+"</tr>"
+"<tr>"
+"<td style=\"cursor:hand;padding-top:2px;\" onclick=\"UserBuddy2()\">Ä£±¸µî·Ï</td>"
+"</tr>"
+"</table></td>"
+"<td width=\"1\" bgcolor=\"#949494\"></td>"
+"</tr>"
+"<tr>"
+"<td height=\"1\" colspan=\"2\" bgcolor=\"#949494\"></td>"
+"</tr>"
+"</table>");

var BlogOpenPoint = false;

var	timgarray = new Array();
	timgarray[timgarray.length] = new Image().src="/iky_images/Cafe/club/layer_img01.gif";
	timgarray[timgarray.length] = new Image().src="/iky_images/Cafe/club/layer_img04.gif";
	timgarray[timgarray.length] = new Image().src="/iky_images/Cafe/club/layer_img03.gif";
	timgarray[timgarray.length] = new Image().src="/iky_images/Cafe/club/layer_img05.gif";
	timgarray[timgarray.length] = new Image().src="/iky_images/Cafe/club/layer_img02.gif";
	timgarray[timgarray.length] = new Image().src="/iky_images/common/-.gif";

var s_menu_selid = new String("");
var s_menu_selname = new String("");

function User_Popup(unickname,uid,e){
	eventx = e.x;
	eventy = e.y;
	s_menu_selid = uid;
	s_menu_selname = unickname;

	if(document.getElementById("UserPopup") == null){
		oNewNode = document.createElement("DIV");
		oNewNode.id="UserPopup";oNewNode.name="UserPopup";
		oNewNode.style.position = "absolute";
		oNewNode.style.zindex = 9999;
		document.body.appendChild(oNewNode);
	}else{
		oNewNode = document.getElementById("UserPopup");
	}
	oNewNode.innerHTML=Default_UserMenuHTML.replace("uname_",unickname+" ("+uid+")");
	oNewNode.style.top = eventy + bodyscrollTop;
	oNewNode.style.left = eventx + bodyscrollLeft;
	oNewNode.style.display = "";
}

function User_Popup3(unickname,uid,e){
	eventx = e.x;
	eventy = e.y;
	s_menu_selid = uid;
	s_menu_selname = unickname;

	if(document.getElementById("UserPopup") == null){
		oNewNode = document.createElement("DIV");
		oNewNode.id="UserPopup";oNewNode.name="UserPopup";
		oNewNode.style.position = "absolute";
		oNewNode.style.zindex = 9999;
		document.body.appendChild(oNewNode);
	}else{
		oNewNode = document.getElementById("UserPopup");
	}
	oNewNode.innerHTML=Default_UserMenuHTML3.replace("uname_",unickname+" ("+uid+")");
	oNewNode.style.top = eventy + bodyscrollTop;
	oNewNode.style.left = eventx + bodyscrollLeft;
	oNewNode.style.display = "";
}

var bodyscrollTop = 0;
var bodyscrollLeft = 0;

window.onscroll = scrollCursorHandler;

function scrollCursorHandler (evt) {
    if (document.compatMode && document.compatMode != 'BackCompat') {
      bodyscrollTop  = document.documentElement.scrollTop;
	  bodyscrollLeft = document.documentElement.scrollLeft;
    }
    else {
      bodyscrollTop  = document.body.scrollTop;
	  bodyscrollLeft = document.body.scrollLeft;
    }
}

function User_Popup2(unickname,uid,e){
	eventx = e.x;
	eventy = e.y;
	s_menu_selid = uid;
	s_menu_selname = unickname;

	if(document.getElementById("UserPopup") == null){
		oNewNode = document.createElement("DIV");
		oNewNode.id="UserPopup";oNewNode.name="UserPopup";
		oNewNode.style.position = "absolute";
		oNewNode.style.zindex = 9999;
		document.body.appendChild(oNewNode);
	}else{
		oNewNode = document.getElementById("UserPopup");
	}
	oNewNode.innerHTML=Default_UserMenuHTML2.replace("uname_",unickname+" ("+uid+")");
	//oNewNode.style.top = eventy + window.document.body.scrollTop;
	//oNewNode.style.left = eventx + window.document.body.scrollLeft;
	oNewNode.style.top = eventy + bodyscrollTop;
	oNewNode.style.left = eventx + bodyscrollLeft;
	oNewNode.style.display = "";
}

function mousedown(){
	if(document.getElementById("UserPopup") != null){
			if(event.srcElement.name != "aUser_Popup"){				
				oNewNode.style.display = "none";
				s_menu_selid = null;
				s_menu_selname = null;
			}
	}
}

window.document.onclick = mousedown;

// °ü½ÉÆ®·£µå
function openKBLOGTrendList( cate ){
	window.open("/IKY_Profile/main.asp?gotourl=/IKY_profile/trendUserList.asp?cate="+(cate),'iky_profile','width=820,height=590,scrollbars=yes,status=yes').focus();
	//alert("ÆË¾÷");	
}

function UserProfile(){

	  try{
		window.open("/IKY_Profile/main.asp?uid="+s_menu_selid,'iky_profile','width=820,height=590,scrollbars=yes,status=yes').focus();
	   }catch(e){

		try{

		}catch(e){
			alert("¿À·ù : " + location.href);
		}
	   }

}

function OpenProfile(UID){
//	UID = escape(UID);
//	alert(UID);

	s_menu_selid = UID;
	s_menu_selname = UID;
	UserProfile();
}

function OpenMyProfile(UID){
	if(SS_LoinChk != true){
		alert("·Î±×ÀÎÇÏ½ÅÈÄ ÀÌ¿ëÇÏ¼¼¿ä.");
		return;
	}

	s_menu_selid = UID;
	s_menu_selname = UID;
	//UserProfile();
	
	window.open("/IKY_Profile/main.asp?uid="+UID,'iky_profile','width=820,height=590,scrollbars=yes,status=yes').focus();
}

function OpenProfileGotoURL(UID,oURL,fk_mode){
	  try{
		  //escape
			window.open("/IKY_Profile/main.asp?uid="+UID+'&fk_mode='+fk_mode+'&gotourl='+(oURL),'iky_profile','width=820,height=590,scrollbars=yes,status=yes').focus();
	   }catch(e){
		FindWindow();
		try{
			window.open("/IKY_Profile/main.asp?uid="+UID+'&fk_mode='+fk_mode+'&gotourl='+(oURL),'iky_profile','width=820,height=590,scrollbars=yes,status=yes').focus();
		}catch(e){
			//alert("¿À·ù : " + location.href);
			alert("È¸¿ø´ÔÀº Á¤»óÀûÀÎ ·Î±×ÀÎ »óÅÂ°¡ ¾Æ´Õ´Ï´Ù.\n\n´Ù½Ã ·Î±×ÀÎÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	   }
}

function onLoginReturnURL()
{
	var arrURL = location.href.split("?");
	var arrTempURL = arrURL[0].split("/");
	var strQuery = "";
	var strURL = "";
	if(arrURL.length > 1) strQuery = escape(arrURL[1]);
	
	
	for(var i=3; i<arrTempURL.length; i++)
		strURL += "/" + arrTempURL[i];
		
	return "/IKY_Login/Login.asp?sRefURL="+strURL+"&sQuery_String=" + strQuery;
}

function UserMessage(){

	if(!SS_LoinChk){
		alert("·Î±×ÀÎÇÏ½ÅÈÄ ÀÌ¿ëÇÏ¼¼¿ä.");
		top.window.location=onLoginReturnURL();
		return;
	}

	try{
		window.open('/IKY_MyPage/pop_memo_send.asp?to_id='+ s_menu_selid , 'memo_send', 'width=300, height=196, status=1').focus();
		//window.open("/IKY_Profile/main.asp?uid="+UID+'&fk_mode='+fk_mode+'&gotourl='+(oURL),'iky_profile','width=944,height=569,scrollbars=yes,status=yes');
	}catch(e){
			//alert("¿À·ù : " + location.href);
			alert("È¸¿ø´ÔÀº Á¤»óÀûÀÎ ·Î±×ÀÎ »óÅÂ°¡ ¾Æ´Õ´Ï´Ù.\n\n´Ù½Ã ·Î±×ÀÎÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
	}

	//alert("ÂÊÁöº¸³»±â JS Scripting");

}

function UserMessage2(){

	if(!SS_LoinChk){
		alert("·Î±×ÀÎÇÏ½ÅÈÄ ÀÌ¿ëÇÏ¼¼¿ä.");
		parent.mainContentsFrame.location.href='/IKY_Profile/popup_login.asp?lmode=profile&sRefURL='+parent.mainContentsFrame.location.href.substring(0,parent.mainContentsFrame.location.href.indexOf("?"))+"&sQuery_String="+parent.mainContentsFrame.location.href.substring(
		parent.mainContentsFrame.location.href.indexOf("?")+1,
		parent.mainContentsFrame.location.href.length);
		return;
	}

	try{
		window.open('/IKY_MyPage/pop_memo_send.asp?to_id='+ s_menu_selid , 'memo_send', 'width=300, height=196, status=1').focus();
		//window.open("/IKY_Profile/main.asp?uid="+UID+'&fk_mode='+fk_mode+'&gotourl='+(oURL),'iky_profile','width=944,height=569,scrollbars=yes,status=yes');
	}catch(e){
			//alert("¿À·ù : " + location.href);
			alert("È¸¿ø´ÔÀº Á¤»óÀûÀÎ ·Î±×ÀÎ »óÅÂ°¡ ¾Æ´Õ´Ï´Ù.\n\n´Ù½Ã ·Î±×ÀÎÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
	}

	//alert("ÂÊÁöº¸³»±â JS Scripting");

}

function UserOnetoone(){

	if(s_menu_myid.length == 0){ 
		alert("·Î±×ÀÎÇÏ½ÅÈÄ ÀÌ¿ëÇÏ¼¼¿ä.");
		return;
	}
	   try{
		// Á¸Àç È®ÀÎÈÄ ¸í·É ½ÇÇà
			dummy.IsExist(s_menu_selid,"r_menu_onetoone('"+s_menu_selid+"','"+s_menu_selname+"')");
	   }catch(e){
		FindWindow();
		try{
			dummy.IsExist(s_menu_selid,"r_menu_onetoone('"+s_menu_selid+"','"+s_menu_selname+"')");
		}catch(e){
//			alert("¿À·ù : " + location.href);
			alert("È¸¿ø´ÔÀº Á¤»óÀûÀÎ ·Î±×ÀÎ »óÅÂ°¡ ¾Æ´Õ´Ï´Ù.\n\n´Ù½Ã ·Î±×ÀÎÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	   }
}
function UserBuddy(){
	if(SS_LoinChk != true){
		alert("·Î±×ÀÎÇÏ½ÅÈÄ ÀÌ¿ëÇÏ¼¼¿ä.");
		top.window.location=onLoginReturnURL();
		return;
	}

	try{
		window.open('/IKY_mypage/pop_buddy_plus.asp?buddy_id='+ s_menu_selid , 'memo_send', 'width=300, height=196, status=1').focus();
		//window.open("/IKY_Profile/main.asp?uid="+UID+'&fk_mode='+fk_mode+'&gotourl='+(oURL),'iky_profile','width=944,height=569,scrollbars=yes,status=yes');
	}catch(e){
			//alert("¿À·ù : " + location.href);
			alert("È¸¿ø´ÔÀº Á¤»óÀûÀÎ ·Î±×ÀÎ »óÅÂ°¡ ¾Æ´Õ´Ï´Ù.\n\n´Ù½Ã ·Î±×ÀÎÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
	}

	//alert("Ä£±¸½ÅÃ» JS Scripting");
}

function UserBuddy2(){
	if(SS_LoinChk != true){
		alert("·Î±×ÀÎÇÏ½ÅÈÄ ÀÌ¿ëÇÏ¼¼¿ä.");
		parent.mainContentsFrame.location.href='/IKY_Profile/popup_login.asp?lmode=profile&sRefURL='+parent.mainContentsFrame.location.href.substring(0,parent.mainContentsFrame.location.href.indexOf("?"))+"&sQuery_String="+parent.mainContentsFrame.location.href.substring(
		parent.mainContentsFrame.location.href.indexOf("?")+1,
		parent.mainContentsFrame.location.href.length);
		return;
	}

	try{
		window.open('/IKY_mypage/pop_buddy_plus.asp?buddy_id='+ s_menu_selid , 'memo_send', 'width=300, height=196, status=1').focus();
		//window.open("/IKY_Profile/main.asp?uid="+UID+'&fk_mode='+fk_mode+'&gotourl='+(oURL),'iky_profile','width=944,height=569,scrollbars=yes,status=yes');
	}catch(e){
			//alert("¿À·ù : " + location.href);
			alert("È¸¿ø´ÔÀº Á¤»óÀûÀÎ ·Î±×ÀÎ »óÅÂ°¡ ¾Æ´Õ´Ï´Ù.\n\n´Ù½Ã ·Î±×ÀÎÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
	}

	//alert("Ä£±¸½ÅÃ» JS Scripting");
}

function openProfileList(UID){
	//alert("¸í¿¹Àü´ç¹Ù·Î°¡±â -> ³»ÇÁ·ÎÇÊ ÆË¾÷ -> ¸í¿¹ÀÇ Àü´ç");
	window.open('/IKY_Profile/main.asp?gotourl=regmemberList.asp?','iky_profile','width=820,height=590,scrollbars=yes,status=yes').focus();
}


function UserZZim(){
	if(s_menu_myid.length == 0){
		alert("·Î±×ÀÎÇÏ½ÅÈÄ ÀÌ¿ëÇÏ¼¼¿ä.");
		return;
	}

	   try{
			r_menu_zzim(s_menu_selid,s_menu_selname);
	   }catch(e){
		FindWindow();
		try{
			r_menu_zzim(s_menu_selid,s_menu_selname);
		}catch(e){
//			alert("¿À·ù : " + location.href);
			alert("È¸¿ø´ÔÀº Á¤»óÀûÀÎ ·Î±×ÀÎ »óÅÂ°¡ ¾Æ´Õ´Ï´Ù.\n\n´Ù½Ã ·Î±×ÀÎÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	   }
}

function Send_Police(targetid,content,c_type){
	if(document.getElementById("Form_Send_Police") == null){
		oNewNode = document.createElement("FORM");
		oNewNode.id="Form_Send_Police";
		oNewNode.name="Form_Send_Police";
		oNewNode.target ="pop_police";
		oNewNode.method ="post";
		oNewNode.style.position = "absolute";
		oNewNode.style.visibility = "hidden";
		oNewNode.style.margin = "0px";
		oNewNode.style.left = "-100";
		oNewNode.style.top  = "-100";
		oNewNode.style.width  = "1";
		document.body.appendChild(oNewNode);
		oNewNode.innerHTML ="<input name='targetid' id='targetid' value=''><input name='c_url' id='c_url' value=''><input name='c_type' id='c_type' value=''><input name='content' id='content' value=''>";
	}else{
		oNewNode = document.getElementById("Form_Send_Police");
	}
	oNewNode.action="/IKY_MyPage/pop_police_send.asp";
	oNewNode.targetid.value=targetid;
	oNewNode.content.value=content;
	oNewNode.c_type.value=c_type;
	oNewNode.c_url.value=location.href;
	newPopup = popup("about:blank","pop_police",400,500);
	oNewNode.submit();
}


// °Ô½ÃÆÇ ½ºÅ©·¦ÇÏ±â
// Send_Scrap (' Á¦¸ñ ', location.href )
function Send_Scrap(Ttitle,Turl){
	if(document.getElementById("Form_Send_Scrap") == null){
		oNewNode = document.createElement("FORM");
		oNewNode.id="Form_Send_Scrap";oNewNode.name="Form_Send_Scrap";
		oNewNode.target ="newPopup";
		oNewNode.method ="post";
		oNewNode.style.position = "absolute";
		oNewNode.style.visibility = "hidden";
		oNewNode.style.margin = "0px";
		oNewNode.style.left = "-100";
		oNewNode.style.top  = "-100";
		oNewNode.style.width  = "1";
		document.body.appendChild(oNewNode);
		oNewNode.innerHTML ="<input name='b_title' id='b_title' value=''><input name='c_url' id='c_url' value=''>";
	}else{
		oNewNode = document.getElementById("Form_Send_Scrap");
	}
	oNewNode.action="/IKY_INC/BoardScrap/popup_scrap_insert.asp";
	oNewNode.b_title.value=Ttitle;
	oNewNode.c_url.value=Turl;
	newPopup = popup("about:blank","newPopup",400,500);
	oNewNode.submit();
}

// °Ô½ÃÆÇ ±¸µ¶ÇÏ±â
// BoardScrap ( ±×·ì ( single-xfile , kisszine , inmagazine ) , º¸µåID)
function Send_BoardScrap(Tgroup,Tboardid){

	if(document.getElementById("Form_Send_Scrap") == null){
		oNewNode = document.createElement("FORM");
		oNewNode.id="Form_Send_BoardScrap";oNewNode.name="Form_Send_BoardScrap";
		oNewNode.target ="newPopup";
		oNewNode.method ="post";
		oNewNode.style.position = "absolute";
		oNewNode.style.visibility = "hidden";
		oNewNode.style.margin = "0px";
		oNewNode.style.left = "-100";
		oNewNode.style.top  = "-100";
		oNewNode.style.width  = "1";
		document.body.appendChild(oNewNode);
		oNewNode.innerHTML ="<input name='bc_group' id='bc_group' value=''><input name='bc_boardid' id='bc_boardid' value=''>";
	}else{
		oNewNode = document.getElementById("Form_Send_BoardScrap");
	}

	oNewNode.action="/IKY_Profile/scrap/popup_boardscrap_insert.asp";
	oNewNode.bc_group.value=Tgroup;
	oNewNode.bc_boardid.value=Tboardid;
	newPopup = popup("about:blank","newPopup",400,500);
	oNewNode.submit();
}

function popup(url,newPopup,w,h){
		return window.open(url,newPopup,"width="+( w )+",height="+( h )+",status=yes,scrollbars=auto");
}



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// ÀÌ¹ÌÁö º¸±â
String.prototype.popupView = function () {

	var img_view = this;
	var x = x + 20 ;
	var y = y + 30 ;
	htmlz = "<html><head><title>ÀÌ¹ÌÁöÅ©°Ôº¸±â</title><style>body{margin:0;cursor:hand;}</style></head><body scroll=auto onload='width1=document.all.Timage.width;if(width1>800)width1=800;height1=document.all.Timage.height;if(height1>600)height1=600;top.window.resizeTo(width1+30,height1+54);' onclick='top.window.close();'><img src='"+img_view+"'  title='Å¬¸¯ÇÏ½Ã¸é ´ÝÈü´Ï´Ù.' name='Timage' id='Timage'></body></html>"
	imagez = window.open('', "image", "width="+ 100 +", height="+ 100 +", top=0,left=0,scrollbars=auto,resizable=1,toolbar=0,menubar=0,location=0,directories=0,status=1");
	imagez.document.open();
	imagez.document.write(htmlz)
	imagez.document.close();
}


var view_objNm = ""
function ViewToggle(objNm) {
	var oStyle;

	if (view_objNm != "" && view_objNm != objNm) {
		document.all[view_objNm].style.display = "none";
	}
	
	oStyle=document.all[objNm].style;
	if (oStyle.display == "none") {    //º¸ÀÌ±â
		oStyle.display = ''
		oStyle.bgColor = "#ECECEC";
		view_objNm = objNm;
	}
	else {    //°¨Ãß±â
		oStyle.display = 'none'
		oStyle.bgColor = "#FFFFFF";
		view_objNm = "";
	}
	return;
}


// ÀÎÁõÈ¸¿øÄíÆù ÆË¾÷
function onMemberCoupon()
{
      var strUrl = "/IKY_MEMBER/popup_membercoupon.asp";
      var objWndPopup = window.open(strUrl, '', 'scrollbars=0 , status=0, menubar=0, toolbar=0,width=477, height=610');
      objWndPopup.focus();
						      
      return;
}

// °ü¸®ÀÚ¿¡¼­ È¸¿øÁ¤º¸ º¸¿©ÁÖ±â ID·Î
function MemberPopup(pUserID)
{
window.open ('/Admin/IKY_member_tools/DetailUserInfo.asp?userid='+pUserID, '', 'width=560, height=430, scrollbars=yes, left=150, top=30');
}



/********************************************************
*	Ãß°¡µÈ ³»¿ë 2006-08-11
********************************************************/
function getElement( objId ){
	try{
		return document.getElementById ? document.getElementById(objId) : document.all[objId];
	}catch(e){return null;}
}

// ½½¶óÀÌµå
document.onError=function(e){
	alert(e.message);	
}

currentX = currentY = 0;
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;

var tmp1,tmp2,tmp3 =0;
tmp1=tmp2=tmp3 =0;

function heartBeat()
{
	if (getElement("skyswf") == null) return false;

	tmp2 = document.body.clientHeight;

	if(tmp1 != tmp2){
		tmp3 =  tmp2 - tmp1; 
		tmp1 = tmp2;
		if(tmp3<0){}
	}
	if(IE) { 
		diffY = bodyscrollTop+174;
		diffX = 0;
		}

	if(NS) { 
		diffY = self.pageYOffset;
		diffX = self.pageXOffset; 
	}

	if(diffY != lastScrollY) {
		percent = .1 * (diffY - lastScrollY);
		
		if(percent > 0) 
			percent = Math.ceil(percent) ;
		else 
			percent = Math.floor(percent);
		
		if(IE) 
			getElement("skyswf").style.pixelTop += percent;
		if(NS) 
			getElement("skyswf").top += percent; 
		
		lastScrollY = lastScrollY + percent;
	}
}
//if(NS || IE) action = window.setInterval("heartBeat()",1);



function body_size(){
	
	if(!getElement("ifr_tag")){
		setTimeout(body_size,500); //0.5ÃÊ
		return;
	}
	try{
		getElement("container").height = document.ifr_tag.document.body.scrollHeight;
		getElement("ifr_tag").height   = getElement("container").height;
		getElement("ifr_tag").width    = getElement("container").width;
	}
	catch(e){
		setTimeout(body_size,500); //0.5ÃÊ
	}
	bodyscrollTop=10;
}


function scrapBlog( b_id ){
	if(!SS_LoinChk){
		alert("·Î±×ÀÎ ÇÏ½Å ÈÄ ÀÌ¿ë ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.");
		return;
	}
	window.open("/iky_profile/popup_scrapBlog.asp?b_id="+b_id,"popScrop",'width=400,height=310,scrollbars=no,status=yes');
}



function encodeTag(STR){
	if(!STR) return;
	STR = STR.replace(/\&/g  , "&amp;"     );
	STR = STR.replace(/\¢Ó/g , "&dagger;"  );
	STR = STR.replace(/\</g  , "&lt;"      );
	STR = STR.replace(/\>/g  , "&gt;"      );
	STR = STR.replace(/\"/g  , "&quot;"    );
	STR = STR.replace(/\'/g  , "&acute;"   );
	STR = STR.replace(/\//g  , "&frasl;"   );
	STR = STR.replace(/\|/g  , ""          );
	return STR;
}

function decodeTag(STR){
	if(!STR) return;
	STR = STR.replace(/&amp;/g  , "&"     );
	STR = STR.replace(/&dagger;/g , "¢Ó"  );
	STR = STR.replace(/&lt;/g  , "<"      );
	STR = STR.replace(/&gt;/g  , ">"      );
	STR = STR.replace(/&quot;/g  , "\""   );
	STR = STR.replace(/&acute;/g  , "'"   );
	STR = STR.replace(/&frasl;/g  , "/"   );
	return STR;
}

function MsgEncodeTag(STR){
	if(!STR) return;
//	STR = STR.replace(/\¢Ó/g , ""  );
//	STR = STR.replace(/\</g  , ""  );
//	STR = STR.replace(/\>/g  , ""  );
//	STR = STR.replace(/\"/g  , ""  );
	STR = STR.replace(/\'/g  , ""  );
//	STR = STR.replace(/\//g  , ""  );
//	STR = STR.replace(/\?/g  , ""  );
//	STR = STR.replace(/\&/g  , ""  );
	STR = escape(STR);
	return STR;
}

function onKMNumber()
{
	window.open('/IKY_MyPage/pop_km_number.asp', 'km_number', 'width=300, height=196, status=1').focus();
}

// ÇÁ¸°Æ®ÇÏ±â.
/*
var contentBody ;
function noPrint(){ 
	contentBody = document.body.innerHTML; 
	document.body.innerHTML = pageContents.innerHTML; 
} 
function viewPrint(){ 
	document.body.innerHTML = contentBody; 
}
function pagePrint() { 
	window.onbeforeprint = noPrint; 
	window.onafterprint = viewPrint; 

	window.print(); 
	window.location.reload();
} 
*/

function pagePrint() { 
	window.print(); 
} 

function fOnAirLinkTop(pNum){

	popup('/IKY_OnStyle/pop_onair_view.asp?num='+pNum+'&mode=H','onair_view',533,533).focus();

	document.location.href='/IKY_OnStyle/onair_list.asp';
}


function onAirView(pMovie)
{
var strHTML = "";
strHTML += "<object classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"  codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" type=\"application/x-oleobject \" width=\"430\" height=\"312\" align=\"center\" standby=\"Loading Microsoft Windows Media Player components...\" id=\"MediaPlayer\" style=\"WIDTH:487px; HEIGHT: 344px; LEFT: 0px; TOP: 0px\">";
 strHTML += "<param name=\"animationatstart\" value=\"0\">";
 strHTML += "<param NAME=\"autostart\" value=\"0\">";
 strHTML += "<param NAME=\"AutoSize\" value=\"0\">";
 strHTML += "<param NAME=\"EnableContextMenu\" Value=\"0\">";
 strHTML += "<param NAME=\"playCount\" value=\"100\">";
 strHTML += "<param NAME=\"ShowStatusBar\" VALUE=\"0\">";
 strHTML += "<param NAME=\"ShowControls\" VALUE=\"1\">";
 strHTML += "<param NAME=\"ClickToPlay\" VALUE=\"0\">";
 strHTML += "<param NAME=\"TransparentAtStart\" VALUE=\"1\">";
 strHTML += "<param name=\"Filename\" value=\""+ pMovie +"\">";
 strHTML += "<embed src=\"0\" width=\"487\" height=\"344\" autostart=\"1\" align=\"center\" animationatstart=\"0\" autosize=\"0\" enablecontextmenu=\"0\" playcount=\"-1\" showstatusbar=\"0\" showcontrols=\"0\" clicktoplay=\"0\" transparentatstart=\"1\" filename=\"\">";strHTML += "</embed>"; 
strHTML += "</object>";       
      document.write(strHTML);
}

function onAirViewSmall(pMovie, pWidth, pHeight)
{
var strHTML = "";
strHTML += "<object classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"  codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" type=\"application/x-oleobject \" width=\""+pWidth+"\" height=\""+pHeight+"\" align=\"center\" standby=\"Loading Microsoft Windows Media Player components...\" id=\"MediaPlayer\" style=\"WIDTH:"+pWidth+"; HEIGHT: "+pHeight+"; LEFT: 0px; TOP: 0px\">";
 strHTML += "<param name=\"animationatstart\" value=\"0\">";
 strHTML += "<param NAME=\"autostart\" value=\"1\">";
 strHTML += "<param NAME=\"AutoSize\" value=\"0\">";
 strHTML += "<param NAME=\"EnableContextMenu\" Value=\"0\">";
 strHTML += "<param NAME=\"playCount\" value=\"100\">";
 strHTML += "<param NAME=\"ShowStatusBar\" VALUE=\"0\">";
 strHTML += "<param NAME=\"ShowControls\" VALUE=\"0\">";
 strHTML += "<param NAME=\"ClickToPlay\" VALUE=\"0\">";
 strHTML += "<param NAME=\"TransparentAtStart\" VALUE=\"1\">";
 strHTML += "<param name=\"Filename\" value=\""+ pMovie +"\">";
 strHTML += "<embed src=\"0\" width=\""+pWidth+"\" height=\""+pHeight+"\" autostart=\"1\" align=\"center\" animationatstart=\"0\" autosize=\"0\" enablecontextmenu=\"0\" playcount=\"-1\" showstatusbar=\"0\" showcontrols=\"0\" clicktoplay=\"0\" transparentatstart=\"1\" filename=\"\">";strHTML += "</embed>"; 
strHTML += "</object>";       
      document.write(strHTML);
}

function onMoveMagazine(pMode, pURL)
{
	window.open().location = "/IKY_Login/move_magazine.asp?mode=" + pMode + "&url=" + pURL;
}

function onMoveMagazineCardBa()
{
	window.open().location = "/IKY_Login/move_magazine.asp?mode=bazaar&url=/aCommunity/CusCardView.asp";
}

function onMoveMagazineCardEq()
{
	window.open().location = "/IKY_Login/move_magazine.asp?mode=esquire&url=/aCommunity/CusCardView.asp";
}

function onMoveMagazineCardMo()
{
	window.open().location = "/IKY_Login/move_magazine.asp?mode=motortrend&url=/event/epostcard_01.asp";
}




function jfPopLBrandMs(arg){
	window.open("/IKY_Micro/LBrandMs.asp?vBrandIdx=" + arg,"___PopLBrandMs","width=820,height=650").focus();
}
