// JavaScript Document
	var cnt = 0;
	var inter = new Array();
	var subMenus = new Object();

	var Menu = {
		dir : "/common/image/common/bt/"
		, menu : document.getElementById("menu")
		, exInter : 1
		, reInter : 1
		, units : 20
		, unitWidth : 150
		, top_position : 108
		, left_position : 192
		, subList : new Array(7)
		, leftMargin : 5
		, rightMargin : 5
		, imgObj : new Object()
		, exName : navigator.appName == "Netscape" ? "net" : "ie"
		, exVer : navigator.appVersion.charAt(0)
		, sub_menu : new Object()
		, cWidth : 0
		, spareWidth : 0
		, oWidth : new Array()
	}

	Menu.init = function(){
		this.cWidth = document.body.scrollWidth;
		this.spareWidth = 0;
		if(this.cWidth > 1200){
			this.spareWidth = this.exName == "ie"?175 : 182;
		}else if(this.cWidth < 1200 && this.cWidth > 1000){
			this.spareWidth = this.exName == "ie"?47 : 53;
		}else{
			this.spareWidth = this.exName == "ie"?11 : 11;
		}

	}

	// Main menu image rollover.
	Menu.overImg = function(obj, name, num){
		this.init();
		try{
			var imgWidth = 0;
			var imgObj = document.images;
			obj.src = this.dir+name+"_o.jpg";
			this.sub_menu = document.getElementById(name.substr(3, name.length));
			if(!this.oWidth[num]){
				this.oWidth[num] = parseInt(this.sub_menu.style.left.substr(0, this.sub_menu.style.left.length - 2));
			}

			this.sub_menu.style.visibility = "visible";

			if(this.exName == "ie"){
				this.sub_menu.style.top = (this.top_position+4)+"px";
				try{
					this.sub_menu.style.left = (this.spareWidth + this.oWidth[num])+"px";
				}catch(e){}
			}else{
				this.sub_menu.style.top = this.top_position+"px";
				try{
					this.sub_menu.style.left = (this.spareWidth + this.oWidth[num])+"px";
				}catch(e){}
			}

		}catch(e){
			alert(e.description+ " Menu.overImg");
		}
	}

	// Main menu image restore.
	Menu.restoreImg = function(obj, name, num){
		try{
			obj.src = this.dir+name+".jpg";
			this.sub_menu.style.visibility = "hidden";
		}catch(e){
			alert(e.description+ " Menu.restoreImg");
		}
	}


	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_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_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 search_input_check(form_name) {
	    frm=form_name;

	    if (!frm.search.value) {
	        alert('enter search word.');
	        frm.search.focus();
	        return;
	    }

		frm.action="/search/board.php?cmd=retrieveSrchList"
		frm.submit();
	}

