function showHideCon(sec, num){
	var scLen = 2;
	var nmLen = 2;
	
	if(sec == 'sc'){
		showHideCont(sec, scLen, num, 1);
	} else if(sec = 'nm'){
		showHideCont(sec, nmLen, num, 2);
	}
}

function showHideCont(sec, len, num, n){
	for(i=1; i<=len; i++){
		if(i == num){
			document.getElementById(sec+'0'+i).src = 'images/tab0'+n+'_0'+i+'_on.gif';
			document.getElementById(sec+i).style.display = 'block';
		} else {
			document.getElementById(sec+'0'+i).src = 'images/tab0'+n+'_0'+i+'_off.gif';
			document.getElementById(sec+i).style.display = 'none';
		}
	}
}

//******************************************************************************************************************



function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 


//******************************************************************************************************************

function mainmenu(link,target,width,height,scroll){
  switch(link){
    //case("1") : url = '/bt_customer/condo_reservation/reser_view.php'; target='open' ; width='680' ; height='680'; scroll='yes'; break;
    case("2") : url = '/bt_customer/safety_regulations.html'; target='open' ; width='780' ; height='570' ; scroll='yes'; break; 
    case("3") : url = '/bt_bearstown/bears_041.php?pageNum=1&sub=4'; break;
    case("4") : url = '/imgboard_2_new.php?ch=gallery_list&onEnterFrame=%5Btype+Function%5D&pageNum=7&sub=2'; break; 	
    default : url = '';
  }
  if(target=="blank") window.open(url);
  else if(target=="open") window.open(url,'','width='+width+',height='+height+',scrollbars='+scroll);
  else{
    if(url=='') alert('ÁØºñÁßÀÔ´Ï´Ù.');
    else location.href = url;
  }
}

function main0803(link,target,width,height,scroll){
  switch(link){
    case("1") : url = '/bt_golf/golf_03.php?onEnterFrame=%5Btype+Function%5D&pageNum=3&sub=3'; break;  
    case("2") : url = '/bt_golf/golf_01.php?onEnterFrame=%5Btype+Function%5D&pageNum=3&sub=1'; break;
    case("3") : url = '/bt_golf/golf_02.php?onEnterFrame=%5Btype+Function%5D&pageNum=3&sub=2'; break;	
				
  default : url = '';
  }
  if(target=="blank") window.open(url);
  else if(target=="open") window.open(url,'','width='+width+',height='+height+',scrollbars='+scroll);
  else location.href = url;
}

function event00(link,target,width,height,scroll){
  switch(link){
    case("1") : url = '../slide/slide01.html'; target='open' ; width='960' ; height='782' ; scroll='no'; break; 
    case("2") : url = 'popup/insu.html'; target='open' ; width='762' ; height='958' ; scroll='no'; break; 		
  default : url = '';
  }
  if(target=="blank") window.open(url);
  else if(target=="open") window.open(url,'','width='+width+',height='+height+',scrollbars='+scroll);
  else location.href = url;
}

function right(link){
  switch(link){
    case("1") : url = '/bt_golf/golf_03.php?onEnterFrame=%5Btype+Function%5D&pageNum=3&sub=3'; break;
  default : url = '';
  }
  location.href = url;
}

function link00(link,target){
  switch(link){
    case("1") : url = '/bt_accomodation/acc_08.php?targetX=55%2E5&pageNum=6&sub=1'; break;
	case("2") : url = '/bt_bearstown/bears_04.php?pageNum=1&sub=4'; break;
	case("3") : url = '/bt_customer/cus_043.php'; break;
	case("4") : url = '/tourist.htm'; break;

  default : url = '';
  }
  if(target=="blank") window.open(url);
  else location.href = url;
}

function link001(link,target){
  switch(link){
    case("1") : url = '/bt_golf/golf_03.php?pageNum=3&sub=3'; break;
	case("2") : url = '/bt_golf/golf_02.php?pageNum=3&sub=2'; break;
	case("3") : url = '/bt_golf/golf_01.php?onEnterFrame=%5Btype+Function%5D&pageNum=3&sub=1'; break;

  default : url = '';
  }
  if(target=="blank") window.open(url);
  else location.href = url;
}

