$(document).ready(function(){    
    $('.homevac').hide();
    $('.homevac:first').show();
    $('.empinfo').hide();
    $('.empinfo:first').show();
    
    var hash = false; 
    checkHash();
   
    $('#hbtabs').tabs({
        select: function(event, ui) {
            $('.homevac').hide();
            $('#jobs-' + ui.panel.id).show();
        },
        load: function(event, ui) {
            $('#tech').hide();
        }
   });
   
   $('#employertabs').tabs({
	   select: function(event, ui) {
            $('.empinfo').hide();
            $('#employers-' + ui.panel.id).show();
        },
        load: function(event, ui) {
           // $('#tech').hide();
        }
   });
   
   function checkHash(){         
    hash = window.location.hash; 
    if(hash.length > 0){
        var id = hash.substring(1);
        $('.empinfo:first').hide();
        $('#employers-' + id).show();                   
    }
   }

});

