// JavaScript Document

/******************************************************************************
	ÆÄÀÏ¸í : common.js - °øÅë Javascript
	ÀÛ¼ºÀÚ : PortfolioAD
	ÀÛ¼ºÀÏ : 
******************************************************************************/

var sendit;
var win;

//dynamic viewBusinessLayer viewer (chang-soo,CHOI,2010.02.19)<!--
var _currIdx = 0;
function viewBusinessLayer(idx)
{
	if (isNaN(idx)){_currIdx = 0; return;}
		
	if (_currIdx){
		var lyerPrev = document.getElementById('business_layer'+_currIdx);
		if (!lyerPrev){_currIdx = 0; return;}
		//lyerPrev.style.display = 'none';
		popdiv('pop_op',lyerPrev.id, 2);
	}
	
	var ele = GetFlashElement('/flash/com_test.swf?pageN='+idx,'100%','100%');
	var lyer = document.getElementById('business_layer'+idx);
	if (!lyer){_currIdx = 0; return;}
	lyer.innerHTML = ele;
	//lyer.style.display = 'block';
	popdiv('pop_op',lyer.id, 1);
	_currIdx = idx;
}
//dynamic viewBusinessLayer viewer-->

//dynamic viewEarthLayer viewer , close : -1 (chang-soo,CHOI,2010.03.19)<!--
function viewEarthLayer(idx)
{
	if (isNaN(idx)){_currIdx = 0; return;}
		
	var lyer = document.getElementById('earth_layer');
	if (!lyer){return;}
	if (idx != -1)
	{
		lyer.style.display = 'block';	
		var ele = GetFlashElement('/flash/popupMain.swf?selNum='+idx,'100%','100%');
		lyer.innerHTML = ele;
		//lyer.style.display = 'block';
		popdiv('pop_op',lyer.id, 1);
	}
	else
	{
		//lyer.style.display = 'none';
		popdiv('pop_op',lyer.id, 2);
	}
}
//dynamic viewEarthLayer viewer-->
//dynamic copy to clipBoard by widget code (chang-soo,CHOI,2010.03.19)<!--
function copyWidgetCode(idx) { 

    var therange = '<embed src="http://www.woongjin.com/flash/widget/widget.swf" width="160" height="275" type="application/x-shockwave-flash"></embed>';
    window.clipboardData.setData('Text', therange);
    //therange.execCommand("Copy") 
	alert ('Å¬¸³º¸µå¿¡ º¹»çµÇ¾ú½À´Ï´Ù. Ctrl+V·Î ºÙÈ÷±â ÇÏ¼¼¿ä');
}
//dynamic copy to clipBoard by widget code-->

function layer_view (layer_name, layer_display){
	if (layer_display == "view"){
		document.getElementById(layer_name).style.display = "block" ;
	} else {
		document.getElementById(layer_name).style.display = "none" ;
	}
}



// Flash

// flashWrite(url, width, height, ID, bgcolor, wmode)
function flashWrite(url,w,h,id,bg,win){

    var flashStr=
    "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
    "<param name='movie' value='"+url+"' />"+
    "<param name='wmode' value='"+win+"' />"+
    "<param name='menu' value='false' />"+
    "<param name='quality' value='high' />"+
    "<param name='bgcolor' value='"+bg+"' />"+
    "<param name='allowScriptAccess' value='always' /> "+
    "<embed allowScriptAccess='always' src='"+url+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' />"+
    "</object>";

    document.write(flashStr);
}

var EmbedStr = "";
function GetFlash(swf, width, height, bgcolor, id, flashvars) { 
		
	document.write(GetFlashElement(swf, width, height, bgcolor, id, flashvars));
	return;
}