function link002(link,target,width,height,scroll){
  switch(link){
    case("1") : url = '/bt_accomodation/acc_08.php?targetX=55%2E5&pageNum=6&sub=1'; break;  
    case("2") : url = '/bt_bearstown/bears_04.php?pageNum=1&sub=4'; break;  
    case("3") : url = '/bt_customer/cus_043.php'; break;
	case("4") : url = '/bt_ski/ski_02.php?onEnterFrame=%5Btype+Function%5D&pageNum=2&sub=2'; break;
	case("5") : url = '/bt_ski/ski_04.php?onEnterFrame=%5Btype+Function%5D&pageNum=2&sub=4'; break;
	case("6") : url = '/tourist.htm'; target='blank' ; break;  		
  default : url = '';
  }
  if(target=="blank") window.open(url);
  else if(target=="open") window.open(url,'','width='+width+',height='+height+',scrollbars='+scroll);
  else location.href = url;
}

function goTop(orix,oriy,desx,desy) {
	var Timer;
	var winHeight = document.body.scrollTop;
	if(Timer) clearTimeout(Timer);
	startx = 0;
	starty = winHeight;
	if(!orix || orix < 0) orix = 0;
	if(!oriy || oriy < 0) oriy = 0;
	var speed = 7;
	if(!desx) desx = 0 + startx;
	if(!desy) desy = 0 + starty;
	desx += (orix - startx) / speed;
	if (desx < 0) desx = 0;
	desy += (oriy - starty) / speed;
	if (desy < 0) desy = 0;
	var posX = Math.ceil(desx);
	var posY = Math.ceil(desy);
	window.scrollTo(posX, posY);
	if((Math.floor(Math.abs(startx - orix)) < 1) && (Math.floor(Math.abs(starty - oriy)) < 1)){
		clearTimeout(Timer);
		window.scroll(orix,oriy);
	}else if(posX != orix || posY != oriy){
		Timer = setTimeout("goTop("+orix+","+oriy+","+desx+","+desy+")",15);
	}else{
		clearTimeout(Timer);
	}
}
//--------------------------------------------------------------------------------------

function flashview (dirNswf,fwidth,fheight,varvalues) {

 var flashobjec="";
 flashobjec+="<object classid=\'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\' codebase=\'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\' width=\'"+fwidth+"\' height=\'"+fheight+"\'>";
 flashobjec+="<param name=\'movie\' value='"+dirNswf+"'>";
 flashobjec+="<param name=\'quality\' value=\'high\'>";
 flashobjec+="<param name=\'wmode\' value=\'transparent\'>";
 flashobjec+="<param name=\'allowScriptAccess\' value=\'always\'>";
 flashobjec+="<param name=\'FlashVars\' value=\'"+varvalues+"\'>";
 flashobjec+="<embed src='"+dirNswf+"' quality=\'high\' pluginspage=\'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\' type=\'application/x-shockwave-flash\' width=\'"+fwidth+"\' height=\'"+fheight+"\'></embed>";
 flashobjec+="</object>";
 
 document.write(flashobjec);
 
}
//--------------------------------------------------------------------------------------

//--------------------------------------------------------------------------------------
var ElementObject;
var params = new Array();
var ParamElements = new Array();

// document.write ¿ë 

function startHeadObject() {	
	document.write("<object ");
}

function setHeadObject(pName, pValue ) {
  document.write(pName + " = '" + pValue + "' " );	  
}

function endHeadObject() {	
	document.write(">");
}

function setEtc(str){
        document.write(str);
}

function endObject() {
	document.write("</object>");
}	

function setParamObject(pName, pValue) {
	pValue = pValue.replace("'","`");
	document.write("<param name='" + pName + "' VALUE='" + pValue + "'>");	
	params[pName] = pValue;
}	

function startHeadApplet() {	
	document.write("<applet ");
}

function endHeadApplet() {	
	document.write(">");
}

function endApplet() {
	document.write("</applet>");
}


