/* --------- Supersubs, makes menu the length of longest line ------*/

$(document).ready(function(){ 
	$("ul.sf-menu").supersubs({ 						
	minWidth:		12,	// minimum width of sub-menus in em units 
	maxWidth:		27,	// maximum width of sub-menus in em units 
	extraWidth:	1	// extra width can ensure lines don't sometimes turn over  
	}).superfish();	// call supersubs first, then superfish, so that subs are 
				// not display:none when measuring. Call before initialising 
				// containing tabs for same reason.
});

 /* --------- Random image in sidebar ------*/

$(document).ready(function() {
	$(".rcontent").hide();
	var randNum = (Math.floor(Math.random() * 7))+1;
	$("#random"+randNum).show();
});
     
 /* --------- Add value to form ------*/

$(document).ready(function() {
	$('.date-a').example('(m/d/y)');
	$('.phone').example('(###) ### ####');
	$('.exp').example('Expiry (m/d/y)');
	$('.cert').example('Certification #');
	$('.from').example('From (m/d/y)');
	$('.to').example('To (m/d/y)')
 });
 
 /* --------- Employment form. Reveal more content ------*/ 
 
$(document).ready(function() {
	$('.more').hide();
	$('a.show').click(function() {
	$('.more').show('medium');
	return false;
});});
 
 /* --------- Employment form Validation ------*/

$(document).ready(function() {
	var formValidator = new ValidatorClass();
	formValidator.init({
	form:		"#employment",
	isRequired:	['_01_Date', '_02_Position', '_03_Date_Available'],
	bindElement:	'#submit'
});

 /* --------- Add "javascript-enabled" class to body ------*/ 
$(document).ready(function(){
	$("body").addClass
	("javascript-enabled");
});



$(".bucket").click(function() {
  window.location = $(this).find("h4:first a:first").attr("href");
});


    $(".bucket").hover(
      function() {
        $(this).addClass("hover");
      },
      function() {
        $(this).removeClass("hover");
      }
    );





});	