


/* for section highlight */
isInString = function(str1, str2) {
    try {
      var reg=new RegExp(".*"+str1+".*$","i");  
      if(str2.match(reg))
         return true;
      else
         return false;    
    }
    catch(e) {return false}
}

selectTab = function() {
    var href = location.href;
    jQuery('#site-globalnav a').each(function(i){
        if(i>0) {
            tabhref = this.href;
            if (isInString(tabhref, href)) {
                jQuery(this).parents('li').addClass('selected')
            }
        }        
    })
}

jQuery(document).ready(selectTab);
