function resizeWindow()
{
	var ckWidth = document.body.clientWidth;
	var ckHeight = document.body.clientHeight;

	if (ckHeight < 768 && ckWidth < 1100   )
	{
		document.getElementById("BaseCampWrap").style.height = "768px";
		document.body.style.scrollY = "scroll";
		document.getElementById("BaseCampWrap").style.width = "1100px";
		document.body.style.scrollX="scroll";
	}
	else if(ckHeight > 768 && ckWidth < 1100   )
	{
		document.getElementById("BaseCampWrap").style.height = ckHeight;
		document.body.style.scrollY = "hidden";
		document.getElementById("BaseCampWrap").style.width = "1100px";
		document.body.style.scrollX="scroll";
	}
	else if(ckHeight < 768 && ckWidth > 1100)
	{
		document.getElementById("BaseCampWrap").style.height = "768px";
		document.body.style.scrollY = "scroll";
		document.getElementById("BaseCampWrap").style.width = ckWidth;
		document.body.style.scrollX="hidden";
	}
	else if(ckHeight > 768 && ckWidth > 1100)
	{
		document.getElementById("BaseCampWrap").style.height = ckHeight;
		document.body.style.scrollY = "hidden";
		document.getElementById("BaseCampWrap").style.width = ckWidth;
		document.body.style.scrollX="hidden";
	}
}

// png24
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 '';
}

//ADGALLERY >  CF LIST ·¹ÀÌ¾î ¿­°í ´Ý±â
function popCfList(idx)
{
	//¸ðµÎ ´Ý±â
	if(idx=='0')
	{

		document.getElementById('cfListPop_1').style.display="none";
		document.getElementById('cfListPop_2').style.display="none";
		document.cfListFrame_1.location="";
		document.cfListFrame_2.location="";
	}

	//CF CONCEPT
	else if(idx=='1')
	{
		document.getElementById('cfListPop_1').style.display="";
		document.cfListFrame_1.location="pop_cf_concept.html";
	}

	//ABOUT MODELS
	else if(idx=='2')
	{
		document.getElementById('cfListPop_1').style.display="";
		document.cfListFrame_1.location="pop_about_models.html";
	}

	//ABOUT LOCATION
	else if(idx=='3')
	{
		document.getElementById('cfListPop_1').style.display="";
		document.cfListFrame_1.location="pop_about_location.html";
	}

	//CF EPISODE
	else if(idx=='4')
	{
		document.getElementById('cfListPop_1').style.display="";
		document.cfListFrame_1.location="pop_cf_episode.html";
	}

	//RADIO CM
	else if(idx=='5')
	{
		document.getElementById('cfListPop_2').style.display="";
		document.cfListFrame_2.location="pop_radio_cm.html";
	}
}



//ADGALLERY > CF LIST ±¸Çö
function CFgalleryView(num)
{
	var test = document.getElementById('cfUL');
	var testLi = test.getElementsByTagName('li');

	for (i=1; i<=testLi.length ; i++ )
	{
		if (num==i)
		{
			document.getElementById('cfViewTop_'+i).style.display='block';
			document.getElementById('cfThum_'+i).style.border="6px solid #76b613"
		}

		else
		{
			document.getElementById('cfViewTop_'+i).style.display='none';
			document.getElementById('cfThum_'+i).style.border="6px solid white";
		}
	}
}

//ADGALLERY > SCREENSAVER ±¸Çö
function SSgalleryView(num)
{
	var test = document.getElementById('ssUL');
	var testLi = test.getElementsByTagName('li');

	for (i=1; i<=testLi.length ; i++ )
	{
		if (num==i)
		{
			document.getElementById('ssViewTop_'+i).style.display='block';
			document.getElementById('ssThum_'+i).style.border="6px solid #76b613"
		}
		else
		{
			document.getElementById('ssViewTop_'+i).style.display='none';
			document.getElementById('ssThum_'+i).style.border="6px solid white";
		}
	}
}

//ADGALLERY > WALLPAPER ±¸Çö
function WPgalleryView(num)
{
	var test = document.getElementById('wpUL');
	var testLi = test.getElementsByTagName('li');

	for (i=1; i<=testLi.length ; i++ )
	{
		if (num==i)
		{
			document.getElementById('wpViewTop_'+i).style.display='block';
			document.getElementById('wpThum_'+i).style.border="6px solid #76b613"
		}
		else
		{
			document.getElementById('wpViewTop_'+i).style.display='none';
			document.getElementById('wpThum_'+i).style.border="6px solid white";
		}
	}
}




// addLoadEvent
function addLoadEvent(func){
	var oldonLoad = window.onload;

	if (typeof window.onload != "function"){
		window.onload = func;
	}else{
		window.onload = function(){
		oldonLoad();
		func();
		}
	}
}

// ¾Æ¿ôµµ¾î ¸ÞÀÎ
function outdoorMain_subdata(idx){
	var subdata1 = document.getElementById('mainList1_1');
	var subdata2 = document.getElementById('mainList1_2');
	if (idx == 1){
		subdata1.style.display = "";
		subdata2.style.display = "none";
	}else if (idx == 2) {
		subdata1.style.display = "none";
		subdata2.style.display = "";
	}
}

function outdoorMain_maindata(idx){
	var maindata1 = document.getElementById('mainList1');
	var maindata2 = document.getElementById('mainList2');
	var maindata3 = document.getElementById('mainList3');
	if (idx == 1){
		maindata1.style.display = "";
		maindata2.style.display = "none";
		maindata3.style.display = "none";
	}else if (idx == 2) {
		maindata1.style.display = "none";
		maindata2.style.display = "";
		maindata3.style.display = "none";
	}else if (idx == 3) {
		maindata1.style.display = "none";
		maindata2.style.display = "none";
		maindata3.style.display = "";
	}
}

function showServiceImg(idx){
	for (var i = 1; i <=8; i++) {
		if (i == idx) {
			document.getElementById('infoBox2List' + i).style.display = "";
		} else {
			document.getElementById('infoBox2List' + i).style.display = "none";
		}
	}
}

// ¾Æ¿ôµµ¾î ·Î±× ¸®½ºÆ® ¹è°æ»ö º¯°æ
function changeBgList(){
	var bc_conList = document.getElementById('bc_conList');
	if (bc_conList){
		var bc_conList_list = bc_conList.getElementsByTagName('li');

		for (var i = 0; i < bc_conList_list.length; i++){
			bc_conList_list[i].onmouseover = function(){
				resetBgColor();
				this.style.backgroundColor = "#e8e8e8";
			}
			bc_conList_list[i].onmouseout = function(){
				resetBgColor();
			}
		}
	}
}
// ¾Æ¿ôµµ¾î ·Î±× ¸®½ºÆ® ¹è°æ»ö ÃÊ±âÈ­
function resetBgColor(){
	var bc_conList = document.getElementById('bc_conList');
	var bc_conList_list = bc_conList.getElementsByTagName('li');

	for(var i = 0; i < bc_conList_list.length; i++){
		bc_conList_list[i].style.backgroundColor = "#f4f4f4";
	}
}


