//ÅÇ°Ë»öÃ¢
function toggleMenu(currMenu){
		if (document.all){
		thisMenu = eval('document.all.' + currMenu + '.style')
		if (thisMenu.display == 'block') {
		document.all.tab1.style.display = 'none'
		document.all.tab2.style.display = 'none'
		document.all.tab3.style.display = 'none'
		document.all.tab4.style.display = 'none'
		thisMenu.display = 'block'
		}
		else {
		document.all.tab1.style.display = 'none'
		document.all.tab2.style.display = 'none'
		document.all.tab3.style.display = 'none'
		document.all.tab4.style.display = 'none'
		thisMenu.display = 'block'
		}
		return false
		}else{
		return true
		}
	}

//´Ù¸¥¸ÅÀåÀÌµ¿ÇÏ±â
 function getObj(obj) {
       compLayr = eval("document.all." + obj + ".style")
       return compLayr
    }

    function showHide(name){
       obj = getObj(name) ;

       if (obj.visibility=="hidden"){
		   obj.visibility = "visible" ;
       } else {
	       obj.visibility = "hidden" ;
       }
    }

//¸¶¿ì½º ¿À¹ö½Ã ¾È³»¹®±¸ º¸¿©ÁÖ½Ã
//  var x = 0;
//  var y = 0;
//  var snow = 0;
//  var sw = 0;
//  var cnt = 0;
//  var dir = 1;
//  var offsetx = 0;
//  var offsety = 0;
//  var width = 290;
//  var height = 50;
//
//  document.onmousemove = mouseMove;
//
//  function nd() {
//    if ( cnt >= 1 ) { sw = 0 };
//    if ( sw == 0 ) { snow = 0; hideObject(over); }
//    else { cnt++; }
//  }
//
//  function disp(obj) {
//	parm = eval(obj);
//	over = parm.style;
//    if (snow == 0) {
//      if (dir == 2) { moveTo(over,x+offsetx-(width/2),y+offsety); } // Center
//      if (dir == 1) { moveTo(over,x+offsetx,y+offsety); } // Right
//      if (dir == 0) { moveTo(over,x-offsetx-width,y+offsety); } // Left
//      showObject(over);
//      snow = 1;
//    }
//  }
//
//  function mouseMove(e) {
//    x=event.x + document.body.scrollLeft+10
//    y=event.y + document.body.scrollTop
//    if (x+width-document.body.scrollLeft > document.body.clientWidth) x=x-width-25;
//    if (y+height-document.body.scrollTop > document.body.clientHeight) y=y-height;
//
//    if (snow) {
//      if (dir == 2) { moveTo(over,x+offsetx-(width/2),y+offsety); } // Center
//      if (dir == 1) { moveTo(over,x+offsetx,y+offsety); } // Right
//      if (dir == 0) { moveTo(over,x-offsetx-width,y+offsety); } // Left
//    }
//  }
//
//  function cClick() { hideObject(over); sw=0; }
//  //function layerWrite(txt) { document.all["resisttext"].innerHTML = txt }
//  function showObject(obj) { obj.visibility = "visible" }
//  function hideObject(obj) { obj.visibility = "hidden" }
//  function moveTo(obj,xL,yL) { obj.left = xL; obj.top = yL; }


//ÆË¾÷
function MM_openBrWindow(theURL,winName,features)
{ //v2.0
  window.open(theURL,winName,features);
}


//Ã¼ÀÎº°¼÷¹Ú ¾àµµº¸±â ÆË¾÷¿ë by leemoge 20070829
function OpenChainMapWnd(nX, nY, nZoom, flag, goodscode)
{
	//window.open(strURL, 'ChainMap', 'top=200, left=200, width=480, height=500, menubar=no, scrollbars=no');
	var popupUrl;
	popupUrl = "http://tour.interpark.com/housing/Goods/Popup/Map_Print.asp?flag=" + flag + "&GoodsCode=" + goodscode +"&nZoom="+ nZoom +"&nX="+ nX +"&nY="+ nY;

	window.open(popupUrl,"_Popup","width=640,height=730,scrollbars=yes,directories=no,location=no,menubar=no,resizable=no,status=no,toolbar=no");
}


//»óÇ° »ó¼¼ÆäÀÌÁö·Î [¸ÞÀÎ iframe html¿¡¼­ »ç¿ëñé] by leemoge 20070829
function GoGoodsInfo(strGoodsCode)
{
	parent.location.href = "http://tour.interpark.com/housing/Goods/Goods_DetailInfo.asp?GoodsCode=" + strGoodsCode;
}


//Áö¿ªº° °Ë»ö¸®½ºÆ®ÆäÀÌÁö·Î [¸ÞÀÎ iframe html¿¡¼­ »ç¿ëñé] by leemoge 20070831
function GoSearchList(strKindOfHouseFG, strKindOfDistrict)
{
	parent.location.href = "http://tour.interpark.com/housing/Search/Search_List.asp?KindOfHouseFG=" + strKindOfHouseFG + "&KindOfDistrict=" + strKindOfDistrict;
}


//Áö¿ªº° ¼÷¼ÒÀÌ¾ß±â
function GoRegionReview(strUrlFlag, nNo, nGroupNo, nSeq)
{
	// ¸®½ºÆ®ÆäÀÌÁö
	if(strUrlFlag == "list")
	{
		parent.location.href = "http://tour.interpark.com/housing/Information/News_List.asp";
	}
	// »ó¼¼ÆäÀÌÁö
	else
	{
		parent.location.href = "http://tour.interpark.com/housing/Information/News_View.asp?bbsno=55&pageno=1&stext=&sflag=&no=" + nNo + "&groupno=" + nGroupNo + "&seq=" + nSeq;
	}
}


// ºü¸¥ Quick ¿¹¾à ÆË¾÷Ã¢
function QuickReserve()
{
	var popupUrl;

	popupUrl = "/housing/Quick/Quick.asp"
	window.open(popupUrl,"_Popup","width=670,height=520,scrollbars=auto,directories=no,location=no,menubar=no,resizable=no,status=no,toolbar=no");
}


// »óÇ°Æò ÀÔ·Â ÆË¾÷Ã¢
function Use_Write_Popup()
{
	var popupUrl;

	popupUrl = "/housing/information/Use_Write.asp"
	window.open(popupUrl,"_Popup","width=680,height=720,scrollbars=auto,directories=no,location=no,menubar=no,resizable=no,status=no,toolbar=no");
}


// ·Î±×ÀÎ Ã¼Å©.
// By HCastle - 20081124
function isLogin() {
	var isLogin = false;
	if(getCookie("HMem%5FNO")) {
		isLogin = true;
	}
	
	return isLogin;
}

function getCookie(name)

{
	var nameOfCookie = name + "=";
	var x = 0;

	while ( x <= document.cookie.length )
	{

		var y = (x+nameOfCookie.length);

		if ( document.cookie.substring( x, y ) == nameOfCookie ) {
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
				endOfCookie = document.cookie.length;

			return unescape( document.cookie.substring( y, endOfCookie ) );

		}

		x = document.cookie.indexOf( " ", x ) + 1;

		if ( x == 0 )
			break;
	}

	return "";

}