// ¿ëÆòÅ¸ÀÌÆ²
top.document.title = 'Mountaintop Paradise, YongPyong!';

// Common JS
function slopePOP(){
//window.open(yongpyong_domain+'/ski/pop_slope.asp','slopePOP','width=790,height=570,top=150,left=130,scrollbars=no')
window.open(yongpyong_domain+'/now/pop_slope.asp','slopePOP','width=790,height=570,top=150,left=130,scrollbars=no')
}
function webcamPOP(){
window.open( yongpyong_domain+'/now/pop_webcam.asp','webcamPOP','width=790,height=570,top=150,left=130,scrollbars=no')
}
function slopemovPOP(){
window.open( yongpyong_domain+'/images/swf/pop_slope.htm','slopemovPOP','width=790,height=570,top=150,left=130,scrollbars=no')
}
function slopePOP_eng(){
window.open(yongpyong_domain+'/eng/pop_slope.asp','slopePOP','width=790,height=570,top=150,left=130,scrollbars=no')
}
function webcamPOP_eng(){
window.open(yongpyong_domain+'/eng/pop_webcam.asp','webcamPOP','width=790,height=570,top=150,left=130,scrollbars=no')
}
function map(){
window.open(yongpyong_domain+'/popup/pop_map.html','map','width=530,height=607,top=150,left=130,scrollbars=no')
}
function near(){
window.open(yongpyong_domain+'/popup/pop_near.html','map','width=530,height=545,top=150,left=130,scrollbars=no')
}
function re_map(){
window.open(yongpyong_domain+'/popup/pop_resortmap.html','map','width=637,height=567,top=150,left=130,scrollbars=no')
}
function re_map_eng(){
window.open(yongpyong_domain+'/popup/pop_resortmap_eng.html','map_E','width=600,height=475,top=150,left=130,scrollbars=no')
}
function email(){
window.open(yongpyong_domain+'/popup/pop_email.html','map','width=400,height=200,top=150,left=130,scrollbars=no')
}


function news_pop(pop_url, w, h, l, t, s){ //°øÁö °øÅëÆË¾÷
		window.open(pop_url,'newwin','width='+w+',height='+h+',left='+l+',top='+t+',scrollbars='+s+'')
		//newwin.focus();

}


function news_pop1(pop_url, w, h, l, t, s){ //°øÁö °øÅëÆË¾÷
		window.open(pop_url,'newwin','width='+w+',height='+h+',left='+l+',top='+t+',scrollbars='+s+'')
		//newwin.focus();

}


//½ºÅ°¶ôÅÍ
function ski_r()
{
		//alert("¼±Âø¼ø ÆÇ¸Å´Â \n10¿ù15ÀÏ ¿ÀÀü10½ÃºÎÅÍ ÀÔ´Ï´Ù.");
		location.replace('http://yongpyong.co.kr/customer/skylock_ticket01.asp')
}


function alertPOP()
{
	alert("ÇöÀç ÁØºñÁß ÀÔ´Ï´Ù.");

}

//¾ß±¸
function send20071012()
{
		//alert("¼±Âø¼ø ÆÇ¸Å´Â \n10¿ù15ÀÏ ¿ÀÀü10½ÃºÎÅÍ ÀÔ´Ï´Ù.");
		 window.open('http://yongpyong.co.kr/info/news/08_keb.htm','','width=520,height=630,scrollbars=yes,top=0, left=500')
}

 	function gogoevent(){ 	window.open('http://www.yongpyong.co.kr/customer/testlink.asp','','width=400,height=250,scrollbars=yes,top=0, left=0'); }
 	//function gogomypage(){ 	window.open('http://www.yongpyong.co.kr/customer/testlink2.asp','','width=400,height=250,scrollbars=yes,top=0, left=0'); }
 	function gogobus(){ 	window.open('http://www.yongpyong.co.kr/customer/testlink3.asp','','width=400,height=250,scrollbars=yes,top=0, left=0'); }
 	function gogoucc(){ 	window.open('http://www.yongpyong.co.kr/customer/testlink4.asp','','width=400,height=250,scrollbars=yes,top=0, left=0'); }
 	function gogomypage(){ 	alert("ÀÌº¥Æ®°¡ Á¾·áµÇ¾ú½À´Ï´Ù."); }
	function gologon() 	{ 	alert("·Î±×ÀÎÇÏ¿© ÁÖ½Ê½Ã¿À."); 	window.open('https://online.yongpyong.co.kr/popup/pop_login.asp?next_url=http://www.yongpyong.co.kr/now/notice_view.asp?idx=539','','width=400,height=250,scrollbars=yes,top=0, left=0'); }
	function gokeb() 	{ 	alert("ÀÌº¥Æ® ÆäÀÌÁö·Î ÀÌµ¿ÇÕ´Ï´Ù."); 		window.open('http://www.keb.co.kr/IBS/goContents.jsp?contentsURL=/IBS/cc/event/event/cc_event_direct.jsp?vcode=05000000000000%26scode=05080200000000%26eventID=4043') 	}

//³ë¼±
function bus()
{
		location.replace('http://www.yongpyong.co.kr/customer/traffic01.asp')
}

//µå·¡°ïÆÄÅ©
function dragon_1()
{
		 window.open('http://yongpyong.co.kr/info/news/dragon_park_1.html','','width=800,height=770,scrollbars=yes,top=0, left=500')
}
//µå·¡°ïÆÄÅ©
function dragon_2()
{
		 window.open('http://yongpyong.co.kr/info/news/dragon_park_2.html','','width=800,height=1400,scrollbars=yes,top=0, left=500')
}
//µå·¡°ïÆÄÅ©
function dragon_3()
{
		 window.open('http://yongpyong.co.kr/info/news/dragon_park_3.html','','width=800,height=601,scrollbars=yes,top=0, left=500')
}

//¼­¸é¿¹¾à
function sm1()
{
		//alert("°´½Ç¼­¸é ¿¹¾à ½ÅÃ»Àº \n10¿ù16ÀÏ ¿ÀÀü 10½ÃºÎÅÍ ÀÔ´Ï´Ù.");
//		alert("¼º¼ö±â ÃßÃ·¿¹¾àÁ¢¼ö´Â \n5¿ù14ÀÏºÎÅÍ ÀÔ´Ï´Ù.");
	window.open('https://online.yongpyong.co.kr/popup/reservation_regist_08bea.asp','','width=520,height=600,left=10,top=0,scrollbars=yes')

		//location.replace('http://yongpyong.co.kr/customer/season_ticket01.asp')
}