// ¾Æ¿ôµµ¾î ·Î±× > ¾Æ¿ôµµ¾î ÄÚ½º¸®ºä
function changeBgReviewList(){
	var reviewTotal = document.getElementById("reviewTotal_list");
	if(!reviewTotal) return false;

	var reviewTotal_list = reviewTotal.getElementsByTagName("li");

	for (var i = 0; i < reviewTotal_list.length; i++){
		reviewTotal_list[i].onmouseover = function(){
			hideBgReviewList();
			this.className = "on";
		};
	}

	function hideBgReviewList(){
		for (var i = 0; i < reviewTotal_list.length; i++){
			reviewTotal_list[i].className = "";
		}
	}
}
addLoadEvent(changeBgReviewList);

// ¾Æ¿ôµµ¾î ·Î±× > ¾Æ¿ôµµ¾î ÄÚ½º¸®ºä > È¸¿ø·Î±×ÆäÀÌÁö
function showCoursePoint(){
	var btnCourse = document.getElementById('btnCourse');
	var conCourse = document.getElementById('conCourse');
	var btnPoint = document.getElementById('btnPoint');
	var conPoint = document.getElementById('conPoint');

	if(conCourse && conPoint) {
		conPoint.style.display = "none";

		btnCourse.onclick = function(){
			conCourse.style.display = "";
			conPoint.style.display = "none";
			return false;
		}
		btnPoint.onclick = function(){
			conCourse.style.display = "none";
			conPoint.style.display = "";
			return false;
		}
	}
}

// ¾Æ¿ôµµ¾î ·Î±× > WEEKLY ¸í¿¹ÀÇ Àü´ç
function showHideList(){
	var weeklyhonorList = document.getElementById('weeklyhonorList');
	if (!weeklyhonorList){ return false; }
	var ListLi = weeklyhonorList.getElementsByTagName('li');
	var weeklyhonorList1 = document.getElementById('weeklyhonorList1');
	var weeklyhonorList2 = document.getElementById('weeklyhonorList2');
	var weeklyhonorList3 = document.getElementById('weeklyhonorList3');
	var weeklyhonorList4 = document.getElementById('weeklyhonorList4');
	var weeklyhonorList5 = document.getElementById('weeklyhonorList5');
	var mapUrl = document.getElementById('weeklyMapData');

	hideList();
	weeklyhonorList1.className = "on";

	weeklyhonorList1.onclick = function(){
		hideList();
		this.className = "on";
		this.getElementsByTagName('h5')[0].style.cursor = "default";
		mapUrl.src = "";
	}
	weeklyhonorList2.onclick = function(){
		hideList();
		this.className = "on";
		this.getElementsByTagName('h5')[0].style.cursor = "default";
		mapUrl.src = "";
	}
	weeklyhonorList3.onclick = function(){
		hideList();
		this.className = "on";
		this.getElementsByTagName('h5')[0].style.cursor = "default";
		mapUrl.src = "";
	}
	weeklyhonorList4.onclick = function(){
		hideList();
		this.className = "on";
		this.getElementsByTagName('h5')[0].style.cursor = "default";
		mapUrl.src = "";
	}
	weeklyhonorList5.onclick = function(){
		hideList();
		this.className = "on";
		this.getElementsByTagName('h5')[0].style.cursor = "default";
		mapUrl.src = "";
	}
}
function hideList(){
	var weeklyhonorList = document.getElementById('weeklyhonorList');
	var ListLi = weeklyhonorList.getElementsByTagName('li');
	var ListH = weeklyhonorList.getElementsByTagName('h5');

	for(var i = 0; i < ListLi.length; i++){
		ListLi[i].className = "";
	}
	for(var j = 0; j < ListH.length; j++){
		ListH[j].style.cursor = "pointer";
	}
}


addLoadEvent(changeBgList);
addLoadEvent(showCoursePoint);
addLoadEvent(showHideList);



//ºê·£µå ÄÃ·¯Å¬·¡½º °­ÀÇ½ÅÃ» °Ô½ÃÆÇº¸±â
function culClasstab(idx)
{
	if(idx=='1')
	{
		document.getElementById('cultureFrame_1').style.display="";
		document.getElementById('cultureFrame_2').style.display="none";
	}
	if(idx=='2')
	{
		document.getElementById('cultureFrame_1').style.display="none";
		document.getElementById('cultureFrame_2').style.display="";
	}
}


//´çÃ·ÀÚ ¸í´Ü ¿­°í ´Ý±â
function popEvtlist(idx)
{
	if (idx=='1') //¿­±â
	{
		document.getElementById('evtList').style.display="";
		document.getElementById('ie6Hidden').style.display="";
		document.evtListFrame.location="pop_event_list.html";
	}

	else if (idx=='0') //´Ý±â
	{
		document.getElementById('evtList').style.display="none";
		document.getElementById('ie6Hidden').style.display="none";
		document.evtListFrame.location="";
	}
}



//ºê·£µå Ã¿¸°Àú ÀÌ¸§ ÅÇ
function chaNameTAB(idx)
{
	for (i=1; i<=5 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('chalTab_'+i).style.display='';
			document.getElementById('chalCnt_'+i).style.display='';
		}
		else
		{
			document.getElementById('chalTab_'+i).style.display='none';
			document.getElementById('chalCnt_'+i).style.display='none';
		}
	}
}




//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â °í¹Ì¿µ ÅÇ
function chaHistoryTAB_1(idx)
{
	for (i=1; i<=3 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('chalCnt_1_'+i).style.display='';
		}
		else
		{
			document.getElementById('chalCnt_1_'+i).style.display='none';
		}
	}
}


//ºê·£µå Ã¿¸°Àú °í¹Ì¿µ µî¹Ý°æ·Â ¿¬µµº° ÅÇ
function chaTAB_1_1(idx)
{
	for (i=1; i<=4 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('cc1_1_'+i).style.display='';
		}
		else
		{
			document.getElementById('cc1_1_'+i).style.display='none';
		}
	}
}


//ºê·£µå Ã¿¸°Àú °í¹Ì¿µ µî¹Ý°æ·Â ¿¬µµº° ÅÇ
function chaTAB_1_2(idx)
{
	for (i=1; i<=4 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('cc1_2_'+i).style.display='';
		}
		else
		{
			document.getElementById('cc1_2_'+i).style.display='none';
		}
	}
}


