////////////////////////noldakong////////////////////////////////
//############ÄÞ¸¶,Å«µû¿ÈÇ¥´Â Àý´ë »èÁ¦ÇÏ½Ã¸é ¾ÈµË´Ï´Ù###############
//############Å«µû¿ÈÇ¥ ¾ÈÀÇ ³»¿ë¸¸ ¹Ù²Ù¼¼¿ä           ###############
//############¼öÁ¤Àü ¹é¾÷Àº ÇÊ¼ö!!!!!!!               ###############
//############½Ç¼ö·Î ÀÎÇÑ µðÀÚÀÎ º¹±¸´Â À¯·áÀÔ´Ï´Ù¤Ð¤Ð###############
////////////////////////noldakong////////////////////////////////


var mtxt = "";
function gohome(){
  location.href="/";
} 
//Áñ°ÜÃ£±â¼³Á¤ºÎºÐÀÌ¿¡¿ä
var favoriteurl="http://hsred7.kr"
var favoritetitle="Çãºê¾Ø¹ÐÅ©"

//¸ÞÀÎÇÃ·¡½Ã Å¬¸¯°æ·Î
var main = new Array("#",
"#",
"#");

//¿À¸¥ÂÊ¹è³Ê
var bnn = new Array(
       "http://noldakong.com",             //:1 ºí·Î±×
      "/front/php/b/board_read_new.php?board_no=1&no=2", //2:¹ÝÇ°¹×±³È¯
      "/front/php/b/board_read_new.php?board_no=1&no=3" //3:¹ÌÈ®ÀÎÀÔ±ÝÀÚ   
)


//Å¾¸Þ´º¼³Á¤ºÎºÐÀÌ¿¡¿ä
var cartstr = "5,My Page,000000,e20c80;4,Cart,000000,e20c80;6,Order,000000,e20c80;";
var topmenu = new Array(
  "/front/php/login/login_f.php",             //:0 ·Î±×ÀÎ
  "/front/php/c/member_regist_f.php",         //:1 È¸¿ø°¡ÀÔ
  "/front/php/login/login_a.php?mode=logout", //:2 ·Î±×¾Æ¿ô
  "/front/php/c/member_regist_f.php",         //:3 Á¤º¸¼öÁ¤
  "/front/php/basket.php",                    //:4 Àå¹Ù±¸´Ï
  "/front/php/myshop/myshop.php",             //:5 ¸¶ÀÌÆäÀÌÁö
  "/front/php/myshop/myshop_orders.php",      //:6 ÁÖ¹®¸®½ºÆ®
  "http://www.ilogen.com/d2d/index.html",  //:7 ÅÃ¹è¸µÅ©
  "http://blog.naver.com/hsred7",             //:8 ºí·Î±×
  "http://www.hanaescrow.com/hnbecc/serviceJoinSrchManagement/escser003l.jsp?shopBsnNo=6080942205&&afflGrpId=GC2CCAFE00&afflShopNo=00033377"             //:9 ÇÏ³ª
);

//°Ô½ÃÆÇ¸µÅ©¼³Á¤ºÎºÐÀÌ¿¡¿ä
var boardstr = "0,Notice,878787,878787,<br>;5,Q&A,878787,878787,<br>;3,Review,878787,878787,<br>;9,Gallery,878787,878787,<br>";
boardstr = boardstr.replace(/&/gi,"@");
var board = new Array(
  "/front/php/b/board_list.php?board_no=1",   //:0 °øÁö
  "/front/php/b/board_list.php?board_no=2",   //:1  ´º½ºÀÌº¥Æ®
  "/front/php/b/board_list.php?board_no=3",   //:2  ÀÌ¿ë¾È³»
  "/front/php/b/board_list.php?board_no=4",   //:3  »ç¿ëÈÄ±â
  "/front/php/b/board_list.php?board_no=9",   //:4   1:1
  "/front/php/b/board_list.php?board_no=6",   //:5   Q&A
  "/front/php/b/board_list.php?board_no=101", //:6   »óÇ°ÀÚÀ¯
  "/front/php/b/board_list.php?board_no=5",   //:7   ÀÚÀ¯
  "/front/php/b/board_list.php?board_no=7",   //:8   ÀÚ·á
  "/front/php/b/board_list.php?board_no=8",   //:9   °¶·¯¸®
  "/front/php/b/board_list.php?board_no=1001", //:10 ÇÑÁÙ
  "/front/php/admindiary.php ", //:11 ¿î¿µÀÏÁö
  "/front/php/b/calendar_board.php" //:12 Ä¶¸°´õ
);

     
        
