
function divMove( sId , nHeightMove ){
	if( nHeightMove == 0 ){ return ; }
	var nNum = document.getElementById( sId ).style.top ;
	if( nNum == '' ){ nNum = 0 ; }
	else{ nNum = parseInt(nNum) ; }
		if(nNum <= 0){
			nHeightMove = -(nHeightMove)
		}
	_divMove(sId , nNum, parseInt(nNum) + (nHeightMove)*-1 , nHeightMove>0 ? -1 : 1 ) ;	
}

function _divMove( sId , nHeightStart , nHeightEnd , nTopDown ){
	var nSpeed = 5 ; // ½ºÇÇµå 1/1000 ÃÊ
	var nStep = 2 ;  // ½ÇÇàÇÒ¶§¸¶´Ù ÁÙ¾îµå´Â ´ÜÀ§
	var oObj = document.getElementById( sId ) ;
	nStep *= nTopDown ; 
	document.getElementById( 'result_msg' ).innerHTML = nHeightStart+":"+nHeightEnd ;
	if( nHeightStart == nHeightEnd ){ return ; }
	nHeightStart += nStep ; 
	oObj.style.top = nHeightStart ;
	setTimeout('_divMove("'+sId+'",'+nHeightStart+','+nHeightEnd+','+nTopDown+')' , nSpeed) ;
}

//ÀÌ¿Ã¶ó½º ÆÐÄ¡ ºÎºÐ
function get_flash(URL,wid,hei,mode) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>");
	document.write("<param name='movie' value='"+URL+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='WMODE' value='"+mode+"'>");
	document.write("<embed src='"+URL+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'></embed>");
	document.write("</object>");
}

function get_flash2(URL,wid,hei,mode) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>");
	document.write("<param name='movie' value='"+URL+"?pageNum=<%=flash_num%>'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='WMODE' value='"+mode+"'>");
	document.write("<embed src='"+URL+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'></embed>");
	document.write("</object>");
}

function get_vod(what) {
	document.write("<OBJECT CLASSID='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' width='320' height='240' ID='mPlayer'>");
	if (what == 2) { document.write("<PARAM NAME='filename' VALUE='/home_v2/data/"+what+".asf'>"); }
	else { document.write("<PARAM NAME='filename' VALUE='/home_v2/images/edusystem_imgs/"+what+".wmv'>"); }
	document.write("<PARAM NAME='ShowControls' VALUE='0'>");
	document.write("<PARAM NAME='AutoStart' VALUE='true'>");
	document.write("</object>");
}

function get_vod2(what) {
	document.write("<OBJECT CLASSID='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' width='320' height='240' ID='mPlayer'>");
	document.write("<PARAM NAME='filename' VALUE='/home_v2/data/"+what+"'>");
	document.write("<PARAM NAME='ShowControls' VALUE='0'>");
	document.write("<PARAM NAME='AutoStart' VALUE='true'>");
	document.write("</object>");
}

function get_music(what) {
	document.write("<embed src='http://jstour.jeongseon.go.kr/data/"+what+"'></embed>");
}

/*******************************************************************************
* ÇÁ¸°Æ®
*******************************************************************************/

function PrintPage()
	{
		window.print();
	}
/*******************************************************************************
* ·Ñ¿À¹ö ½ºÅ©¸³Æ®¼Ò½º
*******************************************************************************/
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
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; }
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/*******************************************************************************
* ¸µÅ©½Ã Á¡¼± ¾ø¾Ö±â
*******************************************************************************/
function autoblur() {
        if(event.srcElement.tagName == "A") document.body.focus();
	}
document.onfocusin = autoblur;

/*******************************************************************************
* product Tab
*******************************************************************************/
function tabContentL(nTh) {
for(i=1;i<=5;i++){
	document.all['tabContentL'+i].style.display='none';
}
	document.all['tabContentL'+nTh].style.display='block';
}

function faqContentL(nTh) {
for(i=1;i<=7;i++){
	document.all['faqContentL'+i].style.display='none';
}
	document.all['faqContentL'+nTh].style.display='block';
}

function cgContentL(nTh) {
for(i=1;i<=10;i++){
	document.all['cgContentL'+i].style.display='none';
}
	document.all['cgContentL'+nTh].style.display='block';
}

function csContentL(nTh) {
for(i=1;i<=3;i++){
	document.all['csContentL'+i].style.display='none';
}
	document.all['csContentL'+nTh].style.display='block';
}


function detailContentL(nTh) {
for(i=1;i<=6;i++){
	document.all['detailContentL'+i].style.display='none';
}
	document.all['detailContentL'+nTh].style.display='block';
}


/*******************************************************************************
* faq 
*******************************************************************************/
var prveObj ;
function viewQu( objID ){
if( typeof( prveObj ) == "object" ){ prveObj.style.display = "none" }
obj = document.getElementById( objID )

prveObj = obj
obj.style.display = (obj.style.display == "none" ) ? "" : "none" ;
}


/*******************************************************************************
* ÆË¾÷¸µÅ©
*******************************************************************************/

/*Á¦Ç° ÀÌ¹ÌÁöÅ©°Ôº¸±â*/
function popup_product_zoom() {
 window.open ('popup_product_zoom.jsp','popup_product_zoom','width=567px, height=500px, status=no, scrollbars=yes');
}

/*º£½ºÆ® faq*/
function popup_bestfaq() {
 window.open ('popup_bestfaq.jsp','popup_bestfaq','width=567px, height=500px, status=no, scrollbars=yes');
}

/*¹«ÅëÀå ÀÔ±Ý°¡ÀÌµå*/
function popup_cash_payment() {
 window.open ('popup_cash_payment.jsp','popup_cash_payment','width=567px, height=500px, status=no, scrollbars=yes');
}

/*ÇÒÀÎÄíÆù Àû¿ë¾È³»*/
function popup_discount_coupon() {
 window.open ('popup_discount_coupon.jsp','popup_discount_coupon','width=567px, height=500px, status=no, scrollbars=yes');
}

/*°øÀÎÀÎÁõ ¾È³»*/
function popup_certification() {
 window.open ('popup_certification.jsp','popup_certification','width=567px, height=500px, status=no, scrollbars=yes');
}

/*visa ¾È½ÉÅ¬¸¯ ¼­ºñ½º*/
function popup_visa_settlement() {
 window.open ('popup_visa_settlement.jsp','popup_visa_settlement','width=567px, height=500px, status=no, scrollbars=yes');
}

/*isp ¾ÈÀü°áÁ¦*/
function popup_isp_settlement() {
 window.open ('popup_isp_settlement.jsp','popup_isp_settlement','width=550px, height=460px, status=no, scrollbars=no');
}

/*¿ìÆí¹øÈ£ °Ë»ö*/
function popup_postcode_search() {
 window.open ('popup_postcode_search.jsp','popup_postcode_search','width=410px, height=460px, status=no, scrollbars=no');
}

/*¹è¼ÛÁö ¼±ÅÃ*/
function popup_home_select() {
 window.open ('popup_home_select.jsp','popup_home_select','width=567px, height=400px, status=no, scrollbars=yes');
}