function GetFlashElement(swf, width, height, bgcolor, id, flashvars) { 
	var strFlashTag = new String();
	var bgColor = bgcolor;
	if (bgColor == null || bgColor == "")
		bgColor = "#ffffff";
		
	if (id == null || id == '')
		id = swf + '_flash';    

	if (navigator.appName.indexOf("Microsoft") != -1)
	{
		strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		strFlashTag += 'codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
		strFlashTag += 'id="' + id + '" width="' + width + '" height="' + height + '">';
		strFlashTag += '<param name="movie" value="' + swf + '"/>';

		if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
		strFlashTag += '<param name="quality" value="best"/>';
		strFlashTag += '<param name="bgcolor" value="' + bgColor + '"/>';
		strFlashTag += '<param name="menu" value="false"/>';
		strFlashTag += '<param name="salign" value="LT"/>';
		strFlashTag += '<param name="scale" value="noscale"/>';
		strFlashTag += '<param name="wmode" value="transparent"/>';
		strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
		strFlashTag += '</object>';

	}
	else
	{
		strFlashTag += '<embed src="' + swf + '" ';
		strFlashTag += 'quality="best" ';
		strFlashTag += 'bgcolor="' + bgColor + '" ';
		strFlashTag += 'width="' + width + '" ';
		strFlashTag += 'height="' + height + '" ';
		strFlashTag += 'menu="false" ';
		strFlashTag += 'scale="noscale" ';
		strFlashTag += 'id="' + id + '" ';
		strFlashTag += 'salign="LT" ';
		strFlashTag += 'wmode="transparent" ';
		strFlashTag += 'allowScriptAccess="sameDomain" ';
		if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
		strFlashTag += 'type="application/x-shockwave-flash" ';
		strFlashTag += 'pluginspage="https://www.macromedia.com/go/getflashplayer">';
		strFlashTag += '</embed>';
	}
	return strFlashTag;
}

// IE6 PNG Åõ¸í
function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
	var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
   var imgTitle = (myImage.title) ? 
             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
   var imgStyle = "display:inline-block;" + myImage.style.cssText
   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
   myImage.outerHTML = strNewHTML   
    }
}




// RollOver
function imageOver(imgs) {
	imgs.src = imgs.src.replace("off.gif", "on.gif");
}
function imageOut(imgs) {
	imgs.src = imgs.src.replace("on.gif", "off.gif");
//  onmouseover="imageOver(this);" onmouseout="imageOut(this);"
} 



// faq ´äº¯ ---------
	function act(x) {
		if (document.all[x].style.display == "none") {
				document.all[x].style.display = "block";
		} else {
			document.all[x].style.display = "none";
		}	
	 }


// Á÷¹«¼Ò°³, Á÷¹«¼±ÅÃ½Ã ³»¿ë º¯È­ ---------
function sel_tab(obj) {
    var menuCont2 = document.getElementsByName('call');
    var objIdnum = obj.id;
    for (j=0;j<menuCont2.length;j++) {
        document.getElementById('tab'+(j+1)).style.display = 'none';
    }
    document.getElementById('tab'+objIdnum).style.display = 'block';
    $("#tabContentDesc").css("display", "block"); 
}



/////////////////////////////// ·¹ÀÌ¾î



function popdiv(divname1,divname2,a){ 
	ch = document.body.scrollHeight;
	cw = window.screen.width - 22;
	//cw = document.documentElement.scrollWidth;
	switch(a){
	case 1: 	    
		document.getElementById(divname1).style.height = ch+"px" ;		
		document.getElementById(divname1).style.width = cw+"px" ;		
		document.getElementById(divname1).style.display = 'block';		
		document.getElementById(divname2).style.display = 'block';  
		break;
	case 2: 
		document.getElementById(divname1).style.display = 'none';
		document.getElementById(divname2).style.display = 'none';
		break;
	}
	 
}


//µû¶ó´Ù´Ï´Â Å¾¹öÆ° START

var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isDOM) {
			yMenuFrom   = parseInt (divMenu.style.top, 10);
			yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 50; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo) {
			yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
			if (yMenuTo < yMenuFrom)
					yOffset = -yOffset;
			if (isNS4)
					divMenu.top += yOffset;
			else if (isDOM)
					divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
					timeoutNextCheck = 10;
	}
	setTimeout ('moveRightEdge()', timeoutNextCheck);
}


function goURL(url)
{
	location.href=url;
}


// ÆË¾÷ ·¹ÀÌ¾î ¸®»çÀÌÁî

var pop_op_height; // ÆäÀÌÁö ÀüÃ¼ Å©±â º¯¼ö


function resizeIF(Id)
{
	var obj = document.getElementById(Id);
	var Body;
	var H, Min;
	Min = 503;// ÃÖ¼Ò ³ôÀÌ ¼³Á¤ (³Ê¹« ÀÛ¾ÆÁö´Â °ÍÀ» ¹æÁö)
	try
	{
		if (!document.all && obj.contentWindow.document.location.href == 'about:blank')
		{
			setTimeout("resizeIF('"+Id+"')", 10);
			return;
		}

		Body = obj.contentWindow.document.getElementsByTagName('BODY');
		Body = Body[0];

		if (this.Location != obj.contentWindow.document.location.href)
		{
			H = Body.scrollHeight ;
			obj.style.height =  (H<Min?Min:H) + 'px';
			if(H > pop_op_height)
			{
				document.getElementById("pop_op").style.height = H + 200;
			}
			else
			{
				parent.document.body.scrollTop = 0;
				if(H > 1000)
					document.getElementById("pop_op").style.height = pop_op_height + 120;
				else
					document.getElementById("pop_op").style.height = pop_op_height + 50;
			}

			this.Location = obj.contentWindow.document.location.href;
		}
	}
	catch(e)
	{
		setTimeout("resizeIF('"+Id+"')", 10);
		return;
	}
	setTimeout("resizeIF('"+Id+"')", 2000);
}