//ÇÏ´ÜÇÃ·¡½ÃÅ¬¸¯°æ·Î
var btm = new Array(
      "/",
      "/front/php/com_intro.php",
      "/front/php/faq.php",
      "/front/php/member_agree.php",
      "/front/php/privacy_agree.php",
      "http://noldakong.com"
      );


function gourl(id,idx){
    if(id == 'cate'){
        location.href="/front/php/category.php?cate_no="+idx;
    }else{
      mm = eval(id);
      if(mm[idx].indexOf("http://")>=0) window.open(mm[idx],'delivery','');
      else location.href=mm[idx];
    }
}

function FixMenu()
{
menuTop = document.body.scrollTop;
cntheight=parseInt(cnt.offsetHeight);
if(menuTop==0) menu33.style.top = menuTop+100;
else if(parseInt(menu33.style.top)>=cntheight-600) menu33.style.top =menu33.style.top;
else menu33.style.top = menuTop+100;
}

function playmusic(){
 parent.musicfrm.location.href=musicsrc;
 parent.mf = "play";
}

function stopmusic(){
 parent.musicfrm.location.href='/front/php/newpage.php?code=0';
 parent.mf = "stop";
}


function beforepage(){
  history.go(-1);
}

function gohome(){
  location.href='/';
}
function addstar(){
 window.external.AddFavorite(favoriteurl,favoritetitle);
}
var comcolor="6e6e6e";
function titleswf2(str){
 document.write("<table cellpadding=0 cellspacing=0 ><tr><td valign=top align=center><div style='position:relative;top:-122;left:230;z-index:0'><div style='position:absolute;'><table cellpadding=0 cellspacing=0 border=0 background='/web/upload/img/_titlebg.gif'><td align=center  width=294 height='130' style='padding-top:15;padding-left:6' >");
     document.write(str);
document.write("</td></tr></table></div></div></td></tr></table>");
}

function chk(reg,target,msg){
    if(reg.test(target)) return true;
    return false;
}

function titleswf(str){
  document.write("<table cellpadding=0 cellspacing=0 ><tr><td valign=top align=center><div style='position:relative;top:-122;left:230;z-index:0'><div style='position:absolute;'><table cellpadding=0 cellspacing=0 border=0 background='/web/upload/img/_titlebg.gif'><td align=center  width=294 height='130' style='padding-top:15;padding-left:6' >");
 
 if (chk(/[°¡-Èþ]/,str,"")) {
     document.write("<table width=223 height=80><tr><td style='padding-left:0;padding-top:5' align=center><nobr><b><font color=535353> "+str+"</font></b></nobr></td></tr></table>");
	}else{
       str= str.replace("&","@");
       setemb = new set_Embed();
       setemb.init("/web/upload/img/title.swf?index=&str=535353;"+str,'240','40','flash');
       setemb.parameter('wmode','transparent');
       setemb.parameter('quality','high');
       setemb.parameter('bgcolor','#FFFFFF');
       setemb.show();
  }

        document.write("</td></tr></table></div></div></td></tr></table>");
}
function title(str){
  str= str.replace("&","@");
    document.write("<table cellpadding=0 cellspacing=0 width=100%><tr><td align=center><div style='position:relative;left:-320;top:-70'><div style='position:absolute;'><table cellpadding=0 cellspacing=0 border=0 ><tr><td  align=center valign=bottom style='padding-bottom:20;background-repeat:no-repeat' width=180><nobr><b><font color=000000> "+str+"</font></b></nobr></td></tr></table></td></tr></table></div></div>");
}
function titleimg(str){
  str= str.replace("&","@");
  document.write("");
  document.write("<table cellpadding=0 cellspacing=0   width=212 height=39><tr><td align=center><nobr><b><font color='000000'> "+str+"</font></b></nobr></td></tr></table></td></tr></table>");
}

