// JavaScript Document

//                                         
// init                                    
//                                         




//                                         
// common functions                        
//                                         



// mouseover and mouseout functions                                                  
function a1In(imgGroup,imgId) {
	if (document.images && initOk) {
		document.images[imgGroup + "_" + imgId].src = arr_img[imgGroup][imgId]["1"].src;
		// ahl website special
		if (imgGroup == 'menu') document.images["menuDisp"].src = menuDisp[imgId].src;
	}
}
function a1Out(imgGroup,imgId) {
	if (document.images && initOk) {
		document.images[imgGroup + "_" + imgId].src = arr_img[imgGroup][imgId]["0"].src;
		// ahl website special
		if (imgGroup == 'menu') document.images["menuDisp"].src = menuDisp[arr_img["menu"]["activeItem"]].src;
	}
}

// makes a div visible | divObj:  the div to make visible
function showDiv(divObj) {	
	if (initOk) {
		obj = document.getElementById(divObj);
		obj.style.visibility = "visible";
		obj.blur(); //weg mit dem ekligen IE.mac-focus-rectangle !

	}
}

// makes a div invisible
function hideDiv(divObj) {	
	if (initOk) {
		obj = document.getElementById(divObj);
		obj.style.visibility = "hidden";
	}
}




//                                         
// list functions                          
//                                         

function invertRow (elmt) {
	eA = document.getElementById("r"+elmt);
	eB = document.getElementById("r"+elmt+'B');
	eC = document.getElementById("r"+elmt+'C');
	eA.style.backgroundColor = eB.style.backgroundColor = eC.style.backgroundColor = "#000000";
	eA.style.color = eB.style.color = eC.style.color = "#ffffff";
}

function invertInactRow (elmt) {
	eA = document.getElementById("r"+elmt);
	eB = document.getElementById("r"+elmt+'B');
	eC = document.getElementById("r"+elmt+'C');
	eA.style.backgroundColor = eB.style.backgroundColor = eC.style.backgroundColor = "#eeeeee";
}

function normalizeRow(elmt) {
	eA = document.getElementById("r"+elmt);
	eB = document.getElementById("r"+elmt+'B');
	eC = document.getElementById("r"+elmt+'C');
	eA.style.backgroundColor = eB.style.backgroundColor = eC.style.backgroundColor = "#ffffff";
	eA.style.color = eB.style.color = eC.style.color = "#000000";
}






// blocking()
// Source: www.xs4all.nl/~ppk

var supported = (document.getElementById || document.all);

if (supported)
{
	document.write("<style type='text/css'>");
	document.write(".dropdown { display:block; }");
	document.write(".dropdown_title { display:block; }");
	document.write("</style>");

	var max = 100;
	var shown = new Array();

//	for (var i=1;i<=max;i++)
//	{
//		shown[i+1] = false;
//	}

}




function blocking(name)
{
	
	if (!supported)
	{
		alert('This link does not work in your browser.');
		return;
	}
	
	var section = '"' + name + '"';
	
	
	shown[section] = (shown[section]) ? false : true;
	

	current = (shown[section]) ? 'block' : 'none';
	

	if (document.getElementById)
	{
		document.getElementById(name).style.display = current;
	}
	else if (document.all)
	{
		document.all[name].style.display = current;	
	}

}