//¼­¸é¿¹¾à
function sm2()
{
		//alert("°´½Ç¼­¸é ¿¹¾à ½ÅÃ»Àº \n10¿ù16ÀÏ ¿ÀÀü 10½ÃºÎÅÍ ÀÔ´Ï´Ù.");
//		alert("¼º¼ö±â ÃßÃ·¿¹¾àÁ¢¼ö´Â \n5¿ù14ÀÏºÎÅÍ ÀÔ´Ï´Ù.");
		window.open('https://online.yongpyong.co.kr/popup/reservation_sm_choice_08bea.asp','','width=520,height=600,left=10,top=0,scrollbars=yes')
		//location.replace('http://yongpyong.co.kr/customer/season_ticket01.asp')
}


//¼­¸é¿¹¾à
function sm3()
{
	//alert("¼º¼ö±â ÃßÃ·¿¹¾àÁ¢¼ö´Â \n5¿ù21ÀÏºÎÅÍ ÀÔ´Ï´Ù.");
//alert("¼º¼ö±â ÃßÃ·¿¹¾àÁ¢¼ö´Â \n¼±Âø¼ø Á¢¼ö°¡ ¾Æ´Õ´Ï´Ù.\nÇöÀç Á¢¼ÓÀÎ¿ø ÃÊ°ú·Î Á¢¼Ó¿¡ Á¦ÇÑÀÌ ÀÖ½À´Ï´Ù.");
	 window.open('https://online.yongpyong.co.kr/popup/reservation_regist_08con.asp','','width=520,height=600,left=10,top=0,scrollbars=yes')

		//location.replace('http://yongpyong.co.kr/customer/season_ticket01.asp')
}


//¼­¸é¿¹¾à
function sm4()
{
	//alert("¼º¼ö±â ÃßÃ·¿¹¾àÁ¢¼ö´Â \n5¿ù21ÀÏºÎÅÍ ÀÔ´Ï´Ù.");
		//alert("¼º¼ö±â ÃßÃ·¿¹¾àÁ¢¼ö´Â \n¼±Âø¼ø Á¢¼ö°¡ ¾Æ´Õ´Ï´Ù.\nÇöÀç Á¢¼ÓÀÎ¿ø ÃÊ°ú·Î Á¢¼Ó¿¡ Á¦ÇÑÀÌ ÀÖ½À´Ï´Ù.");
		window.open('https://online.yongpyong.co.kr/popup/reservation_sm_choice_08con.asp','','width=520,height=600,left=10,top=0,scrollbars=yes')
		//location.replace('http://yongpyong.co.kr/customer/season_ticket01.asp')
}



//08 º»ÆÇ¸Å ½ÃÁð±Ç ±¸¸ÅÇÏ±â
function sendy08season()
{
//		alert("2Â÷º»ÆÇ¸Å Àü±îÁö \n°´½Ç È¸¿ø´Ô¸¸ ±¸¸Å °¡´ÉÇÕ´Ï´Ù.");
//		alert("ÇöÀç °´½ÇÈ¸¿ø¸¸ ÆÇ¸ÅÁßÀÔ´Ï´Ù. \n»çÀÌ¹öÈ¸¿øÀº 10¿ù12ÀÏºÎÅÍ\nÆÇ¸ÅµÉ ¿¹Á¤ÀÔ´Ï´Ù.");

		alert("ÇöÀç Thanks ½ÃÁð±Ç ÆÇ¸ÅÁßÀÔ´Ï´Ù.");
		location.replace('http://yongpyong.co.kr/customer/season_ticket01.asp')
}

//08 º»ÆÇ¸Å ¹ö½º³ë¼± ±¸¸ÅÇÏ±â
function sendy08bus()
{
		 window.open('http://yongpyong.co.kr/info/news/08_season_bus.htm','','width=520,height=630,scrollbars=yes,top=0, left=500')
}

//08 º»ÆÇ¸Å FAQ
function sendy08faq()
{
		 window.open('http://yongpyong.co.kr/info/news/08_season_faqq.htm','','width=520,height=630,scrollbars=yes,top=0, left=500')
}


//08 º»ÆÇ¸Å FAQ
function sendy08faq2()
{
		 window.open('http://yongpyong.co.kr/popup/sea_faq_2.html','','width=520,height=630,scrollbars=yes,top=0, left=500')
}

//08 º»ÆÇ¸Å PIC
function sendy08pic()
{
		location.replace('http://yongpyong.co.kr/customer/receipt_con.asp')
}



//½ÃÁð±Ç ÆË¾÷Ã¢
function sendit3()
{
		alert("Æ¯°¡ÆÇ¸Å ÀÌº¥Æ®°¡ \n ¸¶°¨µÇ¾ú½À´Ï´Ù");
		// window.open('http://yongpyong.co.kr/customer/season_popstep01.asp','','width=650,height=630,scrollbars=yes,top=0, left=0')
}

//½ÃÁð±Ç ÆË¾÷Ã¢
function sendit4()
{
		window.open('http://yongpyong.co.kr/customer/receipt_pop_con.asp','','width=650,height=630,scrollbars=yes,top=0, left=0')
}

//½ÃÁð±Ç ÆË¾÷Ã¢
function sendit5()
{
		window.open('http://www.yongpyong.co.kr/customer/cash_pop_con.asp','','width=442,height=320,scrollbars=yes,top=0, left=0')
}

//°¡À»¾ÖÇÁ·ÎÆ÷ÁîÀÌº¥Æ®
function sendit0903()
{
		window.open('http://www.yongpyong.co.kr/customer/autumn_propose/event_autumn_propose.asp','','width=442,height=340,scrollbars=yes,top=0, left=0')
}



//²Ã·Òºñ¾Æ
function sendit080204()
{
		window.open('http://www.yongpyong.co.kr/customer/autumn_propose/testevent_columbia.asp','','width=410,height=300,scrollbars=no,top=0, left=0')
}



/*¿ùµåÄÅÀÌº¥Æ® ÆË¾÷ ÁßÁö ¾Ë·¯Æ®Ã¢*/
function w_event(){ //°øÁö °øÅëÆË¾÷
		alert("ÀÀ¸ð±â°£ÀÌ ³¡³µ½À´Ï´Ù");
		//newwin.focus();

}
/*¿ùµåÄÅÀÌº¥Æ® ÆË¾÷ ÁßÁö ¾Ë·¯Æ®Ã¢*/
function season(){ //°øÁö °øÅëÆË¾÷
		alert("9¿ù14ÀÏ ¿ÀÀü11½Ã°æºÎÅÍ ±¸ÀÔÇÏ½Ç¼ö ÀÖ½À´Ï´Ù");
		//newwin.focus();

}


/*¿ùµåÄÅÀÌº¥Æ® ÆË¾÷ ÁßÁö ¾Ë·¯Æ®Ã¢*/
function yeyak(){ //°øÁö °øÅëÆË¾÷
		alert("½ÅÃ»Àº 5¿ù23ÀÏ(¼ö)ºÎÅÍ ÀÔ´Ï´Ù");
		//newwin.focus();

}

/*Ã¤¿ë°ø°í*/
function wonsue(){ //°øÁö °øÅëÆË¾÷
		alert("¿ø¼­Á¢¼ö´Â 6¿ù25ÀÏºÎÅÍ ÀÔ´Ï´Ù");
		//newwin.focus();

}


