var ids;
var selected;

function initselectionLevel3(param)
{
   ids= param;
   selected = ids[0].substr(0, ids[0].length-1);   

   if (location.search != "")
   {
	var x = location.search.substr(1).split(";")
	var y = x[0].split("=");
	if (y[1] != "")
		switchid(y[1]);
   }
}

function switchid(id){	hideallids();	showdiv(id+"1");
		document.getElementById("img_"+selected).style.backgroundColor = "white";		
		selected = id;				
		document.getElementById("img_"+selected).style.backgroundColor = "#2B60DE";	
}

function hideallids(){	for (var i=0;i<ids.length;i++){	hidediv(ids[i]);}}

function hidediv(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) { 
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';		}
		else { // IE 4
			document.all.id.style.display = 'block';}}}	
	

function borderIn(id)	{	if (selected != id) document.getElementById("img_"+id).style.backgroundColor = "3BB9FF";	}

function borderOut(id)	{		if (selected != id) document.getElementById("img_"+id).style.backgroundColor = "white";	}