/*collapse expand single item
ic: internet connection
*/

imgout = new Image(9,9);
imgin = new Image(9,9);

/////////////////BEGIN USER EDITABLE///////////////////////////////
	imgout.src = "gfx/icoon/plus.gif";
	imgin.src = "gfx/icoon/min.gif";
///////////////END USER EDITABLE///////////////////////////////////

//this switches expand collapse icons
function filter(imagename,objectsrc){
	if (document.images){
		document.images[imagename].src=eval(objectsrc+".src");
	}
}

//show OR hide funtion depends on if element is shown or hidden
function shoh(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			filter(("img"+id),'imgin');			
		} else {
			filter(("img"+id),'imgout');
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				filter(("img"+id),'imgin');
			} else {
				filter(("img"+id),'imgout');	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				filter(("img"+id),'imgout');
				document.all.id.style.display = 'none';
			}
		}
	}
}

function rowOver(id, nColor) {
	if (!nColor) nColor = "#DFBD4E"; // E2EEFA FF9900
	var nameObj = (document.getElementById) ? document.getElementById('name' + id) : eval("document.all['name" + id + "']");
	if (nameObj != null) nameObj.style.background=nColor;
}
function rowOut(id, nColor) {
	var trObj = (document.getElementById) ? document.getElementById('box' + id) : eval("document.all['box" + id + "']");
	var nameObj = (document.getElementById) ? document.getElementById('name' + id) : eval("document.all['name" + id + "']");
	if (trObj == null || trObj.style.display=="none") nameObj.style.background=nColor;
}

