$(document).ready(function(){
	
	$(".logo a").hover(
		function(){
			$(this).animate({paddingLeft:"15px"}, "easeout")
		},
		function(){
			$(this).animate({paddingLeft:"0px"},"easeout")
		}
	)
	$("#logobar div a").hover(
		function(){
			$(this).animate({letterSpacing:"2"}, "easeout")
		},
		function(){
			$(this).animate({letterSpacing:"0"}, "easeout")
		}
	)
	$(".language a").hover(
		function(){
			$(this).animate({letterSpacing:"2px", fontSize:"15px"},"ëaseout")
		},
		function(){
			$(this).animate({letterSpacing:"0px", fontSize:"13px"},"easeout")
		}
	)
	$("#leftcol a").hover(
		function(){
			$(this).animate({paddingLeft:"15px"},"easeout")
		},
		function(){
			$(this).animate({paddingLeft:"0px"},"easeout")
		}
	)
	
	$(".box").hover(
		function(){
			$(this).animate({top:"-10px"},"easeout")
		},
		function(){
			$(this).animate({top:"7px"},"easeout")
			$(this).animate({top:"0px"},"easeout")
		}
	)
	
});

$(document).ready(function() {
	$('#publishing-policy').hide();
	$(".publishing-policy").click(
	function () {
		$('#publishing-policy').slideDown("fast");
	});
	$(".close-publishing-policy").click(
	function () {
		$('#publishing-policy').slideUp("fast");
	});
	$(".close-publishing-policy-footer").click(
	function () {
		$('#publishing-policy').slideUp("fast");
	});

});


$(document).ready(function() {
	$(".prof-box:last").css({marginRight: '0px'})
	$("div.prof-box a").click(function() {
		$(".popup_overlay").fadeIn("normal").css('z-index', '100');
		$("#popup").fadeIn("fast");	
			var tgt = $(this).attr("rel");
			$("#"+tgt).fadeIn("fast");		
	});		
	$(".close-btn").click(function() {
		$(".popup_overlay").fadeOut("normal")
		$("#popup").fadeOut("fast");		
		$(".prof-wrapper div").fadeOut("fast");
	});		
});


$(document).ready(function() {
    $(".vol-box:last").css({ marginRight: '0px' })
    $("div.vol-box a").click(function() {
        $(".popup_overlay").fadeIn("normal").css('z-index', '100');
        $("#popup").fadeIn("fast");
        var tgt = $(this).attr("rel");
        $("#" + tgt).fadeIn("fast");
    });
    $(".close-btn").click(function() {
        $(".popup_overlay").fadeOut("normal")
        $("#popup").fadeOut("fast");
        $(".vol-wrapper div").fadeOut("fast");
    });
});