/*ÀÎÅÏ»ç¿ø¸ðÁý*/
function inten(){ //°øÁö °øÅëÆË¾÷
		alert("ÁË¼ÛÇÕ´Ï´Ù\n¸ðÁýÀº 7¿ù25ÀÏ·Î ¸¶°¨µÇ¾ú½À´Ï´Ù");
		//newwin.focus();

}


/*ÀÎÅÏ»ç¿ø¸ðÁý*/
function inten1(){ //°øÁö °øÅëÆË¾÷
		alert("2007³â 8¿ù 27ÀÏ(¿ù) \n10:00ºÎÅÍ ÆÇ¸ÅÇÕ´Ï´Ù");
		//newwin.focus();

}


function weddPOP(){ //³¯¾¾Á¤º¸
		window.open('http://hosts.weatheri.co.kr/yongpyong/report.php','wp','width=646,height=500,top=150,left=130,scrollbars=yes')
}

function weddPOP(){ //³¯¾¾Á¤º¸
		window.open('http://hosts.weatheri.co.kr/yongpyong/report.php','wp','width=646,height=500,top=150,left=130,scrollbars=yes')
}
function broPOP(){ //¸ÞÀÌÆä½ºÆ¼¹ß ºê·Î¼Å
		window.open('may1.htm','may','left=0, top=0, width=415, height=695, scrollbars=yes')
}
function rainbow_world(){ //·¹ÀÎº¸¿ì ¿ùµå
		window.open('http://www.yongpyong.co.kr/rainbow_world/rainbow_world.htm','','width=800,height=670,left=0,top=0,scrollbars=no')
}
function package_parade(){ //ÆÐÅ°Áö ÆÛ·¹ÀÌµå
		window.open('http://www.yongpyong.co.kr/package_parade/package.htm','','width=800,height=670,left=0,top=0,scrollbars=no')
}
function music_festival(){ //´ë°ü·É ±¹Á¦ À½¾ÇÁ¦
		window.open('http://www.yongpyong.co.kr/music_festival/music.htm','','width=800,height=670,left=0,top=0,scrollbars=no')
}
function reservation_formmail(){ //¼­¸é¿¹¾à
		alert("Á¢¼ö´Â 5¿ù14ÀÏºÎÅÍ ÀÔ´Ï´Ù.");
//		window.open('https://online.yongpyong.co.kr/popup/reservation_regist.asp','','width=520,height=600,left=10,top=0,scrollbars=yes')
}
function reservation_formmail1(){ //¼­¸é¿¹¾à
		alert("Á¢¼ö´Â 5¿ù14ÀÏºÎÅÍ ÀÔ´Ï´Ù.");
//		window.open('https://online.yongpyong.co.kr/popup/reservation_sm_choice.asp','','width=520,height=600,left=10,top=0,scrollbars=yes')
}

function Mobile_zone(){ //¸ð¹ÙÀÏÁ¸
		window.open('http://210.109.96.163/Myp/sms/popup_mobile.asp','','width=630,height=600,left=10,top=0,scrollbars=yes')
}
function Locker_01(){ //¶óÄ¿01
		window.open('http://www.yongpyong.co.kr/popup/locker_pic01.htm','','width=400,height=630,left=10,top=0,scrollbars=no')
}
function Locker_02(){ //¶óÄ¿02
		window.open('http://www.yongpyong.co.kr/popup/locker_pic02.htm','','width=400,height=630,left=10,top=0,scrollbars=no')
}
function Locker_03(){ //¶óÄ¿03
		window.open('http://www.yongpyong.co.kr/popup/locker_pic03.htm','','width=400,height=630,left=10,top=0,scrollbars=no')
}
function ski_locker_pop(){ //½ºÅ°¶ôÄ¿ ½ÅÃ» ÆË¾÷
		//window.open('http://www.yongpyong.co.kr/info/event/locker_pop.asp','','width=495,height=725,left=10,top=0,scrollbars=no')
		alert('½ºÅ°¶ôÄ¿ ½ÅÃ»Àº ¸¶°¨µÇ¾ú½À´Ï´Ù!');
}
function cheep_locker_pop(){ //ÁßÀú°¡º¸°ü¼Ò ½ÅÃ» ÆË¾÷
		//window.open('http://www.yongpyong.co.kr/info/event/cheep_container_pop.asp','','width=495,height=705,left=10,top=0,scrollbars=no')
}
function season_insurance_pop(){ //½ÃÁðº¸Çè
		window.open('http://www.yongpyong.co.kr/info/news/season_insurance_pop.htm','','width=700,height=600,left=10,top=0,scrollbars=yes')
}
function reports_insurance_pop(){ //·¹Æ÷Ã÷º¸Çè
		window.open('http://www.yongpyong.co.kr/info/news/reports_insurance_pop.htm','','width=700,height=600,left=10,top=0,scrollbars=yes')
}
function agreement_insurance_pop(){ //¾à°ü
		window.open('http://www.yongpyong.co.kr/info/news/agreement_insurance_pop.htm','','width=700,height=600,left=10,top=0,scrollbars=yes')
}
function onlineBro() { // rainbow Online Bro
window.open('http://pdf.segye.com/ipq/YPL_main.asp','onlineBro','width=1014,height=748,top=150,left=130,scrollbars=no')
}
function ticket_state_pop() { // ½ÃÁð±Ç ¹ß±Þ È®ÀÎ
window.open('http://www.yongpyong.co.kr/customer/season_ticket_state_01.asp','','width=600,height=250,left=10,top=0,scrollbars=no')
}
function bott_m(){ // ¸®Á¶Æ®¸ÞÀÎ 'Âþ¾Æ¿À½Ã´Â ±æ'
	map();
	location.href = "/customer/traffic02.asp";
	}
//
function VirtualTour_Open_winter(){		
	var openWidth 	= window.screen.width;
	var openHeight 	= window.screen.height;
	window.open('http://www.yongpyong.co.kr/VT_Winter/winter/stage.html','',"'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width="+openWidth+",height="+openHeight+"'");	
}
function VirtualTour_Open(){		
	var openWidth 	= window.screen.width;
	var openHeight 	= window.screen.height;
	//°¡À»
	//window.open('http://www.yongpyong.co.kr/VT_Green/index.html','',"'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width="+openWidth+",height="+openHeight+"'");	
	//°Ü¿ï
	window.open('http://www.yongpyong.co.kr/VT_Winter/winter/stage.html','',"'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width="+openWidth+",height="+openHeight+"'");	

}
// Æ¯º°ÇÒÀÎÇà»ç ÄíÆù Ãâ·Â
function couponView_diff(idx){
	window.target = "_blank";
	window.open('/customer/pop_coupon_diff.asp?idx='+idx,'popupFront','width=600,height=500,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes');
}
// ½ºÅ°Ä·ÇÁ ½ÅÃ»/È®ÀÎ
function camp_l(idx){
	window.target = "_blank";
	window.open('/popup/camp_'+idx+'.asp','popupCamp','width=450,height=580,scrollbars=Auto,toolbar=no,location=no,status=no,menubar=no,resizable=no');
}

