var m_SslUrl = "http://www.ihongdo.co.kr";
var m_Normal = "http://www.ihongdo.co.kr";
var m_SubUrl = "http://www.ihongdo.co.kr/subpage";
var m_BbsUrl = "http://www.ihongdo.co.kr";


var link_file = new Array();
link_file[1] = "company.php";
link_file[2] = "shipinfo.php";
link_file[3] = "siling.php";
link_file[4] = "siling2.php";
link_file[5] = "tourinfo.php";
link_file[6] = "bbs.php";
link_file[7] = "bbs.php";






/************************************************************/
// È¨
// ¸¶ÀÌÆäÀÌÁö myPage()
// Àå¹Ù±¸´Ï cartPage()
// °í°´¼¾Å¸ customer()
// ÀÌ¿ë¾È³» userGuide()
// À§½Ã¸®½ºÆ® wishPage()
// ÁÖ¹®Á¶È¸ orderList()


function Admin(){
    window.location.href = m_Normal + '/admin/';
}


function home(shop){
    window.location.href = m_Normal;
}

function sitemap(){
    window.location.href = m_Normal + "/sitemap.php";
}


function cafe() {
   window.location.href = m_Numz + "/club/index.php";
} 

function cartPage(shop) {
   window.location.href = m_Normal + '/Pd.php?mode=cart';
} 

function customer() {
   window.location.href = m_Normal + "/cuStomer.php";
} 

function userGuide() {
   window.location.href = m_Normal + '/cuStomer.php?mode=guide&pg=07';
} 

function wishPage() {
   window.location.href = m_Normal + '/Pd.php?mode=mywish_total';
} 

function orderList(shop) {
   window.location.href = m_Normal + '/myPage.php?mode=order_total';
} 



function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

/************************************************************/





/************************************************************/

/* »ó´ÜÅ¾ÇÃ·¡½Ã¸Þ´º */

/************************************************************/

//»ó´ÜÁÖ¸Þ´º ¸µÅ©Á¤º¸

function goMenu(num,gb,sb){
var frm = document.frm1;


var golink = link_file[num]

   
   
   

   if (num == 4) { 
	           window.location.href = m_Normal + "/"+link_file[num] +"?id="+num+"&pg=1";		

    
   } else if (num == 6 && gb == 5) { 
	            window.location.href = m_Normal + "/bbs.php?id=6&pg=5&board_category=2";	
  
   } else if (num == 7 && gb == 5) { 
	            var theUrl ="http://www.kyci.or.kr/youth/counseldata/gomin.asp";

	            MM_openBrWindow(theUrl,'win','scrollbars=yes,resizable=yes')    
  

   
   } else if(num && gb){                                    
			   window.location.href = m_Normal + "/"+link_file[num] +"?id="+num+"&pg="+gb;		
  
   } else if (num) { 
	            window.location.href = m_Normal + "/"+link_file[num] +"?id="+num+"&pg=1";		

   
   

   }




}








//·Î±×ÀÎ
function logIn() {      
	var iMyWidth; 
        var iMyHeight; 
        var iMyWidth = (screen.width - 370) / 2;
        var iMyHeight = (screen.height - 250) / 2;
	    var theUrl =  m_SslUrl + '/member/openLogin.php'; 
        var win3 = window.open(theUrl,"login","status,height=150,width=370,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no"); 
         
}


function memberReg() {      
	MM_openBrWindow(m_SslUrl +'/member/member.php?h=640&w=600','win','scrollbars=yes,resizable=yes')        
}

function memberEdit() {      
	MM_openBrWindow(m_SslUrl +'/member/mm_register.php?tit=È¸¿øÁ¤º¸¼öÁ¤&mode=edit&h=640&w=600','win','scrollbars=yes,resizable=yes')        
}

function logOut(){
    window.location.href = m_SslUrl + '/member/logout.php';
}

function backform_go() {
		history.back();
}


function go_pg(url) { 
form_SC.shop.value = url; 
form_SC.submit (); 
} 


function show(newItem) {
   var item = document.getElementById(newItem);
   if (item.style.display=='none') {
       item.style.display='block';
   } else {
       item.style.display='none';
   }
}




