$(document).ready(function() {
	$("a[href='"+window.location.href+"']").each(function(){
	    $(this).addClass("current");
    	});
	/* Help make the Navigation Work Crossbrowser */
	$("#nav ul").css({display: "none"}); // Opera Fix
	$("#nav li").hover(function(){
	$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(); },function(){ $(this).find('ul:first').css({visibility: "hidden"}); });
	
	/* Make our Search Work */
        $('#searchsubmit').click(function() {
            $('#searchform').submit();
        });
	
	$(".callOutItem").hover(function(){
		$self = $(this);
		$self.find('.overlay').hide();
		$self.find('.text').hide();
		$self.find('.rollover').show();
		$self.find('.rollovertext').stop().animate({top:"20px"},{queue:false,duration:200});
		$self.find('.rollover').stop().animate({top:"0px"},{queue:false,duration:200});
		$self.find('.rollovertext').show();
	}, function() {
		$self.find('.rollover').hide();
		$self.find('.rollovertext').hide();
		$self.find('.rollover').stop().animate({top:"-227px"},{queue:false,duration:300});
		$self.find('.rollovertext').stop().animate({top:"-227px"},{queue:false,duration:300});
		$self.find('.overlay').show();
		$self.find('.text').show();
	});
 $('li.current_page_item a.current').parents('.sub-menu').siblings('a').addClass('current');	
});

