engine = null;
if (window.navigator.appName == "Microsoft Internet Explorer")
{
   // This is an IE browser. What mode is the engine in?
   if (document.documentMode) // IE8
      engine = document.documentMode;
   else // IE 5-7
   {
      engine = 5; // Assume quirks mode unless proven otherwise
      if (document.compatMode)
      {
         if (document.compatMode == "CSS1Compat")
            engine = 7; // standards mode
      }
   }
   // the engine variable now contains the document compatibility mode.
}

function submenuOpen(id) {
	if(engine) {
		if(engine<8) {
			if(document.getElementById("submenu_container"+id).className=="template_submenu_container") {
				document.getElementById("submenu_container"+id).style.display="block";
				document.getElementById("submenu"+id).style.zIndex="10";
			}
		}
	}
}

function submenuClose(id) {
	if(engine) {
		if(engine<8) {
			if(document.getElementById("submenu_container"+id).className=="template_submenu_container") {
				document.getElementById("submenu_container"+id).style.display="none";
				document.getElementById("submenu"+id).style.zIndex="1";
			}
		}
	}
}
