document.title = "¾Æ¸§´Ù¿î ³ª¸¸ÀÇ ÈÞ½Ä°ø°£ -¿ÁÆæ¼Ç-";
function showAlert()
{
    window.alert("ÁØºñÁßÀÔ´Ï´Ù");
}
function mapPrint()
{
    w=800;
    h=700;
    cx = (screen.availWidth - w) / 2;
    cy = (screen.availHeight - h) / 2;
    window.open("map_print1.php", "", "scrollbars=yes,width=" + w + ",height=" + h + ",left=" + cx + ",top=" + cy);
}
function bluring()
{
    if (event.srcElement.tagName == "A" || event.srcElement.tagName == "IMG") document.body.focus();
}
document.onfocusin = bluring;
var UserBrowserWidth = window.screen.width;
var UserBrowserHeight = window.screen.height;
var OpenWinVal;
function openWindow(filename, w, h, name, center, scrollbars)
{
    var StrOption;
    StrOption = "width=" + w + ",height=" + h + ",";
    StrOption += "toolbar=no,location=no,directories=no,status=no,";
    StrOption += "menubar=no,scrollbars=" + scrollbars + ",resizable=no";
    //if(OpenWinVal != null && !OpenWinVal.closed)
    //OpenWinVal.close() ;
    OpenWinVal = window.open(filename, name, StrOption);
    if (center == "yes") OpenWinVal.moveTo((UserBrowserWidth / 2) - (w / 2), (UserBrowserHeight / 2) - (h / 2));
    return;
}
//javascript: openWindow('link','640','600','r001','yes','no')
function flash(url, width, height, allowDomain)
{
    if (allowDomain = "")
    {
        allowDomain = false;
    }
    try
    {
        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="' + width + '" height="' + height + '">');
        document.write('<param name="movie" value="' + url + '">');
        if (allowDomain = true)
        {
            document.write('<param name="allowScriptAccess" allowFullScreen="true" value="always"/>');
        }
        document.write('<param name="quality" value="high"><param name="wmode" value="transparent"><PARAM NAME="menu" VALUE="false">');
        document.write('<embed src="' + url + '" quality="high" allowFullScreen="true" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" menu="false"></embed>');
        document.write('</object>');
    }
    catch (E)
    {
    }
}
function bookMark()
{
    window.external.AddFavorite('http://www.okpension.net/', '¾Æ¸§´Ù¿î ³ª¸¸ÀÇÈÞ½Ä°ø°£ - ¿ÁÆæ¼Ç -')
}
var stmnGAP1 = 202;
var stmnGAP2 = 0;
var stmnBASE = 202;
var stmnActivateSpeed = 0;
var stmnScrollSpeed = 0;
var stmnTimer;
function InitializeStaticMenu()
{
    STATICMENU.style.top = document.body.scrollTop + stmnBASE;
    RefreshStaticMenu();
}
function RefreshStaticMenu()
{
    var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
    stmnStartPoint = parseInt(STATICMENU.style.top, 10);
    stmnEndPoint = document.body.scrollTop + stmnGAP2;
    if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
    stmnRefreshTimer = stmnActivateSpeed;
    if (stmnStartPoint != stmnEndPoint)
    {
        stmnScrollAmount = Math.ceil(Math.abs(stmnEndPoint - stmnStartPoint) / 15);
        STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ((stmnEndPoint < stmnStartPoint) ? -stmnScrollAmount : stmnScrollAmount);
        stmnRefreshTimer = stmnScrollSpeed;
    }
    stmnTimer = setTimeout("RefreshStaticMenu();", stmnRefreshTimer);
}
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_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_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_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 reserOpen(id,gr_id){
	var id;
	var gr_id;
	w=400;
	h=300;
	w = 800;
	h = 700;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
	url = "http://reservation.gpension.kr/reser/reservation.php?pension_id="+id;
	window.open(url,"","scrollbars=yes,width="+w+",height="+h+",left="+cx+",top="+cy);
}

function reserOpen2(gr_id){
	var gr_id;
	w=400;
	h=300;
	w = 800;
	h = 700;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
	url = "http://reservation.infotown.kr/reservation/reservation.php?gr_id="+gr_id;
	window.open(url,"","scrollbars=yes,width="+w+",height="+h+",left="+cx+",top="+cy);
}

function flash_movie(src, ids, width, height, wmode, val)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height)) 
            wh = " width='"+width+"' height='"+height+"' ";
//        return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=FlashVars value="+val+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
      return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name='allowScriptAccess' value='sameDomain'><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=FlashVars value="+val+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
    }