// ½ºÅ°°­½À ¿¹¾à

function study_l(idx){
	window.target = "_blank";
	window.open('/popup/study_'+idx+'.asp','popupStudy','width=450,height=430,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no');
}



// ½Ã½Â¿¹¾à
function adven_l(idx){
	window.target = "_blank";
	window.open('/popup/adven_'+idx+'.asp','popupAdven','width=450,height=450,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no');
}


//Æä½ºÆ¼¹ú
function fest_l(idx){
	window.target = "_blank";
	window.open('/popup/fest_'+idx+'.asp','popupFest', 'width=450,height=470,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no');
}






//**************°øÅë ÁØºñÁß ¸Þ¼¼ÁöÃ¢
function alert_idx(){
	
	alert("ÁØºñÁßÀÔ´Ï´Ù");
}







function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// Guide
function guidePOP(){
pitX = window.screenLeft + 910 ; 

calSC = screen.width - 340 ;
if  ( calSC <= pitX ) { pitX = calSC ; }

pitY = window.screenTop + 110 ;

popStyle = "width=330,height=425,top="+pitY+",left="+pitX+",scrollbars=no"
	
window.open(yongpyong_domain+'/guide.asp','guidePOP',popStyle);
}
// Dynamic ¿ëÆò
function dynamicPOP(){
pitdX = window.screenLeft + 10; 
pitdY = window.screenTop + 10 ;
popSyl = "width=200,height=390,top="+pitdY+",left="+pitdX+",scrollbars=no"
	
window.open(yongpyong_domain+'/dynamic/dynamic.asp','dynamicPOP',popSyl);
}

// Äü¹Ù ¸µÅ©
function goQuick(val){
    if(val == "0"){
	     //document.location.href= yongpyong_domain + "/customer/season_ticket01.asp";
		 location.replace(online_domain +'/customer/reserve_room_01info.asp');
    }else if(val == "1"){
	     //document.location.href= online_domain + "/customer/reserve_room_01info.asp";
		 location.replace( yongpyong_domain +'/customer/package_list.asp');
    }else if(val == "2"){
	     //document.location.href= yongpyong_domain + "/customer/room_info01.asp";
		 //location.replace( yongpyong_domain +'/customer/coupon.asp');
		 location.replace( 'https://online.yongpyong.co.kr/mypage/coupon_ora.asp');
    }else if(val == "3"){
	     //document.location.href= yongpyong_domain + "/customer/room_info01.asp";
		 location.replace( yongpyong_domain +'/customer/reserve_golfmain.asp');
    }else if(val == "4"){
	     //document.location.href= yongpyong_domain + "/customer/room_info01.asp";
		 location.replace( yongpyong_domain +'/customer/condo_info01.asp');
    }else if(val == "5"){
	     //document.location.href= yongpyong_domain + "/customer/room_info01.asp";
		 location.replace( yongpyong_domain +'/customer/faq_list.asp');
    }else if(val == "6"){
	     //document.location.href= yongpyong_domain + "/customer/room_info01.asp";
		 location.replace( yongpyong_domain +'/channel/inlinebbs_list.asp');
   // }else if(val == "7"){
	     //document.location.href= yongpyong_domain + "/customer/room_info01.asp";
		 // location.replace( yongpyong_domain +'/now/acnews_list.asp');


    // }else if(val == "8"){
	     //document.location.href= yongpyong_domain + "/customer/room_info01.asp";
		 // location.replace( online_domain +'/channel/inlinebbs_list.asp');

   }

}


// SaySelect Environment Constants

var SS_ENV = new Object();
SS_ENV.IE_Version = new Number(((window.navigator.appVersion.split('; '))[1].split(' '))[1]);
SS_ENV.CR = new Object();
SS_ENV.CR.ReverseBackground = '#F6F6F6';
SS_ENV.CR.ReverseText = '000000';
SS_ENV.CR.Border = '#D6D6D6';
SS_ENV.CR.BorderActive = '#D6D6D6';
SS_ENV.ImgPrefix = '/images/eng/board/';
SS_ENV.DefaultHeight =18;
SS_ENV.ButtonWidth = 19;
SS_ENV.OptionsDivStyle = ''
  + ' display:none;'
  + ' z-index:10;'
  + ' position:absolute;'
  + ' border:1 solid '+ SS_ENV.CR.Border+';'
  + ' background-color:#ffffff;'
  + ' scrollbar-face-color:#ffffff;'
  + ' scrollbar-shadow-color:#ffffff;'
  + ' scrollbar-highlight-color:#F6F5F4;'
  + ' scrollbar-3dlight-color:#ffffff;'
  + ' scrollbar-darkshadow-color:#86837E;'
  + ' scrollbar-track-color:#F6F5F4;'
  + ' scrollbar-arrow-color:#86837E;';
SS_ENV.MouseStyle = 'cursor:hand;'//¹Ú½ºÀ§¿¡¿Ã¶ó°¬À»¶§ÀÇ ¸¶¿ì½º¸ð¾ç
SS_ENV.OptionNobrStyle = ''
  + ' font-size:8pt; color:#888888;'
  + ' font-family:µ¸¿ò;';
// SaySelect Variables
var SS_VAR = new Object();
SS_VAR.DivDummy = document.createElement("DIV");
SS_VAR.SelectList = new Array();
SS_VAR.bEventAttached = false;

var SS_CreatedElements = new Object();

function unloadObjects()
{
  try {
    if (SS_VAR && SS_VAR.SelectList)
    {
      for (key in SS_VAR.SelectList)
      {
		if (SS_VAR.SelectList[key])
		{
		  try {
		   SS_VAR.SelectList[key].select.setAttribute('SS', 0);
		  } catch (e) {};
		  delete SS_VAR.SelectList[key];
		}
      }
    }
  } catch (e) {};
}

attachEvent("onunload", unloadObjects);

