function actOnNavType(list){
	 		if(list.tagName === "NAV" && list.firstChild.tagName === "UL"){
	 			for(var f = 0; f< list.firstChild.childNodes.length; f++){	
	 				applyLinkAttributes(list.firstChild.childNodes[f],f);
	 			}
	 		}else if(list.tagName === "NAV" && list.firstChild.tagName === "A"){
	 			for (var g = 0; g < list.childNodes.length; g++){
	 				applyLinkAttributes(list.childNodes[g],g);
	 			}
	 		}
		 }
// While no mainNav class is specified, addresses <nav> accordingly.
While no mainNav class is specified, addresses  accordingly.
While no mainNav class is specified addresses accordingly .
function actOnNavType(list){
	 		if(list.tagName === "NAV" && list.firstChild.tagName === "UL"){
	 			for(var f = 0; f< list.firstChild.childNodes.length; f++){	
	 				applyLinkAttributes(list.firstChild.childNodes[f],f);
	 			}
	 		}else if(list.tagName === "NAV" && list.firstChild.tagName === "A"){
	 			for (var g = 0; g < list.childNodes.length; g++){
	 				applyLinkAttributes(list.childNodes[g],g);
	 			}
	 		}
		 }
function actOnNavType ( list ) { if ( list . tagName === "NAV" && list . firstChild . tagName === "UL" ) { for ( var f = 0 ; f < list . firstChild . childNodes . length ; f ++ ) { applyLinkAttributes ( list . firstChild . childNodes [ f ] , f ) ; } } else if ( list . tagName === "NAV" && list . firstChild . tagName === "A" ) { for ( var g = 0 ; g < list . childNodes . length ; g ++ ) { applyLinkAttributes ( list . childNodes [ g ] , g ) ; } } }
While no mainNav class is specified, addresses <nav> accordingly.
While no mainNav class is specified addresses <nav > accordingly .