//ºê·£µå Ã¿¸°Àú °í¹Ì¿µ µî¹Ý°æ·Â ¿¬µµº° ÅÇ
function chaTAB_1_3(idx)
{
	for (i=1; i<=4 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('cc1_3_'+i).style.display='';
		}
		else
		{
			document.getElementById('cc1_3_'+i).style.display='none';
		}
	}
}



//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â ±èÀç¼ö ÅÇ
function chaHistoryTAB_2(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('chalCnt_2_'+i).style.display='';
		}
		else
		{
			document.getElementById('chalCnt_2_'+i).style.display='none';
		}
	}
}

// 2010-08-30 Ãß°¡ (1)
//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â ±èÀç¼ö µî¹Ý°æ·Â ¿¬µµº° ÅÇ
function chaTAB_2_1(idx)
{
	for (i=1; i<=4 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('cc2_1_'+i).style.display='';
		}
		else
		{
			document.getElementById('cc2_1_'+i).style.display='none';
		}
	}
}



//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â ¼Õ»ó¿ø ÅÇ
function chaHistoryTAB_3(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('chalCnt_3_'+i).style.display='';
		}
		else
		{
			document.getElementById('chalCnt_3_'+i).style.display='none';
		}
	}
}


//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â ¼Õ»ó¿ø µî¹Ý°æ·Â ¿¬µµº° ÅÇ
function chaTAB_3_1(idx)
{
	for (i=1; i<=5 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('cc3_1_'+i).style.display='';
		}
		else
		{
			document.getElementById('cc3_1_'+i).style.display='none';
		}
	}
}




//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â ¿øÁ¾¹Î ÅÇ
function chaHistoryTAB_4(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('chalCnt_4_'+i).style.display='';
		}
		else
		{
			document.getElementById('chalCnt_4_'+i).style.display='none';
		}
	}
}



//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â ¿øÁ¾¹Î µî¹Ý°æ·Â ¿¬µµº° ÅÇ
function chaTAB_4_2(idx)
{
	for (i=1; i<=3 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('cc4_1_'+i).style.display='';
		}
		else
		{
			document.getElementById('cc4_1_'+i).style.display='none';
		}
	}
}




//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â À¯ÇÑ±Ô ÅÇ
function chaHistoryTAB_5(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('chalCnt_5_'+i).style.display='';
		}
		else
		{
			document.getElementById('chalCnt_5_'+i).style.display='none';
		}
	}
}

//ºê·£µå Ã¿¸°Àú µî¹Ý°æ·Â À¯ÇÑ±Ô µî¹Ý°æ·Â ¿¬µµº° ÅÇ
function chaTAB_5_2(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('cc5_1_'+i).style.display='';
		}
		else
		{
			document.getElementById('cc5_1_'+i).style.display='none';
		}
	}
}




//ÄÚ¿À·Õ½ºÆ÷Ã÷ philosophy ¸Þ´º ÅÇ
function philoMenuTAB(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('philoTab_'+i).style.display='';
			document.getElementById('philoCnt_'+i).style.display='';
		}
		else
		{
			document.getElementById('philoTab_'+i).style.display='none';
			document.getElementById('philoCnt_'+i).style.display='none';
		}
	}
}




//ÄÚ¿À·Õ½ºÆ÷Ã÷ expendition ¸Þ´º ÅÇ
function expenTAB(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('expenIMG_'+i).style.display='';
		}
		else
		{
			document.getElementById('expenIMG_'+i).style.display='none';
		}
	}
}





// 2010-08-31 Ãß°¡ (1)
//ºê·£µå ÄÚ¿À·Õ½ºÆ÷Ã÷'s È÷½ºÅä¸® ÅÇ
function history_tab1(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('expenIMG_1_'+i).style.display='';
		}
		else
		{
			document.getElementById('expenIMG_1_'+i).style.display='none';
		}
	}
}


//ºê·£µå ÄÚ¿À·Õ½ºÆ÷Ã÷'s ¿øÁ¤´ëÈ÷½ºÅä¸® ÅÇ
function history_tab2(idx)
{
	for (i=1; i<=2 ; i++ )
	{
		if (idx==i)
		{
			document.getElementById('expenIMG_2_'+i).style.display='';
		}
		else
		{
			document.getElementById('expenIMG_2_'+i).style.display='none';
		}
	}
}

//ÇªÅÍ > ¸ÅÀåÁ¤º¸ > ¸ÅÀåÀ§Ä¡ ÆË¾÷
function popShowMap(addr, phone, name, x, y)
{
  document.getElementById('popShowMap').style.display="";
  document.mapFrame.location="pop_show_map.jsp?addr="+addr+"&phone="+phone+"&name="+name+"&map_x="+x+"&map_y="+y;
}

function popShommapclose()
{
	document.getElementById('popShowMap').style.display="none";
	document.mapFrame.location="none";
}

//¾Æ¿ôµµ¾îÅ¬·¡½º > ¸ÅÀåÀ§Ä¡
function popShowCSMap(idx,addr, phone, name, x, y)
{
 if(idx=="1")
 {
  document.getElementById('popShowCSMap').style.display="";
  document.mapCSFrame.location="pop_culture_station.jsp?addr="+addr+"&phone="+phone+"&name="+name+"&map_x="+x+"&map_y="+y;
 }
 /*
 else if(idx=="0")
 {
  document.getElementById('popShowCSMap').style.display="none";
  document.mapCSFrame.location="none";
 }
 */
}

function popShomCSmapclose()
{
	document.getElementById('popShowCSMap').style.display="none";
	document.mapCSFrame.location="none";
}



