function activateA(cur) {
	var t = cur;
	if (t) {
		t=t.firstChild;
		if (t) {
			var pos = t.className.indexOf('firstlevellink');
			if (pos>=0) {
				t.className += ' hoveratag';
			}
		}
	}
}

function deActivateA(cur) {
	var t = cur;
	if (t) {
		t=t.firstChild;
		if (t) {
			var pos = t.className.indexOf('firstlevellink');
			if (pos>=0) {
				t.className=t.className.replace(" hoveratag", "");
			}
		}
	}
}

// IE only makes :hover work on LI tags
activateMenu = function(nav) {


/*
var ie = (( !!document.all && !!!document.getElementById ) ? 1 : 0 ); 
// Check whether it is an IE based browser or not.
var onHover = "#555555"; 
// Specify the color of the link when hovered.
 var offHover = "#B3000A"; 
 // Color of the link under normal state.
 var tag = "a" || "A";
 var xNode = (( ie ) ? document.all.tags( tag ) : document.getElementsByTagName( tag )); // Filtering all A/a Tags on the page. 
 for ( var x = 0; x < xNode.length; x++ ) 
 { // Installing hover events     
 xNode[ x ].onmouseover = ( function() 
 {      
 this.style.color = onHover;        
 this.onmouseout = (
 function() {   
 this.style.color = offHover;     
 } );    
 } );   
 }}*/




	/* Get all the list items within the menu */
	var ie = (( !!document.all && !!!document.getElementById ) ? 1 : 0 ); 
	var navroot = document.getElementById(nav);
	var lis=navroot.getElementsByTagName("LI"); 
	//var lis=document.getElementsByTagName("*");
	var lis = (( ie ) ? document.all.tags( "LI" ) : document.getElementsByTagName( "LI" )); // Filtering all 
		//alert(lis.length);
		
	for (i=0; i<lis.length; i++) {
		/* If the LI has another menu level */
		if(lis[i].lastChild.tagName=="UL"){
		
			/* assign the function to the LI */
			lis[i].onmouseover=function() {		
				/* display the inner menu */
				this.lastChild.style.display="block";
				//activateA(this);

	/* for hiding the dropdown of the top menu on video page  ---- modified on 21Jan */
				var obj1 = document.getElementById("videoContainer");
				if(obj1 != null) {
				this.lastChild.style.display="none";
				deActivateA(this);
				}
				else{
					activateA(this); 
				 }
			}
			lis[i].onmouseout=function() {                       
				this.lastChild.style.display="none";
				deActivateA(this);
			}
		}
	}
}


