jQuery(document).ready(function() 
{	


	$("#buttons").addClass("hand");

	$("#buttons").find("li").click(function()
	{	
		if (!$(this).find("a").attr("href")) return;
		window.location=$(this).find("a").attr("href"); return false;
	});




	$("#buttons").find('.item1').hover(function()
	{
		$(".image1").fadeIn(200);
		$(".image2").fadeOut(200);
		$(".image3").fadeOut(200);
		
		$(".item1").find("em").fadeIn(200);
		$(".item2").find("em").fadeOut(200);
		$(".item3").find("em").fadeOut(200);
		
		$("#arrow").animate({top: '0'}, 400, function() {});
	},
	function()
	{
		
	});

	$("#buttons").find('.item2').hover(function()
	{
		$(".image1").fadeOut(200);
		$(".image2").fadeIn(200);
		$(".image3").fadeOut(200);
		
		$(".item1").find("em").fadeOut(200);
		$(".item2").find("em").fadeIn(200);
		$(".item3").find("em").fadeOut(200);
		
		$("#arrow").animate({top: '87'}, 400, function() {});
	},
	function()
	{
		
	});
	
	$("#buttons").find('.item3').hover(function()
	{
		$(".image1").fadeOut(200);
		$(".image2").fadeOut(200);
		$(".image3").fadeIn(200);
		
		$(".item1").find("em").fadeOut(200);
		$(".item2").find("em").fadeOut(200);
		$(".item3").find("em").fadeIn(200);
		
		$("#arrow").animate({top: '174'}, 400, function() {});
	},
	function()
	{
		
	});
	
	$('#content a').filter(function()
	{
	 	return this.hostname && this.hostname !== location.hostname;
  	}).addClass('external').attr("target", "_blank");
	

	
	
	$('a[rel*=facebox]').facebox();
		
	$(document).bind('afterReveal.facebox', function() {

	});

	
	
});


function repaste(object, value)
{
	if (object.value.replace (/^\s+/, '').replace (/\s+$/, '') == '') object.value = value;
}

function clearField(object, value)
{
	if (object.value == value) object.value = '';
}



