// $(document).ready(function(){

// HoverAccordion for footer menu

//	$('.links first').hoverAccordion();
//		$('.links').hoverAccordion();
// });
$().ready(function(){
		$('#footer_menu_1').accordion({
		    active: false, 
		    header: '.acchead', 
			alwaysOpen: false, 			
			autoheight: false				
		});
		$('#footer_menu_2').accordion({								  
		    active: false, 
		    header: '.acchead', 
			alwaysOpen: false, 			
			autoheight: false				
		});
});
// public tabs

    $(function() {
    	$('#tab-container').tabs({
	});

			
// show and hide advanced filters emp

        $('div.filter_block:eq(0)> div').show(); 
        $('div.filter_block:eq(0)> h4').click(function() {
         var answer = $(this).next();
        if (answer.is(':visible')) {
             answer.slideUp();
             $(this).addClass('active');
         } else {
             answer.slideDown();
             $(this).removeClass('active');
         }  
        });
		
	  
//  show specific more advanced filters emp

        $('li.af_more').hide(); 
        $('li.af_geo_more').click(function() {
		          $('li.af_geo_more').hide(); 
  		          $('li.af_geo').show(); 
        });	
        $('li.af_exp_more').click(function() {
		          $('li.af_exp_more').hide(); 
  		          $('li.af_exp').show(); 
        });		
        $('li.af_edu_more').click(function() {
		          $('li.af_edu_more').hide(); 
  		          $('li.af_edu').show(); 
        });	
        $('li.af_sal_more').click(function() {
		          $('li.af_sal_more').hide(); 
  		          $('li.af_sal').show(); 
        });			

 
// button effect empl control panel

	$(".menu_buttons a").hover(function() {
	  $(this).next("em").animate({opacity: "show", top: "-75"}, "slow");
	}, function() {
	  $(this).next("em").animate({opacity: "hide", top: "-85"}, "fast");
	});



// public advanced filter slider

	$(".btn-slide").click(function(){
	  $("#adv-filters").slideToggle("slow");
	  $(this).toggleClass("active");
	});
});