if (document.images)
{
  pic1= new Image(100,25); 
  pic1.src="http://someplace.com/image1.gif"; 
}


function redirect(val)
{
	top.location=val;
}

$(document).ready(function(){	
	
	$(".clickable").click(function(){		
		/* duplico o item clicado e aplico o efeito no mesmo */
		$('#'+ $(this).attr("id") +'img').clone().addClass(""+$(this).attr("id")+"").insertAfter(this)
		.animate({ 		
        width: "+=50",
        opacity: 0.0,		        
        height: '+=50',
		top: '-=25',
		left: '-=25'
		}, 500 );
		/* redireciono pra pagina especifica desse link */
		if ($(this).attr("id") == "eng"){
			//alert("Sorry, english version are under construction");
			setTimeout('redirect("http://www.fernandarodante.com/eng/")',600);		
		}else if($(this).attr("id") == "it"){
			//alert("Sorry, italian version are under construction");
			setTimeout('redirect("http://www.fernandarodante.com/it/")',600);		
		}else if($(this).attr("id") == "pt"){
			setTimeout('redirect("http://www.fernandarodante.com/")',600);		
		}else{
			setTimeout('redirect("'+ $(this).attr("id") +'.htm")',600);		
		}
	});

	$('.rollover').mouseenter(function(){
		var currentImg = $('#'+ $(this).attr("id") +'img').attr('src');
		$('#'+ $(this).attr("id") +'img').attr('src', $('#'+ $(this).attr("id") +'img').attr('hover'));
		$('#'+ $(this).attr("id") +'img').attr('hover', currentImg);
		/* exibo texto do link */
		$('#'+ $(this).attr("id") +'txt').fadeIn("slow");
		
    }).mouseleave(function(){
		var currentImg = $('#'+ $(this).attr("id") +'img').attr('src');
		$('#'+ $(this).attr("id") +'img').attr('src', $('#'+ $(this).attr("id") +'img').attr('hover'));
		$('#'+ $(this).attr("id") +'img').attr('hover', currentImg);
		/* escondo texto do link */
		$('#'+ $(this).attr("id") +'txt').fadeOut("slow");
    });	
});