//´°¿Ú
function dgsopenwindow(nm,ht,wd,scll,srcn){document.write("<iframe id="+nm+" name="+nm+" style='HEIGHT:"+ht+";VISIBILITY:inherit;WIDTH:"+wd+";Z-INDEX:1' scrolling="+scll+" topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 frameborder=0 src="+srcn+"></iframe>");}

//
function dgs(theURL) {
window.open(theURL, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=0,height=0,left=0,screenX=0,top=0,screenY=0');
}

////menu
//<script>Shownewsmenu('<%=i%>','<%=rs1("id")%>','<%=rs1("Newsort")%>','newslist.asp?class=');</script>

function Shownewsmenu(count,id,title,aspurl)
{
document.write("<tr><td></td></tr><tr><td height=50 width=180 background=/img/leftmenu"+count+".jpg class=Shownewsmenu><a href="+aspurl+""+id+">"+title+"</a></td></tr>");
//document.write("<tr><td><hr size=1 color=#ff9c00></td></tr>")
}

function Showmenuen(count,id,title,aspurl)
{
document.write("<tr><td></td></tr><tr><td height=50 width=180 background=/img/leftmenu"+count+".jpg>&nbsp;&nbsp;<b><a href="+aspurl+""+id+">"+title+"</a></b></td></tr>");
//document.write("<tr><td><hr size=1></td></tr>")
}

function loadThreadnews(id,ver){
document.frames["hiddenframe"].location.replace("/loading.asp?class="+id+"&ver="+ver+"");
}
document.write("<iframe height=0 width=0 name=hiddenframe></iframe>")

function viewPage(ipage){
        document.frm_page.me_page.value=ipage;
        document.frm_page.submit();        
}



// JavaScript Document

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

//²Ëµ¥

function menuhover() {
	var menu = document.getElementById("menu");
	var links = menu.getElementsByTagName("a");
	for(c=0; c<links.length; c++) {
		links[c].onmouseover = function() {
			for(m=0; m<links.length; m++) {
				links[m].className = '';
			}
			this.className = 'here';
		}
		links[c].onmouseout = function() {
			for(m=0; m<links.length; m++) {
				links[m].className = '';
			}
			links[0].className = 'here';
		}
	}
}

addLoadEvent(menuhover);