/***************************************************************************
 * filename : head.js<br>
 * °øÅëÀ¸·Î »ç¿ëµÇ´Â ÇÔ¼ö¹× ¼Ó¼º<br>
 *
 * @version	: 1.0
 * @author	: free270
****************************************************************************/
if(HEAD_CLASS!=null) {
	alert("[head.js]´Â ÀÌ¹Ì include µÇ¾îÀÖ½À´Ï´Ù!!");
}
var HEAD_CLASS = true;

//BODYÅÂ±×ÀÇ onLoad() ÀÌº¥Æ®¿¡¼­ È£ÃâÇÏ´Â ÇÔ¼ö
function init(){
	//ÇØ´çÆäÀÌÁö³»¿¡¼­ overridingµÇ¾îÁü
}
function init_start(){
	// code here ...  init()ÇÔ¼ö°¡ ÇØ´çÆäÀÌÁö³»¿¡¼­ overridingµÇ¾îÁö±â ¶§¹®¿¡ ±× ÀÌÀü¿¡ ½ÇÇàÇÏ°íÀÚ ÇÏ´Â ±â´ÉÀ» ¿©±â¿¡ ³ÖÀ¸½Ã¿À
	init();
}


//[ ¹Ù·Î°¡±â ÇÔ¼ö ] ==================================================================================================
function goHome(){
	document.location = URL_ROOT + "index.asp";
}
function goRecruit(){
	document.location = URL_ROOT + "h_recruit/index.asp";
}
function goSitemap(){
	document.location = URL_ROOT + "sitemap.asp";
}
function goEnglish(){
	document.location = URL_ROOT + "/english";
}
function goLogin(){
	document.location = URL_ROOT + "h_customer/member/login.asp?rp=" + escape(CURRENT_PAGE);
}
function goLogout(){
	document.location = URL_ROOT + "h_customer/member/xt_logout.asp?rp=" + escape(CURRENT_PAGE);
}
function goJoin(){
	document.location = URL_ROOT + "h_customer/html/customer_join01.asp";
}
function goModify(){
	document.location = URL_ROOT + "h_customer/member/customer_join02.asp?wt=edit";
}
function goCommunity(){
	window.open('http://www.hite.com:8080/prog/club/TopMenu.htm','popwin','width=782,height=540,top=0,left=100,scrollbars=no'); 
}
function goPRWisdom(){
	window.open('/h_pr/html/pr_wisdom_popup.asp','popwin','width=770,height=719,top=0,left=100,scrollbars=no'); 
}
function goPRStout(){
	window.open('/h_pr/html/pr_stout_popup.asp','popwin','width=770,height=719,top=0,left=100,scrollbars=no'); 
}
function goCyber(){
	window.open('/h_pr/cyber/cyb_e/index.html','popwin','width=900,height=500,top=0,left=100,scrollbars=no'); 
}
/** For Flash menu interface *************************************************************/
function goMenu(menu1, menu2, menu3, menu4){	
//	document.location = "/h_" + menu1 + "/index.asp";
//	alert("menu1=" + menu1 + ", menu2=" + menu2 + ", menu3=" + menu3)
	if(menu1==null) menu1 = "";
	if(menu2==null) menu2 = "";
	if(menu3==null) menu3 = "";
	if(menu4==null) menu4 = "";
	if(menu1=="") return;

	document.location = "/gomenu.asp?menu1=" + menu1 + "&menu2=" + menu2 + "&menu3=" + menu3 + "&menu4=" + menu4;
}

//¿ìÆí¹øÈ£ °Ë»öÃ¢
function openFindZip(type){
	if(type==null) type = "";
	window.open(URL_ROOT + "h_customer/member/popup_findzip.asp?type=" + type, "popup_findzip", "width=316,height=316,resizable=no,scrollbars=yes,marginwidth=0,marginheight=0");
}
function goCyber(){
//	alert("Under construction!!");
	window.open("/h_pr/cyber/cyb_e/index.html","","fullscreen=yes,type=fullWindow,scrollbar=0");
}
function goSlideShow(num, list_opt){
	if(list_opt==null || !list_opt){
		list_opt = "N";
	}else if(list_opt){
		list_opt = "Y";
	}
    url = "/common/slideshow/slideshow.asp?album_no=" + num + "&list_opt=" + list_opt;
	window.open(url, 'slideshow', 'width=1024, height=800, status=no,toolbar=no,scrollbars=no,top=0,left=0,location=no,menubar=no, resizeable=no, fullscreen=yes');
}
function FFOpen(link, winname, option){
	window.open(link, winname, option); 
	return;
}

function FlashPlay(Url, tWidth, tHeight)
{
   var tmpStr = "";
   tmpStr += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+ tWidth +"' height='"+ tHeight +"'>";
   tmpStr += "<param name='movie' value='"+ Url +"'>";
   tmpStr += "<param name='quality' value='high'>";
   tmpStr += "<param name='wmode' value='transparent'>";
   tmpStr += "<embed src='"+ Url +"' width='"+ tWidth +"' height='"+ tHeight +"' align='right' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent'></embed>";
   tmpStr += "</object>";
   
   document.write (tmpStr);
} 