function smogLayerHeight(){
	pop_op_height = document.body.scrollHeight ;
}

//ÇÁ¸°Æ®ÇÏ±â

function printShow(url){
	var newwindow = window.open(url, "printsrc", "status=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no,width=692,height=600");
	newwindow.print();
}
// -->
//¿¬¶ôÃ³ Áöµµº¸±â

function mapOpen(url){
	window.open(url, "map", "");
}

function naverMapOpen(url){
	window.open(url, "map", "width=830,height=540");
}



/**** ³»¿ëºÎºÐ ¿­±â&´Ý±â ****/
function ShowHide(imgBtn, contentsNum){

	var contentsObj = document.getElementById(contentsNum);

	if(contentsObj.style.display == "block")
	{
		contentsObj.style.display = "none";
		imgBtn.src='/common/images/investment/btn_view.gif';
	}
	else
	{
		contentsObj.style.display = "block";
		imgBtn.src='/common/images/investment/btn_close.gif';
	}
}




/****************************************
//ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å© 
****************************************/
function IsJuminNumChk(sCode){

	if(sCode.length != 13){
	    return false;
	}

	var s1	= sCode.substr(0,6);
	var s2	= sCode.substr(6,7);
	var n	= 2;
	var sum = 0;
	
	for (i=0; i< s1.length; i++){
		sum += parseInt(s1.substr(i, 1)) * n++;
	}
	
	for (i=0; i< s2.length-1; i++) {
		sum += parseInt(s2.substr(i, 1)) * n++;
		if (n == 10) n = 2;
	}
	
	var c = 11- sum % 11;
	if (c == 11) c = 1;
	if (c == 10) c = 0;
	if (c != parseInt(s2.substr(6, 1))) return false;
	else return true;
      
}

/****************************************
//¿õÁø±×·ì 30³â»ç ebook ÆË¾÷
****************************************/
function popBook(){

	var windowW = 998;
	var windowH = 696;

	// °¡¿îµ¥
	var left = Math.ceil((window.screen.width - windowW)/2);
	var top = Math.ceil((window.screen.height - windowH)/2);

	var linkURL = "/wj_30th_ebook/index.html";

	w = window.open(linkURL, "event1", "left="+left+", top="+top+", width="+windowW+", height="+windowH+",toolbar=no,statusbar=no,scrollbars=no");
	w.focus();
}

/****************************************
//¸ÞÀÎ ·Ñ¸µº£³Ê
****************************************/
function MainRollBanner(){

	$('#mainRollBanner').slides({

		 preload            : true
		,preloadImage       : '/common/images/common/loader.gif'
		,effect             : 'slide, fade'
		,crossfade          : true
		,play               : 4000
		,pause              : 3000
		,hoverPause         : true
		,slideSpeed         : 350
		,fadeSpeed          : 500
		,generateNextPrev   : false	            
		/*
		,generatePagination : false
		
		,animationStart: function(current) {

			$("ul#pagination img").each(function() {

				var imgSrc = $(this).attr("src");
					imgSrc = imgSrc.replace('over', 'off');
					
				$(this).replaceWith("<img src='" + imgSrc + "'>");
			});

		},
		animationComplete: function(current) {
		
			$("ul#pagination img").each(function() {

				var imgSrc = $(this).attr("src");

				if ($(this).attr("src") == imgSrc.match(".*" + current + ".*")) {

					imgSrc = imgSrc.replace('off', 'over');
					
					$(this).attr("src", imgSrc)

				}
			});

		}
		*/

	});

}

/****************************************
//¿õÁø¼Ò°³ > CI
****************************************/
function CI_SlidesContainer(){

	$('#CI_SlidesContainer').slides({
		 preload            : true
		,preloadImage       : '/common/images/common/loader.gif'
		,effect             : 'slide, fade'
		,crossfade          : true
		,play               : 4000
		,pause              : 2500
		,hoverPause         : true
		,slideSpeed         : 350
		,fadeSpeed          : 500
		,generateNextPrev   : false
		,generatePagination : false
	});
}

