function indClk(idx){
	var tbl,tab,i;
	for (i=1;i<10;i++){
		if ((tbl=objectId("indTbl"+i))==null) break;
		tbl.style.display="none"
		}
	for (i=1;i<10;i++){
		if ((tab=objectId("indTab"+i))==null) break;
		tbl=objectId("indTbl"+i);
		if (i==idx){tbl.style.display="";tab.className="h hsel"}
		else{tab.className="h"}
		}
}

function ig_do(t,d,h,c,a){
	if ((t!=null)&&(d!=null)){
		ts=t.style;
		if (a){
			d.style.display="";
			ts.borderTop="solid 1px #aaaaaa";
			ts.borderLeft="solid 1px #aaaaaa";
			ts.borderRight="solid 1px #aaaaaa";
			ts.borderBottom="none";
			ts.fontStyle="";
			ts.color="black";
			ts.backgroundColor="#fafafa";
			ts.fontWeight="bold";
			h.style.borderTop="solid 3px "+c}
		else{
			d.style.display="none";
			ts.borderTop="solid 1px #aaaaaa";
			ts.borderLeft="solid 1px #aaaaaa";
			ts.borderRight="solid 1px #aaaaaa";
			ts.borderBottom="solid 1px #aaaaaa";
			ts.fontStyle="italic";
			ts.color="#666666";
			ts.backgroundColor="#f0f0f0";
			ts.fontWeight="normal";
			h.style.borderTop="none"}
	}
}

function igA(td){
	td--;
	for (i=0;i<5;i++){
		igi=ig[i];
		if (igi[0]!=null) ig_do(igi[0],igi[1],igi[2],igi[3],i==td)
	}
}

function setIgArray(igIndex){
	ig[igIndex]=new Array(5);
	ig[igIndex][0]=objectId("igt"+(igIndex+1));
	ig[igIndex][1]=objectId("igd"+(igIndex+1));
	ig[igIndex][2]=objectId("igh"+(igIndex+1))
}

function elScroll(el,h){
	var el=objectId(el);
	if (el!=null){if ((h==null)||(h<=0)) h=250;
	if (el.scrollHeight>h){el.style.overflow='auto';el.style.height=h+'px';el.className=el.className+" scrollContainer"}}
}

function maquiDir(d){el=objectId('marqui');
	if (el!=null){el.direction=d;el.scrollAmount=3}
}

function maquiCnt(){
	if((el=objectId('marqui'))!=null)el.scrollAmount=3
}

function maquiStp(){
	if((el=objectId('marqui'))!=null)el.scrollAmount=(el.scrollAmount=='0')?3:'0'
}

var ig=new Array(5);var elRightPane=objectId("rightPane");
var marqueeEl=objectId('marqui');
var marqueeElSpeed=(marqueeEl!=null)?marqueeEl.scrollAmount:3;
for (i=0;i<5;i++) setIgArray(i);
ig[0][3]="#ffefcf";
ig[1][3]="#cff0cf";
ig[2][3]="#f7f799";
ig[3][3]="#dcdcdc";
ig[4][3]="#aaddff";
igA(5);indClk(1);
elScroll("scrollNews",objectId('scrollForum').scrollHeight);
elScroll("scrollAnnouncements",180);
maquiDir('left');