var currentHire;

function breakHire()
{
	$(".sublink").unbind('mouseover').unbind('mouseout');
	
	$("rentLink").unbind('click');
	$("eurocrewLink").unbind('click');
}

function setupHire()
{
	currentHire = "";
	
	$("#blurbDiv").css("width","650px");
	$("#blurbDiv").css("top","30px");
	
	$('.sublink').hover(function() { 
	      $(this).stop().animate({ paddingTop: '0px' }, 400); 
	   }, function() {   
		   $(this).stop().animate({ paddingTop: '5px' }, 400); 
	   }); 
	
	$(this).oneTime(100, function() {
		$("#imgLeft").toggle(fx, {direction:animDirection, easing:'easeOutCirc'}, duration, hireReady);
		$(".linksBanner").fadeIn(2000);
	});
		
	$("#rentLink").click(function() {
		if (currentHire=="rent")
			return;
		
		currentHire="rent";
		$("#blurbDiv").fadeOut(500, hire_loadRent);
		$("#middleContentDiv").stop().animate({ height: '390px' }, 400);
		$("#contentDiv").stop().animate({ height: '830px' }, 400);
	});
	
	$("#eurocrewLink").click(function() {
		if (currentHire=="eurocrew")
			return;
		
		currentHire="eurocrew";
		$("#blurbDiv").fadeOut(500, hire_loadEurocrew);
		$("#middleContentDiv").stop().animate({ height: '415px' }, 400);
		$("#contentDiv").stop().animate({ height: '850px' }, 400);
	});
}

function hire_loadRent()
{
	$("#blurbDiv").load("content/hire_rent.html", hire_rentLoaded);
}

function hire_loadEurocrew()
{
	$("#blurbDiv").load("content/hire_eurocrew.html", hire_eurocrewLoaded);
}

function hire_rentLoaded()
{
	$("#blurbDiv").fadeIn(500);
	$("#blurbDiv").columnize({width:150, height:330, buildOnce:true});
}

function hire_eurocrewLoaded()
{
	$("#blurbDiv").fadeIn(500);
	$("#blurbDiv").columnize({width:150, height:330, buildOnce:true});
}

function hireReady()
{
	$("#blurbDiv").fadeIn(500);
	$(".sepDiv01").fadeIn(500);
	$("#blurbDiv").columnize({width:200, height:140, buildOnce:true});
}