function SS_create (srcHTML, ListMax, bAutoDetect)
{
  // property
  this.ssID = SS_VAR.SelectList.length;
  this.bOriginalSelect = (bAutoDetect && SS_ENV.IE_Version < 5.5);
  this.select = SS_createElement(srcHTML);
  this.selectedIndex = this.select.selectedIndex;
  this.options = this.select.options;
  this.width = parseInt(this.select.style.width);
  this.height = (this.select.style.height) ? parseInt(this.select.style.height) : SS_ENV.DefaultHeight;
  this.OptionHeight = this.height ;
  this.bListDown = (ListMax && '-'==ListMax.toString().substr(0, 1)) ? false : true;
  this.ListMax = (!isNaN(parseInt(ListMax))) ? Math.abs(ListMax) : 100;

  this.Table;
  this.TitleDiv;
  this.TitleTable;
  this.TitleWrapper;
  this.OptionsDiv;
  this.OptionsWrapper;
  this.OptionsTable;
  this.bFocused = false;
  this.bExpanded = false;
  this.bReverse = false;

  // private method
  this.isThisEventToBeCanceled = SS_isThisEventToBeCanceled;
  this.toggleTitle = SS_toggleTitle;
  this.syncSelectedIndex = SS_syncSelectedIndex;
  this.toggleOptions = SS_toggleOptions;
  this.turnOnOption = SS_turnOnOption;
  this.turnOffOption = SS_turnOffOption;
  this.handleMousewheel = SS_handleMousewheel;
  this.handleOverTitle = SS_handleOverTitle;
  this.handleOutTitle = SS_handleOutTitle;
  this.handleOverOption = SS_handleOverOption;
  this.createTable = SS_createTable;
  this.createTitleDiv = SS_createTitleDiv;
  this.createOptionsDiv = SS_createOptionsDiv;
  this.createOptionTr = SS_createOptionTr;
  this.adjustOptionsDiv = SS_adjustOptionsDiv;
  this.syncOptions = SS_syncOptions;
  this.pressOption = SS_pressOption;
  this.moveOption = SS_moveOption;
  this.releaseOption = SS_releaseOption;
  this.pressTitle = SS_pressTitle;
  this.releaseTitle = SS_releaseTitle;

  // public method
  this.display = SS_display;
  this.insertOption = SS_insertOption;
  this.deleteOption = SS_deleteOption;
  this.changeOption = SS_changeOption;

  // initiate
  this.createTable();
  this.select.setAttribute('SS', this);
  if (!this.bOriginalSelect)
    this.select.onpropertychange = SS_handlePropertychange;
  SS_VAR.SelectList[this.ssID] = this;
}
function SS_display ()
{
  document.write("<div id=SS_TempDiv></div>\n");
  document.all.SS_TempDiv.appendChild(this.Table);
  document.all.SS_TempDiv.removeNode();
}
function SS_write (srcHTML, ListMax, bAutoDetect)
{
  var oSS = new SS_create(srcHTML, ListMax, bAutoDetect);
  oSS.display();
  return oSS;
}
function SS_insertOption (value, innerText, idx)
{
  var NewOption = document.createElement("OPTION");
  SS_CreatedElements[SS_CreatedElements.length] = NewOption;
  this.options.add(NewOption, idx);
  NewOption.innerText = innerText;
  NewOption.value = value;

  if (!this.bOriginalSelect)
    this.createOptionTr(idx);
  this.syncOptions();
  this.adjustOptionsDiv();
  this.syncSelectedIndex();
}
function SS_deleteOption (idx)
{
  this.options.remove(idx);
  if (!this.bOriginalSelect)
    this.OptionsTable.deleteRow(idx);
  this.syncOptions();
  this.adjustOptionsDiv();
  this.syncSelectedIndex();
}
function SS_changeOption (idx, value, innerText)
{
  this.options[idx].value = value;
  this.options[idx].innerText = innerText;
  this.syncOptions();
  this.syncSelectedIndex();
}

function SS_insertOption1 (obj, value, innerText, idx)
{
  var NewOption = document.createElement("OPTION");
  SS_CreatedElements[SS_CreatedElements.length] = NewOption;
  obj.options.add(NewOption, idx);
  NewOption.innerText = innerText;
  NewOption.value = value;

  if (!obj.bOriginalSelect)
    obj.createOptionTr(idx);

  obj.syncOptions();
  obj.adjustOptionsDiv();
  obj.syncSelectedIndex();
}


function SS_changeOption1 (obj, idx, value, innerText)
{
  obj.options[idx].value = value;
  obj.options[idx].innerText = innerText;
  obj.syncOptions();
  obj.syncSelectedIndex();
}

function SS_deleteOption1 (obj, idx)
{
  obj.options.remove(idx);
  if (!obj.bOriginalSelect)
    obj.OptionsTable.deleteRow(idx);
  obj.syncOptions();
  obj.adjustOptionsDiv();
  obj.syncSelectedIndex();
}


