$(function() 
{
	$(".folio a").append("<em></em>");
	
	$(".folio a").hover(function() {
		$(this).find("em").animate({opacity: "show", top: "-29"}, "fast");
		var hoverText = $(this).attr("title");
	    $(this).find("em").text(hoverText);
	}, function() {
		$(this).find("em").animate({opacity: "hide", top: "-25"}, "fast");
	});


		$("a.hover").wrapInner(document.createElement("span"));
		
		// set opacity to nill on page load
		$("a.hover span").css("opacity","0");
		// on mouse over
		$("a.hover span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});
		
		
		
		// set opacity to nill on page load
		$("#language a span").css("opacity","0");
		// on mouse over
		$("#language a span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "slow");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});

});



$(function(){
	/*
	$('#menuList a')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 -168px)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:500})
		})
		
	*/
	$('p.btnHover a')

		.css( {backgroundPosition: "0 -270px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 -170)"}, {duration:200})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0 -270px)"}, {duration:200})
		})
	
		
	/*
	$('#menuList a')
		.css( {backgroundPosition: "-20px 0px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(-20px 300px)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(40px 0)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "-20px 0"})
			}})
		})
*/

});

