function color_div1(id){
	document.getElementById('pagetext').style.display = 'none';
	document.getElementById('p63').style.backgroundColor = '#bababa';
	document.getElementById('p64').style.backgroundColor = '#bababa';
	document.getElementById('p65').style.backgroundColor = '#bababa';
	document.getElementById(id).style.backgroundColor = '#a4a2a2';
}

function color_div2(id){
document.getElementById('s69').style.backgroundColor = '#d1d1d1';
document.getElementById('s70').style.backgroundColor = '#d1d1d1';
document.getElementById('s71').style.backgroundColor = '#d1d1d1';
document.getElementById('s72').style.backgroundColor = '#d1d1d1';
document.getElementById('s73').style.backgroundColor = '#d1d1d1';
document.getElementById('s150').style.backgroundColor = '#d1d1d1';
document.getElementById('s155').style.backgroundColor = '#d1d1d1';
document.getElementById('s156').style.backgroundColor = '#d1d1d1';
document.getElementById('s157').style.backgroundColor = '#d1d1d1';
document.getElementById('s151').style.backgroundColor = '#d1d1d1';
document.getElementById('s152').style.backgroundColor = '#d1d1d1';
document.getElementById('s153').style.backgroundColor = '#d1d1d1';
document.getElementById('s154').style.backgroundColor = '#d1d1d1';
document.getElementById('s158').style.backgroundColor = '#d1d1d1';
document.getElementById('s159').style.backgroundColor = '#d1d1d1';
document.getElementById(id).style.backgroundColor = '#c7c7c7';
}

function switchid(id){	
	hideallids();
	hideallidsSub();
	showdiv(id);
}

function hideallids(){
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 
			document.all.id.style.display = 'block';
		}
	}
}



function subswitch(idSub){	
	hideallidsSub();
	showdivSub(idSub);
}

function hideallidsSub(){
	for (var i=0;i<idsSub.length;i++){
		hidedivSub(idsSub[i]);
	}		  
}

function hidedivSub(idSub) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(idSub).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.idSub.style.display = 'none';
		}
	}
}

function showdivSub(idSub) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(idSub).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.idSub.display = 'block';
		}
		else { // IE 4
			document.all.idSub.style.display = 'block';
		}
	}
}
