/*navHover = function() {
	var lis = document.getElementById("topmenu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) { 
	     
		lis[i].onmouseover=function() {
			this.className+=" iehover"; 
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);
*/
/* Using JQuery 1.8.1 */
 $(document).ready(function(){

	 $("#templateMenu a[href='#']").mouseover(function(){
		   var subItemID = "#sub" + $(this).attr("id");
		   $(subItemID).show();
		   return false;
	 });
	 $("#templateMenu ul ul").mouseover(function(){
		   $(this).show();
		   return false;
	 });
	 $("#templateMenu a[href='#']").mouseout(function(){
		   var subItemID = "#sub" + $(this).attr("id");
		   $(subItemID).hide();
		   return false;
	 });
	 $("#templateMenu ul ul").mouseout(function(){
		   $(this).hide();
		   return false;
	 });
	
 }); 
