//ÆË¾÷ 2010 10 19 Á¤¿µÈ¯ Ãß°¡
function goPopup(url, w, h,ScrollbarsYn){
	
	if (ScrollbarsYn=='Y')	{
		ScrollbarsYn="yes";
	}else{
		ScrollbarsYn="no";
	}
	var x = (screen.availWidth - w) / 2;
	var y = (screen.availHeight - h) / 2;
	var win = window.open(url, 'pop','width='+w+', height='+h+', left='+x+', top='+y+',scrollbars=yes');
	win.focus();
}

// ÆË¾÷Ã¢ : scroll - 'yes' or 'no' - 20100919 Ãß°¡ 
function newWin(url, winName, width, height, scroll) {
	var scrollOpt = "no";
	if(scroll == "yes") {
		scrollOpt = "yes";
	}
	var nLeft	= (screen.availWidth - width) / 2;
    var nTop	= (screen.availHeight - height) / 2;
    var opt = ", width=" + width + ", height=" + height + ", toolbar=no, menubar=no, location=no, scrollbars=" + scrollOpt + ", status=no, resizable=no";
    return window.open(url, winName, "left=" + nLeft + ", top=" +  nTop + opt);
}



//¸¶¿ì½º ¿À¹ö½Ã 

var oldId = "";
function mouseEvent(id){
	if (id==oldId)
		document.getElementById(id).src=document.getElementById(id).src.replace("on", "off");
	else
		document.getElementById(id).src=document.getElementById(id).src.replace("off", "on");
	oldId = id;
}

var oldIdFB = "";
function mouseEventFB(id){
  if (id==oldIdFB)
    document.getElementById(id).src=document.getElementById(id).src.replace("on", "off");
  else
    document.getElementById(id).src=document.getElementById(id).src.replace("off", "on");
  oldIdFB = id;
}

//popup
function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}