function SS_cancelEvent (event)
{
  event.cancelBubble = true;
  event.returnValue = false;
}
function SS_isThisEventToBeCanceled (event)
{
  if ('object' == typeof(event)) {
    switch (event.type) {
      case 'mousedown':
        if (!(event.button & 1)) return true;
        break;
      case 'mouseup':
        if (!(event.button & 1)) return true;
        if (SS_ENV.IE_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null) {
          this.srcElementOfLastMousedown = null;
          return true;
        }
        break;
      case 'mouseout':
        if (!(SS_ENV.IE_Version < 5.5 && event.srcElement == this.srcElementOfLastMousedown))
          return true;
        break;
      case 'mousemove':
        if (SS_ENV.IE_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null)
          return true;
        break;
    }
  }
  return false;
}
function SS_createElement (html)
{
  SS_VAR.DivDummy.insertAdjacentHTML('afterBegin', html);
  var oEl = SS_VAR.DivDummy.children(0);
  while (SS_VAR.DivDummy.children.length > 0) {
    SS_VAR.DivDummy.removeChild(SS_VAR.DivDummy.children(0));
  }
  return oEl;
}
function SS_blurExcept (except)
{
  SS_cancelEvent(window.event);

  except = ('number'==typeof(except)) ? except : -1;

  var bHasToDetachEvent = true;
  for (var i=0; i < SS_VAR.SelectList.length; i++) {
    if (-1==except && SS_VAR.SelectList[i].bFocused && SS_VAR.SelectList[i].bExpanded) {
      SS_VAR.SelectList[i].toggleOptions(false, true);
      SS_VAR.SelectList[i].toggleTitle(true);
      bHasToDetachEvent = false;
    }
    else if (i!=except) {
      if (SS_VAR.SelectList[i].bExpanded)
        SS_VAR.SelectList[i].toggleOptions(false, true);
      if (SS_VAR.SelectList[i].bReverse)
        SS_VAR.SelectList[i].toggleTitle(false);
      SS_VAR.SelectList[i].bFocused = false;
    }
  }

  if (SS_VAR.bEventAttached && bHasToDetachEvent) {
    document.detachEvent('onmousedown', SS_blurExcept);
    document.detachEvent('ondblclick', SS_blurExcept);
    SS_VAR.bEventAttached = false;
  }
}
function SS_syncSelectedIndex ()
{
  this.selectedIndex = this.select.selectedIndex;

  if (this.bOriginalSelect) return;

  if (this.TitleTable.cells(0).childNodes(0).innerText != this.options[this.selectedIndex].innerText)
    this.TitleTable.cells(0).childNodes(0).innerText = this.options[this.selectedIndex].innerText;
  if (this.bExpanded)
    this.toggleOptions(false);
}
function SS_syncSelectedIndex1 (obj)
{
  obj.selectedIndex = obj.select.selectedIndex;

  if (obj.bOriginalSelect) return;

  if (obj.TitleTable.cells(0).childNodes(0).innerText != obj.options[obj.selectedIndex].innerText)
    obj.TitleTable.cells(0).childNodes(0).innerText = obj.options[obj.selectedIndex].innerText;
  if (obj.bExpanded)
    obj.toggleOptions(false);
}
function SS_toggleTitle (bReverse)
{
  this.bReverse = ('undefined'!=typeof(bReverse)) ? bReverse: (!this.bReverse);
  this.TitleTable.cells(0).style.backgroundColor = this.bReverse ? SS_ENV.CR.ReverseBackground : '';
  this.TitleTable.cells(0).style.color = this.bReverse ? SS_ENV.CR.ReverseText : '';
}
function SS_toggleOptions (bExpanded, bStrict)
{
  if (!bStrict && !this.bFocused) {
    SS_blurExcept(this.ssID);
  }
  this.bExpanded = ('undefined'!=typeof(bExpanded)) ? bExpanded: (!this.bExpanded);
  if (this.bExpanded) {
    this.adjustOptionsDiv();
    this.OptionsDiv.style.display = 'block';
    if (!bStrict) {
      this.toggleTitle(false);
      this.handleOverOption(this.selectedIndex);
    }
    this.handleOutTitle();
  }
  else {
    this.OptionsDiv.style.display = 'none';
    if (!bStrict) {
      this.toggleTitle(true);
    }
  }
  if (!bStrict) {
    this.bFocused = true;

    if (!SS_VAR.bEventAttached) {
      document.attachEvent('onmousedown', SS_blurExcept);
      document.attachEvent('ondblclick', SS_blurExcept);
      SS_VAR.bEventAttached = true;
    }
  }
}
function SS_handlePropertychange ()
{
  if ('propertychange'==window.event.type && 'selectedIndex'==window.event.propertyName) {
    var oSS = window.event.srcElement.SS;
    oSS.syncSelectedIndex();

    if (null != oSS.select.onchange)
      oSS.select.onchange();
  }
}
function SS_handleMousewheel (event)
{
  var idx = this.selectedIndex;
  if ('mousewheel'==event.type && this.bFocused && this.bReverse) {
    for (var i=0; i < event.wheelDelta; i += 120)
      idx--;
    for (var i=0; i > event.wheelDelta; i -= 120)
      idx++;
  }
  idx = Math.max(idx, 0);
  idx = Math.min(idx, this.options.length - 1);
  this.select.selectedIndex = idx;
}
function SS_handleOverTitle ()
{
  if (this.bExpanded)
    return;

  this.TitleTable.style.borderColor = SS_ENV.CR.BorderActive;
  this.TitleTable.cells(1).style.display = 'none';
  this.TitleTable.cells(2).style.display = 'block';
}
function SS_handleOutTitle ()
{
  this.TitleTable.style.borderColor = SS_ENV.CR.Border;
  this.TitleTable.cells(2).style.display = 'none';
  this.TitleTable.cells(1).style.display = 'block';
}
function SS_handleOverOption (idx)
{
  for (var i=0; i < this.options.length; i++) {
    if (i==idx)
      this.turnOnOption(i);
    else
      this.turnOffOption(i);
  }
}
function SS_turnOnOption (idx)
{
  this.OptionsTable.cells(idx).style.color = SS_ENV.CR.ReverseText;
  this.OptionsTable.cells(idx).style.backgroundColor = SS_ENV.CR.ReverseBackground;
}
function SS_turnOffOption (idx)
{
  this.OptionsTable.cells(idx).style.color = '';
  this.OptionsTable.cells(idx).style.backgroundColor = '';
}
function SS_adjustOptionsDiv ()
{
  if (this.bOriginalSelect) return;

  this.OptionsDiv.style.width = this.width;
  this.OptionsDiv.style.height = Math.min(this.options.length, this.ListMax) * this.OptionHeight ;
  this.OptionsWrapper.style.height = this.options.length * this.OptionHeight;
  this.OptionsDiv.style.overflowY = (this.options.length > this.ListMax) ? 'scroll' : '';

  var top = this.Table.offsetTop;
  var left = this.Table.offsetLeft;
  for (var El = this.Table.offsetParent; 'BODY'!=El.tagName && 'absolute'!=El.style.position && 'relative'!=El.style.position; El = El.offsetParent) {
    if ('TABLE' != El.tagName) {
      top += El.clientTop;
      left += El.clientLeft;
    }
    top += El.offsetTop;
    left += El.offsetLeft;
  }
  this.OptionsDiv.style.top = (this.bListDown) ? (top + this.height) : (top - parseInt(this.OptionsDiv.style.height));
  this.OptionsDiv.style.left = left;

  this.TitleWrapper.style.top = 0;
  this.TitleWrapper.style.left = 0;
}
function SS_syncOptions ()
{
  if (this.bOriginalSelect) return;

  for (var i=0; i < this.options.length; i++) {
    this.OptionsTable.cells(i).setAttribute('index', i);
    if (this.OptionsTable.cells(i).childNodes(0).innerText != this.options[i].innerText)
      this.OptionsTable.cells(i).childNodes(0).innerText = this.options[i].innerText;
  }
}
function SS_pressTitle (event)
{
  SS_cancelEvent(event);

  this.srcElementOfLastMousedown = event.srcElement;

  this.toggleOptions();
}
function SS_releaseTitle (event)
{
  SS_cancelEvent(event);

  if (this.isThisEventToBeCanceled(event)) return;

  this.srcElementOfLastMousedown = null;
}
function SS_pressOption (event)
{
  SS_cancelEvent(event);

  this.srcElementOfLastMousedown = event.srcElement;
}
function SS_moveOption (event)
{
  SS_cancelEvent(event);

  if (this.isThisEventToBeCanceled(event)) return;
  if (!(event.offsetX >= 0 && event.offsetX <= this.OptionsTable.offsetWidth)) return;

  this.handleOverOption(Math.floor(event.offsetY / this.OptionHeight));
}
function SS_releaseOption (event)
{
  SS_cancelEvent(event);

  if (this.isThisEventToBeCanceled(event)) return;

  this.srcElementOfLastMousedown = null;

  if (event.offsetX >= 0 && event.offsetX <= this.OptionsTable.offsetWidth) {
    this.toggleOptions(false);
    this.select.selectedIndex = Math.floor(event.offsetY / this.OptionHeight);
  }
}
function SS_createTable ()
{
  this.Table = SS_createElement(""
    + "<table border=0 cellpadding=0 cellspacing=0 style='table-layout:fixed; "+SS_ENV.MouseStyle+"'>"
    + "<tr><td></td></tr>"
    + "</table>"
  );
  if (!isNaN(this.width))
    this.Table.style.width = this.width;
  this.Table.style.height = this.height;

  if (!this.bOriginalSelect) {
    this.createTitleDiv();
    this.createOptionsDiv();
    this.Table.cells(0).appendChild(this.TitleDiv);
    this.Table.cells(0).appendChild(this.OptionsDiv);
  }
  else {
    this.Table.cells(0).appendChild(this.select);
  }
}
function SS_createTitleDiv ()
{
  this.TitleDiv = SS_createElement(""
    + "<div style='position:relative; top:0; left:0;'>"
    + "  <table border=0 cellpadding=0 cellspacing=0"
    + "    height="+this.height
    + "    bgcolor=#ffffff"
    + "    style='table-layout:fixed;padding:0 0 0 2; border:1 solid "+SS_ENV.CR.Border+";'"
    + "    onmouseover='SS_VAR.SelectList["+this.ssID+"].adjustOptionsDiv()'"
    + "  >"
    + "  <tr>"
    + "    <td><nobr style='text-oveflow:hidden;"+SS_ENV.OptionNobrStyle+"'></nobr></td>"
    + "    <td width="+SS_ENV.ButtonWidth+" align=center style='word-wrap:normal'></td>"
    + "    <td style='display:none' width="+SS_ENV.ButtonWidth+" align=center style='word-wrap:normal'></td>"
    + "    <td style='display:none'></td>"
    + "  </tr>"
    + "  </table>"
    + "</div>"
  );
  this.TitleTable = this.TitleDiv.childNodes(0);
  this.TitleTable.cells(0).childNodes(0).innerText = this.options[this.selectedIndex].innerText;
  this.TitleTable.cells(1).innerHTML = "<img src='/images/eng/board/sel_icon.gif' border=0 align=absmiddle>";
  this.TitleTable.cells(2).innerHTML = "<img src='/images/eng/board/sel_icon.gif' border=0 align=absmiddle>";
  this.TitleTable.cells(3).appendChild(this.select);
  this.TitleWrapper = document.createElement(""
    + "<img src='"+SS_ENV.ImgPrefix+"blank.gif'"
    + "  style='position:absolute; top:0; left:0; z-index:2; width:100%; height:"+this.height+";'"
    + "  onmouseover='SS_VAR.SelectList["+this.ssID+"].handleOverTitle()'"
    + "  onmouseout='SS_VAR.SelectList["+this.ssID+"].handleOutTitle(); SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event);'"
    + "  onmousedown='SS_VAR.SelectList["+this.ssID+"].pressTitle(window.event)'"
    + "  ondblclick='SS_VAR.SelectList["+this.ssID+"].pressTitle(window.event); SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event);'"
    + "  onmouseup='SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event)'"
    + "  onmousewheel='SS_VAR.SelectList["+this.ssID+"].handleMousewheel(window.event)'"
    + "  ondragstart='SS_cancelEvent(window.event)'"
    + ">"
  );
  SS_CreatedElements[SS_CreatedElements.length] = this.TitleWrapper;
  this.TitleDiv.appendChild(this.TitleWrapper);
}
function SS_createOptionsDiv ()
{
  this.OptionsDiv = SS_createElement(""
    + "<div style='"+SS_ENV.OptionsDivStyle+"'"
    + "  onscroll='SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)'"
    + "  onmousedown='SS_cancelEvent(window.event)'"
    + ">"
    + "  <table border=0 cellpadding=0 cellspacing=0 width=100% style='table-layout:fixed;padding:0 0 0 2;'>"
    + "  </table>"
    + "</div>"
  );
  this.OptionsTable = this.OptionsDiv.childNodes(0);
  for (var i=0; i < this.options.length; i++) {
    this.createOptionTr(i);
  }
  this.syncOptions();
  this.OptionsWrapper = document.createElement(""
	+ "<img src='"+SS_ENV.ImgPrefix+"blank.gif'"
    + "  style='position:absolute; top:0; left:0; width:100%;'"
    + "  onmousedown='SS_VAR.SelectList["+this.ssID+"].pressOption(window.event)'"
    + "  onmousemove='SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)'"
    + "  onmouseup='SS_VAR.SelectList["+this.ssID+"].releaseOption(window.event)'"
    + "  onmouseout='SS_VAR.SelectList["+this.ssID+"].releaseOption(window.event)'"
    + "  ondragstart='SS_cancelEvent(window.event)'"
    + ">"
  );
  SS_CreatedElements[SS_CreatedElements.length] = this.OptionsWrapper;
  this.OptionsDiv.appendChild(this.OptionsWrapper);
}
function SS_createOptionTr (idx)
{
  idx = ('undefined'!=typeof(idx)) ? idx : this.options.length - 1;
  var OptionTr = this.OptionsTable.insertRow(-1);
  var OptionTd = document.createElement("<td height="+this.OptionHeight+"></td>");
  SS_CreatedElements[SS_CreatedElements.length] = this.OptionsTd;
  OptionTd.appendChild(document.createElement("<nobr style='"+SS_ENV.OptionNobrStyle+"'></nobr>"));
  OptionTr.appendChild(OptionTd);
}



