function toggle_navsubs(prefix,count){	var target = ""		//determine the current display state	var state = document.getElementById("ni_" + prefix + "_1").style.display;		//call sub functions	if(state != "block")	{		open_navsubs(prefix,count)	}else	{		close_navsubs(prefix,count)	}}function close_navsubs(prefix,count){	var target = ""		//change the arrow	document.getElementById("nh_" + prefix).style.backgroundImage = "url(/interiors/arrow1.gif)"		//show/hide the nav suboptions	for(i=0;i<count;i++)	{		target = "ni_" + prefix + "_" + (i + 1)		document.getElementById(target).style.display="none";	}}function open_navsubs(prefix,count){	var target = ""		//change the arrow	document.getElementById("nh_" + prefix).style.backgroundImage = "url(/interiors/arrow2.gif)"		//show/hide the nav suboptions	for(i=0;i<count;i++)	{		target = "ni_" + prefix + "_" + (i + 1)		document.getElementById(target).style.display="block";	}}function close_all_navsubs(opener){	//var tell = opener	var items = new Array();		items['patient'] = 7;	items['dining'] = 2;	items['reception'] = 2;	items['living'] = 4;	items['other'] = 3;	items['window'] = 3;			//close_navsubs('patient',7);	//close_navsubs('dining',2);	//close_navsubs('reception',2);	//close_navsubs('living',4);	//close_navsubs('other',3);	//close_navsubs('window',3);		for(n in items)	{		if(opener == n || opener == 'all')		{			open_navsubs(n, items[n]);		}else		{			close_navsubs(n, items[n]);		}	}	//document.getElementById('test').innerHTML = tell	}
