/*  
Made by Martial Boissonneault © 2002-2003 http://getElementById.com/
May be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);

/*var showOpacity="";
var showOpacity="progid:DXImageTransform.Microsoft.Alpha(opacity=70)";*/

function show(id){
	// Netscape 4
	if(ns4){
		document.layers[id].visibility = "show";
	}
	// Explorer 4
	else if(ie4){
		document.all[id].style.visibility = "visible";
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		document.getElementById(id).style.visibility = "visible";
	}
}

function hide(id){
	// Netscape 4
	if(ns4){
		document.layers[id].visibility = "hide";
	}
	// Explorer 4
	else if(ie4){
		document.all[id].style.visibility = "hidden";
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		document.getElementById(id).style.visibility = "hidden";
	}
}

function setOpacity(id, opacity){

	var style = document.getElementById(id).style;
	if( style.MozOpacity != undefined ) { //Moz and older
		style.MozOpacity = opacity;
	}
	else if( style.filter != undefined ) { //IE
	
		style.filter = "Alpha(opacity=0)";

	}
	else if( style.opacity != undefined ) { //Opera
		style.opacity = opacity;
	}

}

function show_content(id) {
	// hide all other content
	for (i=1; i <= 3; i++)
	{
		if(i != id){
			document.getElementById("subsection" + i +"_link").className = "subsection-heading-link";
			hide("subsection" + i);
		}
	}
	
	document.getElementById("subsection" + id + "_link").className = "subsection-heading-selected";
	show("subsection" + id);


}