//<![CDATA[ 


function switchMenu(inComingID, state, clicked, activate) {
thisMenu = document.getElementById(inComingID);
var activeMenu = "#e81d08";
var activeMenuBg = "url(/files/2/ping-red.gif)";
var inactiveMenu = "#ff6200";
var inactiveMenuBg = "url(/files/2/ping.gif)";
if (clicked == 1){
thisMenu.onmouseout = "";
}
if (activate ==1)
{
thisMenu.onmouseout = function (onmouseout){
switchMenu(this.id, 'off');
}
}
var menuBgRepeat = "repeat-x";
	if (state=='on'){
	thisMenu.style.backgroundColor = activeMenu;
	thisMenu.style.backgroundImage = activeMenuBg;
	thisMenu.style.backgroundRepeat = menuBgRepeat;
	}
	else if (state=='off'){
	thisMenu.style.backgroundColor = inactiveMenu;
	thisMenu.style.backgroundImage = inactiveMenuBg;
	thisMenu.style.backgroundRepeat = menuBgRepeat;
	}
}
function swapSearch(inComing){
activeBackground = document.getElementById('search');

switchMenu('menu1','off','','1');
switchMenu('menu2','off','','1');
switchMenu('menu3','off','','1');
//switchMenu('menu4','off','','1');
switchMenu(inComing,'on', '1');
}
function expandDiv(inComingDIV){
document.getElementById(inComingDIV).style.display = "block";
}

function toggle(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}


//]]>