/****************************************
//¿õÁø¼Ò°³ > °æ¿µÁ¤½Å
****************************************/
function ddLoveSlidesContainer(){

	$('#ddLoveSlidesContainer').slides({
		 preload            : true
		,preloadImage       : '/common/images/common/loader.gif'
		,play               : 4000
		,pause              : 2500
		,hoverPause         : true
		,generatePagination : false
	});
}


/****************************************
// ¸ð¹ÙÀÏ ÆäÀÌÁö·Î ÀÌµ¿
****************************************/
if(  (navigator.userAgent.match(/iphone/i)) || (navigator.userAgent.match(/ipod/i)) || (navigator.userAgent.match(/ipad/i)) || (navigator.userAgent.match(/android/i)) || (navigator.userAgent.match(/Symbian/i)) || (navigator.userAgent.match(/nokia/i)) || (navigator.userAgent.match(/webos/i)) || (navigator.userAgent.match(/opera mini/i)) || (navigator.userAgent.match(/sonyericsson/i)) || (navigator.userAgent.match(/opera mobi/i)) || (navigator.userAgent.match(/iemobile/i)) ) {
  // ¸ð¹ÙÀÏ ÁÖ¼Ò Ç¥½ÃÁÙ ¼û±â±â
  //window.addEventListener('load', function(){  setTimeout(scrollTo, 0, 0, 1); }, false);

  // ¸ð¹ÙÀÏ ¹öÀüÀ¸·Î ÆäÀÌÁö ÀÌµ¿
  document.location = "http://m.woongjin.com/";
}

/****************************************
// ¸ð¹ÙÀÏ Á¢¼Ó È®ÀÎ
****************************************/
function mobileDeviceChk(){

	//°¶·°½ÃÅÇ
	if(  (navigator.userAgent.match(/shw-m180s/i)) )
	{
		return false;
	}
	else if(  (navigator.userAgent.match(/iphone/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/ipad/i)) || (navigator.userAgent.match(/android/i)) || (navigator.userAgent.match(/Symbian/i)) || (navigator.userAgent.match(/nokia/i)) || (navigator.userAgent.match(/webos/i)) || (navigator.userAgent.match(/opera mini/i)) || (navigator.userAgent.match(/sonyericsson/i)) || (navigator.userAgent.match(/opera mobi/i)) || (navigator.userAgent.match(/iemobile/i)) )
	{
		return true;
	}
	else
	{
		return false;
	}
}

/****************************************
//2011³â ÀÎÅÏ»ç¿ø ÆË¾÷ Q&A
****************************************/
function recruitQnAPop() {

	var rURL, recruitUrl;

    rURL = HostName();
	
	if ( rURL == "http://www.woongjin.com" ){

		recruitUrl="http://grouplove.woongjin.com";
	}
	else if ( rURL == "http://grouptest.woongjin.com" ){
	
		recruitUrl="http://grouplove-test.woongjin.com";
	}
	else{
		recruitUrl="http://grouplove-test.woongjin.com";
	}

	if( recruitUrl !=""){
	
		PopWin = window.open( recruitUrl+ '/qna/recruit.aspx','PopWin','width=670,height=710,status=no,top=20,left=20,scrollbars=yes');
		PopWin.focus();
	}
}

