﻿function  secBoard(n,id)
{
document.getElementById("more").innerHTML="<a href=\"articlelist.asp?classid="+id+"\">"+document.getElementById("more").innerText+"</a>"	
for(i=1;i<6;i++)
document.getElementById("news"+i).className="";
document.getElementById("news"+n).className="current";

//for(i=0;i<mainTable.tBodies.length;i++)
//mainTable.tBodies[i].style.display="none";
//mainTable.tBodies[n].style.display="block";
}

function  secinfo(n)
{
	
for(i=1;i<6;i++)
document.getElementById("bar"+i).className="bar"+i;
document.getElementById("bar"+n).className="baron"+n;
}
function CANDISPLAY(idLAYER,x)
{
idLAYER.style.display = "block";
idLAYER.style.left=getwidth()+x*80;
}

function NOTDISPLAY(idLAYER)
{
idLAYER.style.display = "none";
}

function getwidth() {
	var theWidth = parseInt((parseInt(document.body.scrollWidth) - 588) / 2);
	var theHeight = parseInt((parseInt(document.body.scrollHeight) - 548) / 2);
	return theWidth;
}
function keepDiv(obj)
{
obj.style.display="block";
obj.style.left=getwidth();
}
