// CSS Top Menu- By JavaScriptKit.com (http://www.javascriptkit.com)
// Adopted from SuckerFish menu
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// Please keep this credit intact

startMenu = function() {
if (document.all&&document.getElementById) {
cssmenu = document.getElementById("csstopmenu");
for (i=0; i<cssmenu.childNodes.length; i++) {
node = cssmenu.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function(){                  
this.className=this.className.replace(" over", "")
}
}
}
}
}

if (window.attachEvent)
window.attachEvent("onload", startMenu)
else
window.onload=startMenu;

function contentswitch(area1,area2,area3)
{
		if (area1 == "alert") {
		  title1 = area1 + "title"
		  document.getElementById(title1).style.background = "#FFE6E6";
		  document.getElementById(title1).style.borderBottom = "1px solid #FFE6E6";
		} else {
		  title1 = area1 + "title"
		  document.getElementById(title1).style.background = "#EFF9FD";
		  document.getElementById(title1).style.borderBottom = "1px solid #EFF9FD";
		}
		content1 = area1 + "content"
		document.getElementById(content1).style.display = "block";
		
		title2 = area2 + "title"
		document.getElementById(title2).style.background = "#FCFCF4";
		document.getElementById(title2).style.borderBottom = "none";
		content2 = area2 + "content"
		document.getElementById(content2).style.display = "none";
		
		  title3 = area3 + "title"
		  document.getElementById(title3).style.background = "#FCFCF4";
		  document.getElementById(title3).style.borderBottom = "none";
		  content3 = area3 + "content"
		  document.getElementById(content3).style.display = "none";
}

function contentswitch2(area1,area2)
{
		title1 = area1 + "title"
		document.getElementById(title1).style.background = "#EFF9FD";
		document.getElementById(title1).style.borderBottom = "1px solid #EFF9FD";
		content1 = area1 + "content"
		document.getElementById(content1).style.display = "block";
		
		title2 = area2 + "title"
		document.getElementById(title2).style.background = "#FCFCF4";
		document.getElementById(title2).style.borderBottom = "none";
		content2 = area2 + "content"
		document.getElementById(content2).style.display = "none";

}