function cfCopyUrl(idx)
{
	if(idx=='1') //1977 ÄÚ¿À·ÕÅÙÆ®
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/8e-g-AA6yaw&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/8e-g-AA6yaw&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("1977 ÄÚ¿À·ÕÅÙÆ® CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='2') //1977 ÄÚ¿À·ÕÅÙÆ® - ¾ß¿µ
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/q2LUVFiLriQ&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/q2LUVFiLriQ&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("1977 ÄÚ¿À·ÕÅÙÆ® - ¾ß¿µ CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='3') //1977 ÄÚ¿À·ÕÅÙÆ® - ÅÙÆ®
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/uxAehb9h9NQ&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/uxAehb9h9NQ&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("1977 ÄÚ¿À·ÕÅÙÆ® - ÅÙÆ® CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='4') //1982 ÄÚ¿À·Õ½ºÆ÷Ã÷ ÅÙÆ® - ½Å³ª´Â ¿©¸§ÈÞ°¡
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/edr1wvVTYFg&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/edr1wvVTYFg&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("1982 ÄÚ¿À·Õ½ºÆ÷Ã÷ ÅÙÆ® - ½Å³ª´Â ¿©¸§ÈÞ°¡ CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");

	}

	else if(idx=='5') //1982 - Á¤»óµµÀü
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/FVx4m4SJ2Oo&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/FVx4m4SJ2Oo&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("1982 - Á¤»óµµÀü CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='6') //2005 - BORN TO BE EXTREME
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/k1rAvEeH4dM&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/k1rAvEeH4dM&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2005 - BORN TO BE EXTREME CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='7')//2006 - PLAY EXTREME
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/ZHe8CsKpqFI&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/ZHe8CsKpqFI&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2006 - PLAY EXTREME CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='8')//2007 - i SERIES
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/Xv7OL6pXHck&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/Xv7OL6pXHck&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2007 - i SERIES CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='9')//2010 ÀÌ½Â±â ÀÌ¹ÎÁ¤
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/7KMq5vuNBNA&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/7KMq5vuNBNA&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2010 ÀÌ½Â±â ÀÌ¹ÎÁ¤ CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='10')//2008 F/W Adventure
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/UQiwB4nBwHM&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/UQiwB4nBwHM&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2008 F/W Adventure CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}
	else if(idx=='11')//2008 KOLON SPORT 'Extream °í¹Ì¿µ' Æí
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/eJjs2OXlTZs&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/eJjs2OXlTZs&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2008 Extream °í¹Ì¿µ CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}


	else if(idx=='12')//2009 KOLON SPORT 'The great challenge 1' Æí
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/Fx37qQyKtAI&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/Fx37qQyKtAI&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2009 The great challenge 1 CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

	else if(idx=='13')//2009 KOLON SPORT 'The great challenge 2' Æí
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/tntCmUHaks0&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/tntCmUHaks0&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2009 The great challenge 2 CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}
	else if(idx=='14')//10 F/W ½Â±â&¹ÎÁ¤ TV CF
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/lgc_xUQ0Jds&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/lgc_xUQ0Jds&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2010 F/W ½Â±â&¹ÎÁ¤ TV CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}
	else if(idx=='14')//10 F/W ½Â±â&¹ÎÁ¤ TV CF
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/lgc_xUQ0Jds&hl=ko&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/lgc_xUQ0Jds&hl=ko&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2010 F/W ½Â±â&¹ÎÁ¤ TV CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}
	else if(idx=='15')//11 S/S ½Â±â&¹ÎÁ¤ TV CF
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/sAUF4UGMC2I&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/sAUF4UGMC2I&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2011 S/S ½Â±â&¹ÎÁ¤ TV CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}
	else if(idx=='16')//11 S/S ½Â±â&¹ÎÁ¤ TV CF ¸ÞÀÌÅ·
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/honhLo9taQ0&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/honhLo9taQ0&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2011 S/S ½Â±â&¹ÎÁ¤ TV CF ¸ÞÀÌÅ·ÀÌ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}
	else if(idx=='17')//11 F/W ½Â±â&¹ÎÁ¤ TV CF
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/-DEv1j-DAU4&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/-DEv1j-DAU4&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2011 F/W ½Â±â&¹ÎÁ¤ TV CF°¡ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}
	else if(idx=='18')//11 F/W ½Â±â&¹ÎÁ¤ TV CF ¸ÞÀÌÅ·
	{
		var urlCopy= "<object width='370' height='300'><param name='movie' value='http://www.youtube.com/v/_nPXh8CpA_c&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/_nPXh8CpA_c&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='370' height='300'></embed></object>"
		window.clipboardData.setData('text',urlCopy);

		alert("2011 F/W ½Â±â&¹ÎÁ¤ TV CF ¸ÞÀÌÅ·ÀÌ ½ºÅ©·¦µÇ¾ú½À´Ï´Ù.\nºÙ¿©³Ö±â ÇØÁÖ¼¼¿ä");
	}

}


//main.swf¿¡¼­ È£ÃâÇÏ´Â ÇÔ¼ö
function mainLink(idx1,idx2)
{
	//alert("¸ÞÀÎ¸µÅ©"+idx1+"_"+idx2);


	if(idx1=='1')
	{
		if(idx2=='1')
		{
			document.location.href('/basecamp/photo_tracking/apply/applyList.jsp');
		}
		if(idx2=='2')
		{
			document.location.href("http://www.kolonsport.com/basecamp/outdoorlog/outdoorlogMain.jsp");
		}
		if(idx2=='3')
		{
			document.location.href('http://www.kolonsport.com/basecamp/photo_tracking/photocourse/pt_pc_list.jsp');
		}
		if(idx2=='4')
		{
			document.location.href('http://www.kolonsport.com/basecamp/kolonsport_lab/backpack/backpackLabList.jsp');
		}
		if(idx2=='5')
		{
			document.location.href('http://www.kolonsport.com/basecamp/ecocamp/ecocamp/ec_main.jsp');
		}
		if(idx2=='6')
		{
			document.location.href('http://www.kolonsport.com/basecamp/explorer/main.jsp');
		}
		if(idx2=='7')
		{
			document.location.href('/basecamp/explorer/main.jsp');
		}
	}
	if(idx1=='2')
	{
		if(idx2=='1')
		{
			document.location.href('/shop/special.jsp');
		}
		if(idx2=='2')
		{
			document.location.href('/shop/item/itemCommentList.jsp');
		}
	}
	if(idx1=='3')
	{
		if(idx2=='1')
		{

			document.location.href('/brand/info/outdoorClass.jsp');
		}
		if(idx2=='2')
		{

			openCustomerLayer('level1=notice');
		}
		if(idx2=='3')
		{

			document.location.href('/brand/issue/issueList.jsp');
		}
	}
}

function mainBaseBannerLink(idx)
{
		if(idx=='1')
		{
			document.location.href('/basecamp/routedevelop/relayrunner/rd_rr_list.jsp');
		}
		if(idx=='2')
		{
			document.location.href('/basecamp/photo_tracking/apply/applyList.jsp');
		}
		if(idx=='3')
		{
			window.open('http://www.kolonsport.com/basecamp/campaign/campRelay/camp_list.jsp');
		}
}

function mainShopBannerLink(idx)
{
	//alert("¸ÞÀÎ¼¥¹è³Ê¸µÅ©"+idx);
	if(idx=='1')
	{
			document.location.href('http://www.kolonsport.com/event/outdoorLog/event_1.jsp');
	}
	if(idx=='2')
	{
			document.location.href('http://www.kolonsport.com/shop/templet/templetList.jsp?shop_id=6862');
	}
	if(idx=='3')
	{
			document.location.href('http://www.kolonsport.com/shop/templet/templetList.jsp?shop_id=6807');
	}
}