function sectionChange(form)
{
	var idx_office = SS_office.selectedIndex;
	var office_section = section_list[idx_office];
	var tmp, i, len;

	len = SS_section.options.length;

	for (i = office_section.length - 1; i >= 0; i--) {
		tmp = office_section[i].split(",");
		SS_section.insertOption(tmp[1], tmp[0], 0);
	}

	offset = office_section.length;
	for (i = office_section.length; i < office_section.length + len; i++) {
		SS_section.deleteOption(offset);
	}
}


if( typeof NU_rl == 'undefined'){
function get_cook_Value(str,name,div){
        str = str + div ;
	while(str.indexOf(div) > -1){
		tmpstr = str.substring(0,str.indexOf(div));
		str = str.substring(str.indexOf(div)+div.length,str.length);
		if( tmpstr.indexOf(name+'=') == 0 ){
			return tmpstr.substring(name.length+1,tmpstr.length);
		}
	}
	return '';
}
// Acecounter ·Î±×ºÐ¼® ASP¿ë
// AC_USERINFO ºÐ¼®

var NL_cookie = unescape(get_cook_Value(document.cookie,'LoginUser','; '));
//var NL_id = '', NL_gd = '', NL_ag = 0;
var NL_ag = parseInt(get_cook_Value(NL_cookie,'Age','&'));
var NL_id = get_cook_Value(NL_cookie,'LoginID','&');
var NL_gd = get_cook_Value(NL_cookie,'Gender','&');

if(NL_gd == 'M' ){ NL_gd = 'man'; }
else if(NL_gd == 'F' ){ NL_gd = 'woman'; }

// Acecounter ±âº» ÄÚµå
var NU_rl = 'http://'+'log.segye.com:9003'; var NCHKIMG = new Image(); var NL_bn=navigator.appName;
if( NL_bn.indexOf("Netscape") > -1 || NL_bn=="Mozilla"){
setTimeout("NCHKIMG.src = NU_rl+'/?cookie';",1); } else{ NCHKIMG.src = NU_rl+'/?cookie'; };
document.writeln("<scr"+"ipt language='javascript' src='http://www.yongpyong.co.kr/acecounter/ebizcode_1_yp.js'></scr"+"ipt>");
document.writeln("<scr"+"ipt language='javascript1.1' id='_NL_hdc'> NL_sv=11 ; </scr"+"ipt>");
document.writeln("<scr"+"ipt language='javascript1.1' src='http://www.yongpyong.co.kr/acecounter/ebizcode_2_yp.js'></scr"+"ipt>");
document.writeln("<scr"+"ipt language='javascript' src='http://www.yongpyong.co.kr/acecounter/ebizcode_3_yp.js'></scr"+"ipt>");
}

