function actOnMainNavType(list){	 	
		 	for(var h = 0; h < list.length; h++){
			 	if(list[h].firstChild.tagName === "UL"){
			 		for(var i = 0; i < list[h].firstChild.childNodes.length; i++){		 			
			 			applyLinkAttributes(list[h].firstChild.childNodes[i],i);
			 		}
			 	}else if(list[h].firstChild.tagName === "A"){
			 		for(var j = 0; j < list[h].childNodes.length; j++){	
			 			applyLinkAttributes(list[h].childNodes[j],j);
			 		}
			 	}
			 }
		 }
//When mainNav class is specified:
When mainNav class is specified.
When mainNav class is specified .
function actOnMainNavType(list){	 	
		 	for(var h = 0; h < list.length; h++){
			 	if(list[h].firstChild.tagName === "UL"){
			 		for(var i = 0; i < list[h].firstChild.childNodes.length; i++){		 			
			 			applyLinkAttributes(list[h].firstChild.childNodes[i],i);
			 		}
			 	}else if(list[h].firstChild.tagName === "A"){
			 		for(var j = 0; j < list[h].childNodes.length; j++){	
			 			applyLinkAttributes(list[h].childNodes[j],j);
			 		}
			 	}
			 }
		 }
function actOnMainNavType ( list ) { for ( var h = 0 ; h < list . length ; h ++ ) { if ( list [ h ] . firstChild . tagName === "UL" ) { for ( var i = 0 ; i < list [ h ] . firstChild . childNodes . length ; i ++ ) { applyLinkAttributes ( list [ h ] . firstChild . childNodes [ i ] , i ) ; } } else if ( list [ h ] . firstChild . tagName === "A" ) { for ( var j = 0 ; j < list [ h ] . childNodes . length ; j ++ ) { applyLinkAttributes ( list [ h ] . childNodes [ j ] , j ) ; } } } }
When mainNav class is specified:
When mainNav class is specified :