// JavaScript Document



timer1=setTimeout("",0);

list=new Array('chap1','chap2','chap3','chap4');

NS=(document.layers)?1:0;

IE=(document.all)?1:0;

function ctNS()

{

	if(NS==1)

	{

		ct();

	}

}

function ctIE()

{

	if(IE==1)

	{

		ct();

	}

}

function ct()

{

	clearTimeout(timer1)

}

function init()

{

	//alert('ok');

	clearTimeout(timer1);

	for(i in list)

	{

		this.css=est.dom?document.getElementById(list[i]).style:est.ie?document.all[list[i]].style:est.ns?document.layers[list[i]]:0;

		this.css.visibility='hidden';

		//this.css=est.dom?document.getElementById("tri"+list[i]).style:est.ie?document.all["tri"+list[i]].style:est.ns?document.layers["tri"+list[i]]:0;

		//this.css.visibility='hidden'

	}

}

function ia()

{

	timer1=setTimeout('init();',1000);

}

function iaNS()

{

	if(NS==1)

	{

		ia();

	}

}

function iaIE()

{

	if(IE==1)

	{

		ia();

	}

}

function Browser()

{

	b=navigator.appName;

	if(b=="Netscape")this.b="ns"

	else if(b=="Microsoft Internet Explorer")this.b="ie"

	else this.b=b;

	this.version=navigator.appVersion;

	this.v=parseInt(this.version);

	this.ns=(this.b=="ns"&&this.v>=4);

	this.ie=(this.b=="ie"&&this.v>=4);

	this.dom=((document.createRange&&(document.createRange().createContextualFragment))?true:false);

}

est=new Browser();



function sh(div,state)

{

	clearTimeout(timer1);

	this.css=est.dom?document.getElementById(div).style:est.ie?document.all[div].style:est.ns?document.layers[div]:0;

	this.css.visibility=state;

	//this.css=est.dom?document.getElementById("tri"+div).style:est.ie?document.all["tri"+div].style:est.ns?document.layers["tri"+div]:0;

	//this.css.visibility=state;

}



var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height)

{

  if(popUpWin)

  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'')

}