function mainBrandBannerLink(idx)
 {
		  //alert("AAAAAAA");
		  if(idx=='1')
		 {
		   document.location.href('/event/eventMain.jsp');
		 }
		 if(idx=='2')
		 {
		   document.location.href('/brand/info/info_location.jsp');
		 }
		 if(idx=='3')
		 {
		   document.location.href('/html/event/event_101014.jsp');
		 }
}


//brand_main.swf¿¡¼­ È£ÃâÇÏ´Â ÇÔ¼ö
function brandBannerLink(idx1,idx2)
{
	//alert("ºê·£µå¹è³Ê¸µÅ©"+idx1+"_"+idx2);

	if(idx1=='1')
	{
		if(idx2=='1')
		{
			document.location.href('/html/event/event_100909_3.jsp');
		}
		if(idx2=='2')
		{
			document.location.href('/html/event/event_100910_1.jsp');
		}
		if(idx2=='3')
		{
			document.location.href('/html/event/event_100818.jsp');
		}
	}
	if(idx1=='2')
	{
		if(idx2=='1')
		{
			document.location.href('http://www.kolonschool.com/');
		}
		if(idx2=='2')
		{
			document.location.href('/brand/info/outdoorClass.jsp');
		}
	}
}


//07_event.swf¿¡¼­ È£ÃâÇÏ´Â ÇÔ¼ö
function eventBannerLink(idx)
{
	if(idx=='1')
	{
		document.location.href('/html/event/event_100909_3.jsp');
	}
	if(idx=='2')
	{
		document.location.href('/html/event/event_100910_1.jsp');
	}
	if(idx=='3')
	{
		document.location.href('/html/event/event_100818.jsp');
	}
}


//top_logo_180x80.swf ¸µÅ©
function home()
{
	document.location.href('/main.jsp');
}

function eng()
{
	window.open('http://us.kolonsport.com/');
}

function chi()
{
	window.open('http://kolonsport.cn/');
}

function brandLink(idx)
{
	if(idx=='1')
	{
		document.location.href('/brand/kolon_sport/kolon_about.jsp');
	}
	if(idx=='2')
	{
		document.location.href('/brand/challenger/challenger_main.jsp');
	}
	if(idx=='3')
	{
		document.location.href('/brand/technology/tech_01_Life_tech.jsp');
	}
}

//-->




function allMainBg()
{
	var allMain = document.getElementsByTagName('div')[0];
	if(allMain.className == "Allmain"){
		allMain.parentNode.style.background = "url('http://image.kolonsports.com/images2/common/bg_body.gif') repeat-x left bottom";
	}
}
addLoadEvent(allMainBg);



//IE8¿¡¼­ flex°¡ ³ôÀÌ°ª ÃøÁ¤ÇÏ°Ô »ç¿ë
 function fixHeight(){
   if(navigator.userAgent.indexOf("MSIE 8") != -1){
   var wrap = document.getElementById('wrap');
   if(!wrap) return false;
   var wrapHeight = wrap.offsetHeight;
   var layerLoginFlex = document.getElementById('layerLoginFlex');
   if(!layerLoginFlex) return false;
   var layerLoginFlexTable = layerLoginFlex.getElementsByTagName('table')[0];
   layerLoginFlexTable.style.height = wrapHeight + "px";
   }
 }

addLoadEvent(fixHeight);


//¾Æ¿ôµµ¾îÅ¬·¡½º > Å¬·¡½º ½ºÄÉÁÙ º¸±â
function popShowSchedule(idx)
{

	if(idx=="1") //¿­±â
	{
		document.getElementById('classSchedule').style.display="";
		document.scheduleFrame.location="pop_class_schedule.jsp";
	}

	else if(idx=="0") //´Ý±â
	{
		document.getElementById('classSchedule').style.display="none";
		document.scheduleFrame.location="#";
	}

}



//¸Ê °æ·Îº¸±â ¿­°í ´Ý±â
function popMapRoute(idx)
{
	if (idx=='1') //¿­±â
	{
		document.getElementById('popMapView').style.display="";
		document.getElementById('ie6Hidden').style.display="";
		document.mapViewFrame.location="./html/basecamp/popup/pop_map_view.html";
	}

	else if (idx=='0') //´Ý±â
	{
		document.getElementById('popMapView').style.display="none";
		document.getElementById('ie6Hidden').style.display="none";
		document.mapViewFrame.location="";
	}
}



//¾Æ¿ôµµ¾îÅ¬·¡½º > ÄÚ¿À·Õ¿¬±¸½Ç > ÇÊµåÅ×½ºÆ® > ÇØ´ç»óÇ° ÀÔ·Â ÅÇ
function popItMyList(idx)
{
	if(idx=='1')
	{
		document.getElementById('wishList').style.display="";
		document.getElementById('buyList').style.display="none";
	}
	if(idx=='2')
	{
		document.getElementById('wishList').style.display="none";
		document.getElementById('buyList').style.display="";
	}
}




//ÆË¾÷ ¾Æ¿ôµµ¾îÅ¬·¡½º > ÄÚ¿À·Õ¿¬±¸½Ç > ÇÊµåÅ×½ºÆ® > ÇØ´ç»óÇ° ÀÔ·Â ¿­°í ´Ý±â
function popReviewItem(idx)
{
	if (idx=='1') //Àå¹Ù±¸´Ï ¸ñ·Ï ¿­±â
	{
		document.getElementById('popReviewItem').style.display="";
		document.rvInputFrame.location="pop_ft_cart_list.html";
	}

	else if (idx=='2') //¾ÆÀÌÅÛ Á÷Á¢ °Ë»ö ¸ñ·Ï ¿­±â
	{
		document.getElementById('popReviewItem').style.display="";
		document.rvInputFrame.location="pop_ft_item_search.html";
	}

	else if (idx=='0') //´Ý±â
	{
		document.getElementById('popReviewItem').style.display="none";
		document.rvInputFrame.location="";
	}
}




//º£ÀÌ½ºÄ·ÇÁ
//¿¡ÄÚÄ·ÇÁ > ÆË¾÷ > Ä·ÇÁÇöÀå ¶óÀÌºê
function zoom(idx)
{
	for(var i=1; i<5; i++)
	{
		var zoom = document.getElementById('preview_'+i);
		if(idx == i)
		{
			zoom.className = 'picOn';
		}
		else
		{
			zoom.className = 'picOff';
		}
	}
}


