 if ( $.browser.msie ) {
//Hide Nav Bar
 } else {
jQuery.fn.exists = function(){return jQuery(this).length>0;}
$(document).ready(function(){	
	$("li.hide").hover(function() { //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$('ul',this).fadeIn(); //Drop down the subnav on click
                $('ul',this).topZIndex(); //Make front
		$(this).hover(function() {
		}, function(){
			$('ul',this).fadeOut('fast'); //When the mouse hovers out of the subnav, move it back up
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
			$('ul',this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$('ul',this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	

/*
	TopZIndex 1.2 (October 21, 2010) plugin for jQuery
	http://topzindex.googlecode.com/
	Copyright (c) 2009-2011 Todd Northrop
	http://www.speednet.biz/
	Licensed under GPL 3, see  <http://www.gnu.org/licenses/>
*/
(function(a){a.topZIndex=function(b){return Math.max(0,Math.max.apply(null,a.map((b||"*")==="*"?a.makeArray(document.getElementsByTagName("*")):a(b),function(b){return parseFloat(a(b).css("z-index"))||null})))};a.fn.topZIndex=function(b){if(this.length===0)return this;b=a.extend({increment:1},b);var c=a.topZIndex(b.selector),d=b.increment;return this.each(function(){this.style.zIndex=c+=d})}})(jQuery);

});
}

