function chIMG(objimg,chimg){
	obj = document[objimg];
	obj.filters.blendTrans.Apply();
	obj.src=chimg;
	obj.filters.blendTrans.Play();
}

function change_img(x) // onClick ÇßÀ»¶§ ½½¶óÀÌµù È¿°ú¸¦ ³»±âÀ§ÇÑ ÇÔ¼öÀÇ Á¤ÀÇºÎ 
{
big_img.filters.blendTrans.apply() 
document.images.big_img.src=x 
big_img.filters.blendTrans.play()
}

function cnj(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
} 



function openWin(url,name,Width,Height,Scroll) 
{ 
	var win_width = (screen.availwidth)/2 - Math.ceil(Width/2); 
	var win_height = (screen.availheight)/2 - Math.ceil(Height/2); 
	window.open(url,name,'menubar=0, status=0 locationbar=0,scrollbars='+Scroll+',resizable=0,left='+win_width+',top='+win_height+',width='+Width+',height='+Height); 
}
	
	function preloadMenu() { //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=preloadMenu.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_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 ResetMenu() { //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.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function OverMenu() { //v3.0
  var i,j=0,x,a=OverMenu.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 MM_showHideLayers() { //v3.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];}
}


//layer tr show

  function onoff(obj) {
    var obj = document.getElementById(obj);
    if(obj.style.display == "none") obj.style.display = "block";
    else obj.style.display = "none"; 
  }

function change(obj) {
  First.style.display = "none";
  Second.style.display = "none";

  obj.style.display = "block";
}

function na_hide_layer(lname)
{
  if (document.layers)
    document.layers[lname].visibility = 'hide'    
  if(document.all)
    document.all(lname).style.visibility = 'hidden' 
}

function na_show_layer(lname)
{
  if(document.layers)
    document.layers[lname].visibility = 'show'   
  if(document.all)
    document.all(lname).style.visibility = 'visible' 
}

// -->

//PNG¾ËÆÄ IEÀû¿ë
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
	//alert(obj.src);
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    //obj.src='';  
    return ''; 
} 


//   rollover button script
 function mm_over(obj)//rollover
{
 var img = obj.src.split('.png');
 obj.src = img[0] + '_on.png';
}
function mm_out(obj)
{
 var img = obj.src.split('_on.png');
 obj.src = img[0] + '.png';
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//¾ÆÀÌÇÁ·¹ÀÓ ÀÚµ¿ ¸®»çÀÌÁî
function doResize(){
    document.getElementById("box").height = framename.document.body.scrollHeight;
}

  //·¹ÀÌ¾î º¸ÀÌ±â °¨Ãß±â
   function showLayer(id) {
        var obj = document.getElementById(id); //id °ªÀ¸·Î object ¸¦ »ý¼ºÇØ¾ß ÇÕ´Ï´Ù^^
        if (obj.style.display == "none") { //visibility ¼Ó¼ºÀº style ¼Ó¼ºÁß¿¡ ÀÖ±â¶§¹®¿¡ style ¼Ó¼º
            obj.style.display = "";        // Áß¿¡ Ã£¾Æ¾ßÇØ¿ä
        } else {
            obj.style.display = "none";
        }
    }
function mainmenu(args) {
	if(args == "01")args = "/2009/notice/list.asp";
	if(args == "11")args = "/2009/news/list.asp";
	if(args == "02") args = "/2009/board/list.asp";
	if(args == "03") args = "/2009/profile/";
	if(args == "04") args = "/2009/gallery/?gallery_type=2";
	if(args == "05") args = "/2009/unicef/?gallery_type=0905";
	if(args == "06") args = "#";
	if(args == "07") args = "#";

document.iframe.location = ""+ args;
}


	function sitelink(args) {
		if(args == "01") args =  "http://cafe.daum.net/binusofficial";
		//if(args == "02") args =  "http://www.wonbin-thailand.com";
		if(args == "02") args =  "http://www.wonbin-thailand.com/wonbin-english/index.php";
		if(args == "03") args =  "http://www.wonbin.jp";//Binus Japan
		if(args == "04") args =  "http://www.unicef.or.kr"; //UNICEF
		if(args == "05") args =  "http://www.binsavenue.com"; //

	window.open(""+args+"" ,"_blank");
	}

function main() {
    document.iframe.location = "/2009/_blank.asp";
}

function eng() {
	//window.open("/english/" ,"_blank");
    document.iframe.location = "/2009/_blank.asp";
    alert ("Update in progess")
}


function jp() {
	window.open("/japan/" ,"_blank");
   // alert ("Update in progess")
}

	function topmenu1(args) {
		if(args == "01") args =  "/2009/member/login_form.asp?rtnUrl=" + location.href;
		if(args == "02") args =  "/2009/member/join_02.asp?nation=kor&adult=1";
document.iframe.location = ""+ args;
	}

	function topmenu2(args) {
		if(args == "01") args =  "/2009/member/logout.asp?rtnUrl=" + location.href;
		if(args == "02") args =  "/2009/member/modify.asp?rtnUrl=" + location.href;
document.iframe.location = ""+ args;
	}


	function gfn_goto_logo() {
		document.iframe.location = "/2009/binus/";
	}

function GoJoin(nation,adult) {
     document.frmJoin.nation.value = nation;
     document.frmJoin.adult.value = adult;
     document.frmJoin.submit();
}


	function gfn_goto_notice() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/bbs/list.asp?board_id=notice";
	  else
		GoLogin();
	}

	function gfn_goto_freeboard() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/bbs/list.asp?board_id=free";
	  else
		GoLogin();
	}

	function gfn_goto_qna() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/bbs/list.asp?board_id=qna";
	  else
		GoLogin();
	}

	function gfn_goto_to_wonbin() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/bbs/list.asp?board_id=towonbin";
	  else
		GoLogin();
	}

	function gfn_goto_from_wonbin() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/bbs/list.asp?board_id=fromwonbin";
	  else
		GoLogin();
	}

	function gfn_goto_monologue() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/monologue/list.asp";
	  else
		GoLogin();
	}


	function gfn_goto_drama() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/drama/list.asp";
	  else
		GoLogin();
	}

	function gfn_goto_happy() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/happy/main.asp";
	  else
		GoLogin();
	}

	function gfn_goto_game() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/happy/game/main.asp";
	  else
		GoLogin();
	}

	function gfn_goto_korea() {
		document.iframe.location = "/korea/binus/";
	}

	function gfn_goto_japan() {
		document.iframe.location = "/japan/binus/";
	}

	function gfn_goto_english() {
	   document.iframe.location = "/english/binus/";
	  alert('comming soon!');
	}

	function gfn_goto_gallery() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/gallery/list.asp";
	  else
		GoLogin();
	}

	function gfn_goto_gallery2() {
	  if (this_nation != "")
		document.iframe.location = this_nation + "/binus/gallery2/list.asp";
	  else
		GoLogin();
	}

	function gfn_goto_myinfo() {
	  if (this_nation != "")
		document.iframe.location = "/2009/member/modify.asp";
	  else
		GoLogin();
	}

	function gfn_goto_memo() {
	  if (this_nation != "")
		gfn_open_memo(this_nation.substring(1, 6));
	  else
		GoLogin();
	}
 

 