var PreHtml="";

function allblur() {
  for (i = 0; i < document.links.length; i++)
    document.links[i].onfocus = document.links[i].blur;

  for (i = 0; i < document.images.length; i++)
    document.images[i].onfocus = document.images[i].blur;

}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");


//Bookmark
function bookmark(){
//window.external.AddFavorite('http://ggu.indigo.co.kr', '¡×¡× The PRIDE, ÀÚÁ¸½ÉÀ» ÁöÄÑ¶ó! ±Ý°­´ëÇÐ±³ ¡×¡×')
window.external.AddFavorite('http://www.ggu.ac.kr', '¡×¡× The PRIDE, ÀÚÁ¸½ÉÀ» ÁöÄÑ¶ó! ±Ý°­´ëÇÐ±³ ¡×¡×')

}

function MM_showHideLayers() { //v6.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 popup(url,popupflag,w,h,t,l,r,s,mb,tb,ub,lsus){
	 if(popupflag == '1'){
	 	window.open(url,'popup','width='+parseInt(w)+',height='+parseInt(h)+',top='+parseInt(t)+',left='+parseInt(l)+',resizable='+r+',scrollbars='+s+',menubar='+mb+',toolbar='+tb+',location='+ub+',status='+lsus+'');
	 }else{
	 	location.href=url;
	 }	
}

//ÆË¾î¹è³Ê (ÀÚ¼¼È÷º¸±â)
function popup_new(url,popupflag,w,h,t,l,r,s,mb,tb,ub){
	 if(popupflag == '1'){
	 	window.open(url,'popup1','width='+parseInt(w)+',height='+parseInt(h)+',top='+parseInt(t)+',left='+parseInt(l)+',resizable='+r+',scrollbars='+s+',menubar='+mb+',toolbar='+tb+',location='+ub+'');
	 }else{
	 	opener.location.href=url;
	 }
	 self.close();
}

//ÀÔ½Ã °ü·Ã ÀÓ½Ã ¹è³Ê°ü¸® 
function popup_ipsi(url,popupflag,w,h,t,l,r,s,mb,tb,ub){

	 if(popupflag == '1'){

	 	window.open(url,'popup2','width='+parseInt(w)+',height='+parseInt(h)+',top='+parseInt(t)+',left='+parseInt(l)+',resizable='+r+',scrollbars='+s+',menubar='+mb+',toolbar='+tb+',location='+ub+'');

	 }else{

	 	location.href=url;

	 }	
   self.close();	 

}

//v3ÀÎÁõ
function v3_popup(url)	{
	window.open(url,'v3pop','width=373,height=214,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=200,left=200');
}


function fmove_next(ls_in, ls_next){
	if(ls_in.value.length == ls_in.maxLength){
	ls_next.select();
	ls_next.focus();
	}
}

// µ¿¿µ»ó Àü¿ë ÆË¾÷
function vod_popup(url)	{
	window.open(url,'vod_popup','width=330,height=500,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=200,left=300');
}


// ¸ÞÀÎÈ­¸é MBCÈ«º¸ µ¿¿µ»ó Àü¿ë ÆË¾÷
function vod_OpenWin(File,TITLE){
	var url="http://vod.ggu.ac.kr/admin/player_www.asp?fname="+File+"&TITLE=" +TITLE;
	window.open(url,"vod_play","width=322,height=475,location=no,directories=no,resizable=no,status=no,toolbar=no,menubar=no,scrollbars=no,top=100,left=100");
}

// ¸ÞÀÎ ÆË¾÷Ã¢ »ý¼º½Ã free=ÆË¾÷Ã¢¸¸ »ý¼º, close=ºÎ¸ðÆË¾îÃ¢ ´Ý°í »ý¼º, ±×·¸Áö ¾ÊÀ¸¸é ÇöÀçÃ¢¿¡ ³»¿ë Ç¥½Ã
function free_popup(url,popupflag,w,h,t,l,r,s,mb,tb,ub){
	 if(popupflag == 'free'){
	 	window.open(url,'fpopup','width='+parseInt(w)+',height='+parseInt(h)+',top='+parseInt(t)+',left='+parseInt(l)+',resizable='+r+',scrollbars='+s+',menubar='+mb+',toolbar='+tb+',location='+ub+'');
	 }else if(popupflag == 'close'){
	 	window.open(url,'fpopup','width='+parseInt(w)+',height='+parseInt(h)+',top='+parseInt(t)+',left='+parseInt(l)+',resizable='+r+',scrollbars='+s+',menubar='+mb+',toolbar='+tb+',location='+ub+'');
		self.close();
	 }else{
	 	location.href=url;
	 }	
}