/* no conflict with the other library still being used 
won't always have to do this
*/
var $jq = jQuery.noConflict();

$jq(document).ready(function() {
 
	$jq("ul#mainnav li").hover(
	
	    function(e){ 
		
			$jq(this).closest("li").children("ul").addClass("submenu").show();
		
		},
		function(e){ 
		
			$jq(this).closest("li").children("ul").hide();
		
		}
			  
    );
	
	$jq("ul#mainnav li ul li a").hover(
	
	    function(){ 
			
			$jq(this).closest("ul").closest("li").addClass("current");
		
		},
		function(){ 
		
			$jq(this).closest("ul").closest("li").removeClass("current");
		
		}
			  
    );

});