function actFilter(con,actfilter) {
 con.style.filter=actfilter;
}
function bluring(){  
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")  
document.body.focus();   
}
document.onfocusin=bluring;  

function imgon(img){
  var str=img.src;
//alert(img.src);
  var lnk = str.split("/");
  var num = lnk.length-1;
  img.src="/web/upload/img/on/"+lnk[num];
}

function imgout(img){
  var str=img.src;
  var lnk = str.split("/");  
  var num = lnk.length-1;
  img.src="/web/upload/img/"+lnk[num];
}
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 '';
}

function mm_setCookie( name, value, expiredays ) 
{ 
 var todayDate = new Date(); 
 todayDate.setDate( todayDate.getDate() + expiredays ); 
 document.cookie = name + "=" + escape( value ) + "; path=/;";
 //ºê¶ó¿ìÀú Ã¢ÀÌ ´ÝÇûÀ»¶§ ÄíÅ°¸¦ ¾ø¾Ö·Á¸é [expires=" + todayDate.toGMTString() + ";"]ºÎºÐ ÁÖ¼®Ã³¸®
} 
////////////////////////////////////////////////////////

function open_window( filename, option, name )
{
	if( !name )
	{
		name = 'new'
	}


        win = window.open( filename, name, option );

        return win
}

function window_open( page, name, top, left, width, height )
{
	option = "'toolbar=no," +
		"location=no," +
		"directories=no," +
		"status=no," +
		"menubar=no," +
		"scrollbars=yes," +
		"resizable=yes," +
		"width=" + width + "," +
		"height=" + height + "," +
		"top=" + top + "," +
		"left=" + left + "'"

        window.open( page, name, option );
}

function open_poll_pop( mode, no )
{
	page = '/front/php/poll_r.php?mode=' + mode + '&no=' + no;
	window_open( page, 'poll', 100, 300, 466, 382 );
}

/*Left menu ¹ÝÅõ¸í ·¹ÀÌ¾î ±¸Çö*/
function Layer_overload(LayerName,Status) 
{
    if (navigator.appName == "Netscape")
    {
		LayerN = document.getElementById(LayerName).style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }	
    else
    {
		LayerN = document.all[LayerName].style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }
}

/*Left menu±¸Çö*/
var old='';

function menu(name)
{
	submenu=eval("submenu_"+name+".style");
	if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}


function Layer_rollover(img_name,img_url)
{
	var menu;	
	//tmp = new String( "document."+img_name );
	menu=eval("document."+img_name);		
	menu.src = img_url;
	return;
}

function image_zoom( product_no, main_cate_no, display_group )
{
	//href = '/front/php/image_zoom.php?img='+image+'&product_no='+document.frm.product_no.value;
	href = '/front/php/image_zoom.php?product_no='+product_no+'&main_cate_no='+main_cate_no+'&display_group='+display_group;
	option = 'toolbar=no,scrollbars=no,resizable=yes,width=800,height=640,left=0,top=0';
	win_name = 'image'

	window.open( href, win_name, option );
}


/*
 * Ãâ¼®Ã¼Å© ÆË¾÷
 */
function attend_popup() 
{
	url = "/front/php/attend_event_popup.php";
	winname = "attend_event_popup" ;
	option = "toolbar=no location=no scrollbars=yes width=700 height=900";
	opener = window.open( url, winname, option ) ;
}