/****************************************
//2011³â ÀÎÅÏ»ç¿ø ÆË¾÷ 
****************************************/
function PopUpRecruit() {
	var now = new Date();

	if (now > new Date(2011,08,30,13,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ
		if (!isExpireDateTime(2011,10,19,13,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("PopUpRecruitNew");		//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				internRecruitWin = window.open('/pop/popup_recruitNew.html','PopUpRecruitNew','width=450,height=455,status=no,top=20,left=20,scrollbars=no');
				internRecruitWin.focus();
			}
		} 
	}
}

/****************************************
//2011³âµµ ¿õÁøÄÚ¿þÀÌ R&D ¼®¹Ú»ç °øÃ¤ ¸ðÁý
****************************************/
function PopUpcowayRecruit() {
	var now = new Date();

	if (now > new Date(2011,04-1,25,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ
		if (!isExpireDateTime(2011,05,08,23,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("cowayPopUpRecruit");//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				cowayRecruitWin = window.open('/pop/recruit_cowayPopUp.html','cowayPopUpRecruit','width=450,height=455,status=no,top=20,left=20,scrollbars=no');
				cowayRecruitWin.focus();
			}
		} 
	}
}

/****************************************
//Ã¤¿ë½Ã½ºÅÛÁ¡°Ë °øÁö
****************************************/
function PopUpRecruitSystem() {
	var now = new Date();

	if (now > new Date(2011,06-1,17,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ
		if (!isExpireDateTime(2011,06,17,14,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("PopUpRecruitSystem");		//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				internRecruitWin = window.open('/pop/recruit_popup_system.html','PopUpRecruitSystem','width=390,height=400,status=no,top=20,left=20,scrollbars=no');
				internRecruitWin.focus();
			}
		} 
	}
}

/****************************************
//http://URL
****************************************/
function HostName(){

	var Domain;
	
	Domain = window.location.hostname;
	Domain = "http://"+ Domain;
	return Domain;
}

/****************************************
//±¸±Û À¥·Î±× ºÐ¼® ¼­ºñ½º 
****************************************/

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15924977-4']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
 
 
/****************************************
//1:1¹®ÀÇ ÆË¾÷ 
****************************************/
function PopUpInquire() {
		
		internRecruitWin = window.open('/recruit/pop_inquire.aspx','PopUpInquire','width=577,height=600,status=no,top=20,left=20,scrollbars=yes');
		internRecruitWin.focus();
	
}

/****************************************************
// Á÷¹«¼Ò°³ ÆäÀÌÁö¿¡¼­ Á÷¹«¼³¸í °¡¸®´Â ¹öÆ°Å¬¸¯ Ã³¸® 
*****************************************************/
function ContentOnOff() {
    
        $("#tabContentDesc").css("display", "none"); 
    
//    {
//        $("#tabContentDesc").css("display", "block"); 
//    }    
}


/****************************************
//2011³â ÀÎÅÏ»ç¿ø ÆË¾÷ 
****************************************/
function PopUpjeju() {
	var now = new Date();


	if (now > new Date(2011,09,05,00,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ
		if (!isExpireDateTime(2011,10,14,23,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("PopUpjeju");		//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				internRecruitWin = window.open('/pop/popup_jeju.html','PopUpjeju','width=600,height=580,status=no,top=20,left=520,scrollbars=no');
				internRecruitWin.focus();
			}
		} 
	}
	if (now > new Date(2011,09,15,00,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ
		if (!isExpireDateTime(2011,10,21,23,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("PopUpjeju");		//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				internRecruitWin = window.open('/pop/popup_jeju2.html','PopUpjeju','width=600,height=580,status=no,top=20,left=520,scrollbars=no');
				internRecruitWin.focus();
			}
		} 
	}
	
	if (now > new Date(2011,09,22,00,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ
		if (!isExpireDateTime(2011,10,28,23,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("PopUpjeju");		//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				internRecruitWin = window.open('/pop/popup_jeju3.html','PopUpjeju','width=600,height=580,status=no,top=20,left=520,scrollbars=no');
				internRecruitWin.focus();
			}
		} 
	}
	
	if (now > new Date(2011,10,10,00,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ
		if (!isExpireDateTime(2011,11,11,24,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("PopUpjeju");		//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				internRecruitWin = window.open('/pop/popup_jeju4.html','PopUpjeju','width=600,height=580,status=no,top=20,left=520,scrollbars=no');
				internRecruitWin.focus();
			}
		} 
	}
}




/****************************************
//2011³â »ç¿ø¹ßÇ¥ ÆË¾÷ 
****************************************/
function PopUpjejuEvent() {
	var now = new Date();    

	if (now > new Date(2011,11,08,00,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ	(¼ýÀÚ¸¦ ÇÑ´ÞÀüÀ¸·Î ÇÒ°Í)    
		if (!isExpireDateTime(2011,12,09,18,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("pop_111208");		//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				internRecruitWin = window.open('/pop/popup_111108.html','pop_111208','width=450,height=445,status=no,top=20,left=20,scrollbars=no');
				internRecruitWin.focus();
			}
		} 
	}		
}

/****************************************
//À¥¼­ºñ½º ÁßÁöÆË¾÷
****************************************/
function PopUpRecruit() {
	var now = new Date();    

	if (now > new Date(2011,11,09,14,00,00)){				//½ÃÀÛÀÏ½Ã¼¼ÆÃ	(¼ýÀÚ¸¦ ÇÑ´ÞÀüÀ¸·Î ÇÒ°Í)    
		if (!isExpireDateTime(2011,12,11,10,00))			//¸¸·áÀÏ½Ã¼¼ÆÃ
		{	
			var noticeCookie=getCookie("pop_alert");		//ÄíÅ°³×ÀÓÁöÁ¤					
			if (noticeCookie != "no")
			{
				internRecruitWin = window.open('/pop/pop_alert.html','pop_alert','width=550,height=390,status=no,top=20,left=620,scrollbars=no');
				internRecruitWin.focus();
			}
		} 
	}		
}


// -->