/* 2010-09-29 ¼öÁ¤ */
//¿¡ÄÚÄ·ÇÁ > ÆË¾÷¿­°í ´Ý±â
function popEcoLive(idx)
{
	if (idx=='1') //¿­±â
	{
		//document.getElementById('popEcoMain').style.display="";
		//document.ecoMainFrame.location="/basecamp/ecocamp/live/pop_live_vod.jsp";

		var winFocus;
		var w = 530;
		var h = 581;

		var winl = screen.availWidth/2-w/2;
		var wint = screen.availHeight/2-h/2;

		winFocus = window.open('/basecamp/ecocamp/live/pop_live_vod.jsp','NewWin','left='+winl+', top='+wint+', width='+w+', height='+h+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,toolbars=no');
		winFocus.focus();

	}

	else if (idx=='0') //´Ý±â
	{
		//document.getElementById('popEcoMain').style.display="none";
		//document.ecoMainFrame.location="";
		window.close();
	}
}
/* //2010-09-29 ¼öÁ¤ */


//¿¡ÄÚÄ·ÇÁ > ¿¡ÄÚ¸®´õ½ÊÄ·ÇÁ > ÇÁ·Î±×·¥¾È³»
function popProgramIntro(idx)
{
	if (idx=='1') //¿­±â
	{
		document.getElementById('popProgram').style.display="";
		document.programFrame.location="pop_program.jsp";
	}

	else if (idx=='0') //´Ý±â
	{
		document.getElementById('popProgram').style.display="none";
		document.programFrame.location="";
	}
}


//¿¡ÄÚÄ·ÇÁ > ¿¡ÄÚ¸®´õ½ÊÄ·ÇÁ > ÇÁ·Î±×·¥¾È³» ÅÇ º¯°æ
function popProgramTab(idx)
{

	if(idx=="1") //¿­±â
	{
		document.getElementById('program_1').style.display="";
		document.getElementById('program_2').style.display="none";
	}

	else if(idx=="2") //´Ý±â
	{
		document.getElementById('program_1').style.display="none";
		document.getElementById('program_2').style.display="";
	}

}

// ·¹ÀÌ¾î ÆË¾÷
function popIframe(displayStyle, objId, iFrameName, pageSrc){
	document.getElementById(objId).style.display=displayStyle;
	document.getElementById(iFrameName).src = pageSrc;
}



/* 2010-09-30¼öÁ¤ */
//º£ÀÌ½ºÄ·ÇÁÀÇ ¾Æ¿ôµµ¾î ·Î±× »ó´Ü ÇÃ·¡½Ã ¹öÆ° ¿µ¿ª
function popODLView()
{
	var winFocus;
	var w = 500;
	var h = 708;

	var winl = screen.availWidth/2-w/2;
	var wint = screen.availHeight/2-h/2;

	winFocus = window.open('/basecamp/popup/pop_odl_svs.jsp','pop_odl_svs','left='+winl+', top='+wint+', width='+w+', height='+h+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,toolbars=no');
	winFocus.focus();

}




//¿¡ÄÚÄ·ÇÁ > ÆË¾÷¿­°í ´Ý±â
function popOdlMap()
{
	var winFocus;
	var w = 500;
	var h = 708;

	var winl = screen.availWidth/2-w/2;
	var wint = screen.availHeight/2-h/2;

	winFocus = window.open('/basecamp/popup/pop_odl_map.jsp','pop_odl_map','left='+winl+', top='+wint+', width='+w+', height='+h+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,toolbars=no');
	winFocus.focus();

}




/* 2010-10-04 ¼öÁ¤ */
//º£ÀÌ½ºÄ·ÇÁÀÇ ¾Æ¿ôµµ¾î ·Î±× »ó´Ü ÇÃ·¡½Ã ¹öÆ° ¿µ¿ª
function popRouteView()
{
	var winFocus;
	var w = 500;
	var h = 708;

	var winl = screen.availWidth/2-w/2;
	var wint = screen.availHeight/2-h/2;

	winFocus = window.open('/basecamp/popup/pop_route.jsp','pop_route','left='+winl+', top='+wint+', width='+w+', height='+h+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,toolbars=no');
	winFocus.focus();

}




// ÀÌ¹ÌÁö ¸®»çÀÌÁî, °Ô½Ã¹° ¸®½ºÆ®¿¡¼­ °øÅëÀ¸·Î »ç¿ë
function ImgResize_L()
 {
  resize_images_L('bc_conList', 166, 106);
 }

 function resize_images_L(obj, maxWidth, maxHeight) {
  var isCheckWidth = (maxWidth!=undefined);
  var isCheckHeight = (maxHeight!=undefined);

  var imgBox = document.getElementById(obj);
  if (!imgBox) return false;
  var imgList = imgBox.getElementsByTagName("img");

  if(imgList) {
   if(!imgList.length) {
    var imgObj = imgList;
    var imgWidth = imgObj.width;
    var imgHeight = imgObj.height;

    if(isCheckWidth) {
  if(imgWidth > maxWidth) {
   var widthRatio = (imgWidth-maxWidth)/imgWidth;
   imgObj.width = maxWidth;
   //imgObj.height = imgHeight * widthRatio;
  }
    }
    if(isCheckHeight) {
  if(imgHeight > maxHeight) {
   var heightRatio = (imgHeight-maxHeight)/imgHeight;
   imgObj.height = maxHeight;
   //imgObj.height = imgHeight * widthRatio;
  }
    }
   } else {
    for(var i=0; i<imgList.length; i++) {
  var imgObj = imgList[i];
  var imgWidth = imgObj.width;
  var imgHeight = imgObj.height;

  if(isCheckWidth) {
   if(imgWidth > maxWidth) {
    var widthRatio = (imgWidth-maxWidth)/imgWidth;
    imgObj.width = maxWidth;
    //imgObj.height = imgHeight * widthRatio;
   }
  }
  if(isCheckHeight) {
   if(imgHeight > maxHeight) {
    var heightRatio = (imgHeight-maxHeight)/imgHeight;
    imgObj.height = maxHeight;
    //imgObj.height = imgHeight * widthRatio;
   }
  }
    }
   }
  }
 }

addLoadEvent(ImgResize_L);




// ÀÌ¹ÌÁö ¸®»çÀÌÁî,
//basecamp/photo_tracking/photocourse/img_slide.jsp ¿¡¼­ »ç¿ë

function ImgResize_S()
 {
  resize_images_S('ptSlide', 120, 73);
 }

 function resize_images_S(obj, maxWidth, maxHeight) {
  var isCheckWidth = (maxWidth!=undefined);
  var isCheckHeight = (maxHeight!=undefined);

  var imgBox = document.getElementById(obj);
if (!imgBox) return false;
  var imgList = imgBox.getElementsByTagName("img");

  if(imgList) {
   if(!imgList.length) {
    var imgObj = imgList;
    var imgWidth = imgObj.width;
    var imgHeight = imgObj.height;

    if(isCheckWidth) {
  if(imgWidth > maxWidth) {
   var widthRatio = (imgWidth-maxWidth)/imgWidth;
   imgObj.width = maxWidth;
   //imgObj.height = imgHeight * widthRatio;
  }
    }
    if(isCheckHeight) {
  if(imgHeight > maxHeight) {
   var heightRatio = (imgHeight-maxHeight)/imgHeight;
   imgObj.height = maxHeight;
   //imgObj.height = imgHeight * widthRatio;
  }
    }
   } else {
    for(var i=0; i<imgList.length; i++) {
  var imgObj = imgList[i];
  var imgWidth = imgObj.width;
  var imgHeight = imgObj.height;

  if(isCheckWidth) {
   if(imgWidth > maxWidth) {
    var widthRatio = (imgWidth-maxWidth)/imgWidth;
    imgObj.width = maxWidth;
    //imgObj.height = imgHeight * widthRatio;
   }
  }
  if(isCheckHeight) {
   if(imgHeight > maxHeight) {
    var heightRatio = (imgHeight-maxHeight)/imgHeight;
    imgObj.height = maxHeight;
    //imgObj.height = imgHeight * widthRatio;
   }
  }
    }
   }
  }
 }


addLoadEvent(ImgResize_S);




// ÀÌ¹ÌÁö ¸®»çÀÌÁî,
//basecamp/routedevelop/courseepilogue/img_slide.jsp ¿¡¼­ »ç¿ë

function ImgResize_relay()
 {
  resize_images_relay('relaySlide', 88, 88);
 }

 function resize_images_relay(obj, maxWidth, maxHeight) {
  var isCheckWidth = (maxWidth!=undefined);
  var isCheckHeight = (maxHeight!=undefined);

  var imgBox = document.getElementById(obj);
if (!imgBox) return false;
  var imgList = imgBox.getElementsByTagName("img");

  if(imgList) {
   if(!imgList.length) {
    var imgObj = imgList;
    var imgWidth = imgObj.width;
    var imgHeight = imgObj.height;

    if(isCheckWidth) {
  if(imgWidth > maxWidth) {
   var widthRatio = (imgWidth-maxWidth)/imgWidth;
   imgObj.width = maxWidth;
   //imgObj.height = imgHeight * widthRatio;
  }
    }
    if(isCheckHeight) {
  if(imgHeight > maxHeight) {
   var heightRatio = (imgHeight-maxHeight)/imgHeight;
   imgObj.height = maxHeight;
   //imgObj.height = imgHeight * widthRatio;
  }
    }
   } else {
    for(var i=0; i<imgList.length; i++) {
  var imgObj = imgList[i];
  var imgWidth = imgObj.width;
  var imgHeight = imgObj.height;

  if(isCheckWidth) {
   if(imgWidth > maxWidth) {
    var widthRatio = (imgWidth-maxWidth)/imgWidth;
    imgObj.width = maxWidth;
    //imgObj.height = imgHeight * widthRatio;
   }
  }
  if(isCheckHeight) {
   if(imgHeight > maxHeight) {
    var heightRatio = (imgHeight-maxHeight)/imgHeight;
    imgObj.height = maxHeight;
    //imgObj.height = imgHeight * widthRatio;
   }
  }
    }
   }
  }
 }


addLoadEvent(ImgResize_relay);





// 2010-10-22 ¼öÁ¤
// °Ô½ÃÆÇº¸±âÆäÀÌÁö¿¡¼­ ÀÌ¹ÌÁö ¸®»çÀÌÁî
function brdViewImgResize()
{
	var brdViewImg = document.getElementsByTagName("div");

	for (var i = 0; i < brdViewImg.length; i++)
	{
		if(brdViewImg[i].className=="f_txtArea")
		{
			var imgWidth = brdViewImg[i].getElementsByTagName("img");
			for (var j = 0; j < imgWidth.length; j++)
			{

				if(imgWidth[j].width >= 615 || imgWidth[j].style.width >= 615)

				{
					imgWidth[j].width = 610 + "px";
					imgWidth[j].style.width = 610 + "px";
				}
			}
		}
	}
}

 addLoadEvent(brdViewImgResize);



 // ÀÌ¹ÌÁö ¸®»çÀÌÁî,
///basecamp/outdoorlog/my_log/ ¿¡¼­ »ç¿ë

function ImgResize_myODL()
 {
  resize_images_relay('myODLThumImg', 88, 88);
 }

 function resize_images_relay(obj, maxWidth, maxHeight) {
  var isCheckWidth = (maxWidth!=undefined);
  var isCheckHeight = (maxHeight!=undefined);

  var imgBox = document.getElementById(obj);
if (!imgBox) return false;
  var imgList = imgBox.getElementsByTagName("img");

  if(imgList) {
   if(!imgList.length) {
    var imgObj = imgList;
    var imgWidth = imgObj.width;
    var imgHeight = imgObj.height;

    if(isCheckWidth) {
  if(imgWidth > maxWidth) {
   var widthRatio = (imgWidth-maxWidth)/imgWidth;
   imgObj.width = maxWidth;
   //imgObj.height = imgHeight * widthRatio;
  }
    }
    if(isCheckHeight) {
  if(imgHeight > maxHeight) {
   var heightRatio = (imgHeight-maxHeight)/imgHeight;
   imgObj.height = maxHeight;
   //imgObj.height = imgHeight * widthRatio;
  }
    }
   } else {
    for(var i=0; i<imgList.length; i++) {
  var imgObj = imgList[i];
  var imgWidth = imgObj.width;
  var imgHeight = imgObj.height;

  if(isCheckWidth) {
   if(imgWidth > maxWidth) {
    var widthRatio = (imgWidth-maxWidth)/imgWidth;
    imgObj.width = maxWidth;
    //imgObj.height = imgHeight * widthRatio;
   }
  }
  if(isCheckHeight) {
   if(imgHeight > maxHeight) {
    var heightRatio = (imgHeight-maxHeight)/imgHeight;
    imgObj.height = maxHeight;
    //imgObj.height = imgHeight * widthRatio;
   }
  }
    }
   }
  }
 }

/* -------------flex »èÁ¦·Î ÀÎÇÑ  Ãß°¡ ½ÃÀÛ----------  */

function getFirstApp(){
	var	str = getHash();
	var arrUrl = str.split("&");
	for(var i=0; i<arrUrl.length; i++){
		var tmpVal = arrUrl[i].split("=");
		if(tmpVal[0] == "app"){
			switch(tmpVal[1]){
				case "mypage":
					openMypageLayer(str);
					break;
				case "customer":
					openCustomerLayer(str);
					break;
				case "login":
					openLoginLayer(str);
					break;
				case "shop":
					openShopLayer(str);
					break;
			}
		}
	}
}

function getHash() {
   var idx = document.location.href.indexOf('#');
   var idxFlex =decodeURI(document.location.href.substr(idx+1));
	if (idx < 0){
		return decodeURI(document.location.href.substr(idx+1))
	}else {
		return decodeURI(document.location.href.substr(idx+1));
	}
}

function openLoginLayer(flval){
	login('reload');
}

function openMypageLayer(flval){
	mypage('main');
}

function mypage(url){
	if(url == 'main'){
		location.href = "/mypage/mypageMain.jsp";
	}else{
		location.href = url;
	}
}

function openCustomerLayer(flval){
	callCenter('main');
}

function callCenter(url){
	if(url == 'main'){
		location.href = "/call_center/noticeList.jsp";
	}else{
		location.href = url;
	}
}

function SetCookie(cookieName,cookieValue,nDays) {
	 var today = new Date();
	 var expire = new Date();
	 var varUrl = ".qua.co.kr";
	 if (nDays==null || nDays==0) nDays=1;
	 expire.setTime(today.getTime() + 3600000*24*nDays);
	 document.cookie = cookieName+"="+escape(cookieValue)
					  + ";domain="+escape(varUrl)
					  + ";path=/";
					 // + ";expires="+expire.toGMTString();

}

function deleteCookie( cookieName )
{

  var expireDate = new Date();

  //¾îÁ¦ ³¯Â¥¸¦ ÄíÅ° ¼Ò¸ê ³¯Â¥·Î ¼³Á¤ÇÑ´Ù.
  		 var varUrl = ".qua.co.kr";
  expireDate.setDate( expireDate.getDate() - 1 );
  document.cookie = cookieName + "= " + "; expires=" + expireDate.toGMTString() + ";domain="+escape(varUrl)+ ";path=/";
}


//ÀÌ¹Ì ¹ß¼ÛµÈ ¸ÞÀÏµî¿¡ µû¶ó ´çºÐ°£ ½ÇÇàÇØÁØ´Ù .¾ø¾Ù ¿¹Á¤ÀÓ

getFirstApp();

/* -------------flex »èÁ¦·Î ÀÎÇÑ  Ãß°¡ ³¡----------  */

/* ------------- 2011 imc ¼îÇÇ¸ô ÇÃÁ§°ü·Ã ½ÃÀÛ ----------  */

function createForm(nm,mt,at,tg) {
	var f=document.createElement("form");
	f.name=nm;
	f.method=mt;
	f.action=at;
	f.target=tg;
	return f;
}
function genDomInput(elemName, elemValue){
    var input = document.createElement("input");
    input.setAttribute("type", "hidden");
    input.setAttribute("name", elemName);
    input.setAttribute("value", elemValue);
    return input;
}


function noMemberOrder(){
	var $this = $(this);
	var $targetLayer =  $($this.attr('notMemberLayer'));
	var viewportHeight = (document.documentElement) ? document.documentElement.clientHeight : document.body.clientHeight;
	var viewportScroll = $(window).scrollTop();
	var setMarginLeft = $targetLayer.width() / 2;
	var setMarginTop = ((viewportHeight - $targetLayer.height()) > 0 ) ? (viewportHeight - $targetLayer.height()) / 2 + viewportScroll : 0;
	$targetLayer.appendTo('body').css({'position':'absolute','top':0,'left':'50%','margin-left':'-'+setMarginLeft+'px','margin-top':setMarginTop+'px','z-index':'100'}).show();
	return;
}

function agreeCheck()	{
	var frm = document.agreeCheck;
    frm.agree_value.value = getRadioValue(frm.agree);
    if(frm.agree_value.value == '1'){
    	alert("µ¿ÀÇÇÏ¼Å¾ß ºñÈ¸¿ø ÁÖ¹®ÀÌ ÁøÇàµË´Ï´Ù.");
    }else{
		doOrderNomember();
    }
}


function getRadioValue( field)	{
  for(i =0 ;i <field.length;i++){

    if(field[i].checked == true){
      return field[i].value;
    }
   }
}

/* -------------2011 imc ¼îÇÇ¸ô ÇÃÁ§°ü·Ã ³¡----------  */
addLoadEvent(ImgResize_myODL);





//¿ÞÂÊ¸Þ´º ÆäÀÌ½ººÏ
function showFacebook (obj) {
	var url = window.location.href,
		page = ['http://kolonsport.com/basecamp/outdoorlog/course_review/outdoorLogList.jsp',
		'http://www.kolonsport.com/basecamp/outdoorlog/my_log/outdoorLogMyCourse.jsp',
		'http://www.kolonsport.com/basecamp/outdoorlog/community/communityList.jsp',
		'http://www.kolonsport.com/basecamp/routedevelop/courseepilogue/rd_ce_list.jsp',
		'http://www.kolonsport.com/basecamp/routedevelop/relayrunner/rd_rr_list.jsp',
		'http://www.kolonsport.com/basecamp/routedevelop/community/rd_cm_list.jsp',
		'http://www.kolonsport.com/basecamp/infosquare/infosquare_list.jsp',
		'http://www.kolonsport.com/basecamp/infosquare/infosquare_list.jsp?category_seq=2',
		'http://www.kolonsport.com/basecamp/infosquare/infosquare_list.jsp?category_seq=3',
		'http://www.kolonsport.com/basecamp/infosquare/infosquare_list.jsp?category_seq=4',
		'http://www.kolonsport.com/basecamp/infosquare/3namgil.jsp',
		'http://www.kolonsport.com/basecamp/photo_tracking/photocourse/pt_pc_list.jsp',
		'http://www.kolonsport.com/basecamp/photo_tracking/apply/applyList.jsp',
		'http://www.kolonsport.com/basecamp/photo_tracking/community/communityList.jsp',
		'http://www.kolonsport.com/basecamp/ecocamp/afterboard/ec_after_list.jsp'],
		i, len = page.length,
		cont = '<div style="padding-bottom:50px"><iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fkolonsport%2F132678626771815&amp;width=178&amp;colorscheme=light&amp;show_faces=true&amp;stream=true&amp;header=true&amp;height=350" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:178px; height:350px; background-color:#fff;" allowtransparency="true"></iframe></div>';
	
	for (i = 0; i < len; i += 1) {
		if (page[i] === url) {
			document.getElementById(obj).innerHTML = cont;
			return;
		}
	}
}