function swf(f_url,f_w,f_h){
	swf_text = '';
	swf_text += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+f_w+'" height="'+f_h+'">';
	swf_text += '<param name="movie" value="'+f_url+'">';
	swf_text += '<param name="quality" value="high">';
	swf_text += '<param name="bgcolor" value="#ffffff">';
	swf_text += '<param name="menu" value="false">';
	swf_text += '<param name="swliveconnect" value="true">';
	swf_text += '<param name=wmode value=transparent>';
	swf_text += '<embed src="'+f_url+'" quality=high bgcolor="#ffffff" menu="false" width="'+f_w+'" height="'+f_h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	swf_text += '<\/object>';
	document.write(swf_text);
}

function wmv(f_url,f_w,f_h){
	wmv_text = '';
	wmv_text += '<object id="MediaPlayer1" width="'+f_w+'" height="'+f_h+'" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject">';
	wmv_text += '<param  name="transparentAtStart" value="True">';
	wmv_text += '<param name="transparentAtStop" value="True">';
	wmv_text += '<param name="FileName" value="http://community.yongpyong.co.kr' + f_url + '">';
	wmv_text += '<param name="ShowStatusBar" value="1">';
	wmv_text += '<param name="AutoStart" value="1">';
	wmv_text += '<param name="ShowControls" value="1">';
	wmv_text += '<param name="AllowChangeDisplaySize" value="0">';
	wmv_text += '<param name="DisplaySize" value="0"><\/object>';
	document.write(wmv_text);
}

function wmv2(f_url,f_w,f_h){
	wmv_text = '';
	wmv_text += '<object id="MediaPlayer1" width="'+f_w+'" height="'+f_h+'" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject">';
	wmv_text += '<param  name="transparentAtStart" value="True">';
	wmv_text += '<param name="transparentAtStop" value="True">';
	wmv_text += '<param name="FileName" value="http://www.yongpyong.co.kr' + f_url + '">';
	wmv_text += '<param name="ShowStatusBar" value="0">';
	wmv_text += '<param name="AutoStart" value="1">';
	wmv_text += '<param name="ShowControls" value="0">';
	wmv_text += '<param name="PlayCount" value="-1">';
	wmv_text += '<param name="AllowChangeDisplaySize" value="0">';
	wmv_text += '<param name="DisplaySize" value="0"><\/object>';
	document.write(wmv_text);
}


function wmv3(f_url,f_w,f_h){
	wmv_text = '';
	wmv_text += '<object id="MediaPlayer1" width="'+f_w+'" height="'+f_h+'" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject">';
	wmv_text += '<param  name="transparentAtStart" value="True">';
	wmv_text += '<param name="transparentAtStop" value="True">';
	wmv_text += '<param name="FileName" value="http://www.yongpyong.co.kr' + f_url + '">';
	wmv_text += '<param name="ShowStatusBar" value="0">';
	wmv_text += '<param name="AutoStart" value="1">';
	wmv_text += '<param name="ShowControls" value="1">';
	wmv_text += '<param name="PlayCount" value="-1">';
	wmv_text += '<param name="AllowChangeDisplaySize" value="0">';
	wmv_text += '<param name="DisplaySize" value="0"><\/object>';
	document.write(wmv_text);
}


function wmv4(f_url,f_w,f_h){
	wmv_text = '';
	wmv_text += '<object id="MediaPlayer1" width="'+f_w+'" height="'+f_h+'" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject">';
	wmv_text += '<param  name="transparentAtStart" value="True">';
	wmv_text += '<param name="transparentAtStop" value="True">';
	wmv_text += '<param name="FileName" value="http://www.yongpyong.co.kr' + f_url + '">';
	wmv_text += '<param name="ShowStatusBar" value="0">';
	wmv_text += '<param name="AutoStart" value="1">';
	wmv_text += '<param name="ShowControls" value="0">';
	wmv_text += '<param name="PlayCount" value="-1">';
	wmv_text += '<param name="AllowChangeDisplaySize" value="0">';
	wmv_text += '<param name="DisplaySize" value="0"><\/object>';
	document.write(wmv_text);
}




function wmv_cam(){
	wmv_text = '';
	wmv_text += '<object id="WebAgent" classid="CLSID:92C01589-C103-4133-93B8-E6F40F9A4D47" codebase="webagent.cab#VERSION=2,3,3,335" width="320" height="240">';
	wmv_text += '<PARAM NAME="AutoLogon" VALUE="0">';
	wmv_text += '<\/object>';
	document.write(wmv_text);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


 /**
  * ÀÎ¼â
  * http://www.meadroid.com/scriptx/docs/printdoc.htm ÂüÁ¶ÇØÁÖ¼¼¿ä.
  */
 function printWindow()
 {
  factory.printing.header       = ""
  factory.printing.footer       = ""
  factory.printing.portrait     = true // true ¼¼·ÎÃâ·Â , false °¡·ÎÃâ·Â
  factory.printing.leftMargin   = 8
  factory.printing.topMargin    = 15
  factory.printing.rightMargin  = 10
  factory.printing.bottomMargin = 10

  factory.printing.Print( false, window ) // ´ëÈ­»óÀÚ Ç¥½Ã¿©ºÎ / Ãâ·ÂµÉ ÇÁ·¹ÀÓ¸í
 }



//°´½Ç°øÁö»çÇ×(VRÁ¶°¨µµ Function)


function FNwindowOpen(index1, index2){
surl ="/room/vr/view/pop_view.asp?Depth1=" + index1 + "&Depth2=" +index2;
Future = "fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0,width=659,height=513";
PopUpWindow = window.open(surl, "vrpopup", Future)

PopUpWindow.focus();
}

function FNvr_windowOpen(index1, index2, index3){
surl ="/room/vr/vr/pop_vr.asp?Depth1=" + index1 + "&Depth2=" +index2+ "&Depth3=" +index3;
Future = "fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0,width=659,height=575";
PopUpWindow = window.open(surl, "vrpopup", Future)

PopUpWindow.focus();
}