
/* pagel wolf */
		window.onload=function(){
 			addYouAreHere();
		}//end window onload

var strLocation = window.location.href;
var iOffset = strLocation.indexOf('//');
var iEnd = strLocation.length; 
var strMatch = (strLocation.substring(iOffset, iEnd));
//alert("1. URL STRING: " + strMatch);
	
function getIDFromHref(strHref) {
    //alert("3. " + strHref);
  	var iOffsetLI = strHref.indexOf('//');
  	var iEndLI = strHref.length; 
  	//alert("4. IDfromHREF " + strHref.substring(iOffsetLI, iEndLI));
  	return strHref.substring(iOffsetLI, iEndLI);
  } // end getIDFromHref
		
// Function to add class="current" to the appropriate LI
function addYouAreHere() {
//alert("urhere");
	var listElement = document.getElementById("navigation");
	var objAnchors = listElement.getElementsByTagName('a');
    // Iterate through all anchors in the top navigation
        	for (var iCounter=0; iCounter<objAnchors.length; iCounter++) {
			//alert("iCounter " + iCounter + "   " + "objAnchors.length " + objAnchors.length);
			//alert("2. first for: " + objAnchors[iCounter].href);
      	  	// Locate the associated li container,
          	// and style it
         	var strID = getIDFromHref(objAnchors[iCounter].href);
			if(strID == strMatch) {
				//alert("Match " + objAnchors[iCounter].parentNode.nodeName);
				objAnchors[iCounter].parentNode.className = 'current';
				}//end if match
		  	 }//end for
		}//end ur here


	

