// JavaScript Document
var numdivs=4

var IE5=NN4=NN6=false
if(document.all)IE5=true
else if(document.layers)NN4=true
else if(document.getElementById)NN6=true

function showDiv(which, start, last) {
if(last) num=last;
else num=numdivs;
if(start) i=start;
else i=0;
	for(;i<num;i++) {
		if(NN4) eval("document.div"+i+".display='none'");
		if(IE5) eval("document.all.div"+i+".style.display='none'");
		if(NN6) {
			eval("document.getElementById('div"+i+"').style.display='none'");
		}
	}
	
	if(NN4) {
		eval("document.div"+which+".display='block'");
		
	}
	if(IE5){
		eval("document.all.div"+which+".style.display='block'");
	}
	if(NN6) {
		eval("document.getElementById('div"+which+"').style.display='block'");
	}
}
function hideDiv(which){
	if(NN4) {
		eval("document.div"+which+".visibility='hidden'");
	}
	if(IE5){
		eval("document.all.div"+which+".style.visibility='hidden'");
	}
	if(NN6) {
		eval("document.getElementById('div"+which+"').style.visibility='hidden'");
	}
}

function init() {
	showDiv(0);
}

function change(evt){
	evt = (evt) ? evt : event;
    var target = (evt.target) ? evt.target : evt.srcElement;
document.getElementById(target.id).style.backgroundColor='#225286'
document.getElementById(target.id).style.color='#FFFFFF'
}

function changeColor(w,n){
if(n) {num=n}
else {num=numdivs}
	for(i=0;i<num;i++){
		eval("document.getElementById('div_link"+i+"').style.backgroundColor='#DCE1E7'")
		eval("document.getElementById('div_link"+i+"').style.color='#225286'")
	}
	eval("document.getElementById('div_link"+w+"').style.backgroundColor='#225286'")
	eval("document.getElementById('div_link"+w+"').style.color='#FFFFFF'")
}

function showDiv(which) {

	
	if(NN4) {
		eval("document.menu_div_"+which+".display='block'");
		eval("document.menu_expand_"+which+".innerHTML='-'");
		
	}
	if(IE5){
		eval("document.all.menu_div_"+which+".style.display='block'");
		eval("document.all.menu_expand_"+which+".innerHTML='-'");
	}
	if(NN6) {
		eval("document.getElementById('menu_div_"+which+"').style.display='block'");
		eval("document.getElementById('menu_expand_"+which+"').innerHTML='-'");
	}
}
function hideDiv(which){
if(NN4) {
		eval("document.menu_div_"+which+".visibility='hidden'");
		
	}
	if(IE5){
		eval("document.all.menu_div_"+which+".style.visibility='hidden'");
	}
	if(NN6) {
		eval("document.getElementById('menu_div_"+which+"').style.visibility='hidden'");
	}
}

function toggleview(elem) {
   element1 = document.getElementById('menu_div_'+elem);
   expand= document.getElementById('menu_expand_'+elem);
   var test= (element1.style.display=="block") ? "0": "1";
   if (element1.style.display == 'block' || element1.style.display=='' || !test){
      element1.style.display = 'none';
	   expand.innerHTML="+"
   }
   else{
      element1.style.display = 'block';
	  expand.innerHTML="-"
   }
   return;
}
