$(document).ready(function(){
	$(".text_switch").focus(function(){
		if($(this).val() == $(this).attr("rel"))
		{
			$(this).val("");
			$(this).removeClass("default_text");
		}
	});
	
	$(".text_switch").blur(function(){
		if($(this).val() == "")
		{
			$(this).val($(this).attr("rel"));
			$(this).addClass("default_text");
		}
	});
	
	$(".text_switch").each(function(){
		if($(this).val() == $(this).attr("rel") && $(this).attr("rel") != "")
		{
			$(this).addClass("default_text");
		}
	});
	
	$(".text_switch_submit").submit(function(){
		$(".text_switch").unbind("focus").unbind("blur");
		$(".text_switch").each(function(){
			if($(this).val() == $(this).attr("rel"))
			{
				$(this).val("");
			}
		});
	});
	
	$("a[rel^='prettyPhoto']").prettyPhoto();

	$('#leader_photos').cycle({ 
		delay:  4000, 
		speed:  1000 
	});
});