jQuery.fn.slidemenu=function(options){this.each(function(){var slidemenu=this;slidemenu.options={openall:true,closeall:true,closealltext:'[ collapse all - ]',openalltext:'[ expand all + ]',homepage:'index',highlightcurrent:false};slidemenu.options=jQuery.extend(slidemenu.options,options);slidemenu.openall=function(obj){jQuery(obj).before("
"+slidemenu.options.openalltext+"
");jQuery("#expand_"+obj.id).click(function(){jQuery("#"+obj.id+" > li > a").find("+ ul").slideDown().parent().addClass("openMenu");return false;});};slidemenu.closeall=function(obj){jQuery(obj).after("
"+slidemenu.options.closealltext+"
");jQuery("#collapse_"+obj.id).click(function(){jQuery("#"+obj.id+" > li > a").find("+ ul").slideUp().parent().removeClass("openMenu");return false;});};slidemenu.highlightcurrent=function(obj,homepage){var path=location.pathname;var filebreak=path.lastIndexOf('.') if(filebreak>0){var path=path.substring(0,filebreak);var extension=path.substring(filebreak);} if(path=="/"+homepage+extension||path=="/"){var $nav=jQuery('#'+obj.id+' a[href="'+homepage+'"]');}else if(path==path+'/'){var $nav=jQuery('#'+obj.id+' a[href="'+path+'"/"]');}else{var $nav=jQuery('#'+obj.id+' a[href$="'+path+extension+'"]');} $nav.addClass('active') if($nav.parent().hasClass("submenu")){$nav.parent().toggleClass("openMenu").find("ul").show();}else{$nav.parents("ul").show().parent().toggleClass("openMenu")}};slidemenu.init=function(obj){jQuery("#"+obj.id+" > li").not(":has(a.active)").find("ul").hide().parent().removeClass("openMenu");if(slidemenu.options.closeall){slidemenu.closeall(obj);} if(slidemenu.options.openall){slidemenu.openall(obj);} if(slidemenu.options.highlightcurrent){slidemenu.highlightcurrent(obj,slidemenu.options.homepage)} jQuery("#"+obj.id+" > li a").click(function(){if(jQuery(this).parent().children("ul").length>=1){jQuery(this).parent().children("ul").slideToggle();jQuery(this).parent().toggleClass("openMenu");return false;}});};slidemenu.init(this);});} jQuery(document).ready(function(){jQuery("body").prepend('
');var cururl=window.location.href;var curtitle=document.title; jQuery(".slidemenu").slidemenu({openall:false,closeall:false});});var _gaq=_gaq||[];_gaq.push(['unm._setAccount','UA-3403606-2'],['unm._setDomainName','.unm.edu'],['unm._trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();