
var vAlt = new Array();

$(document).ready(function(){
	
        // swfobject 1.5:
	//new SWFObject("/flash/1.swf", "mymovie", "739", "74", "7", "#ffffff").write("flash");
        
        // swfobject 2.0:
        //swfobject.embedSWF("/flash/1.swf", "flash", "739", "74", "9.0.0");
        swfobject.registerObject("flash", "9.0.0");

	$("#efeitoJS>img").each(function(){
		$(this).animate({
			className: 'menuOut'
		}, 1);
	});
	$("#efeitoJS")
		.animate({ //bosta de IE....
			className: 'efeitoMenuInicial'
		}, 1)
		.animate({ 
			className: 'efeitoMenuFinal'
		}, 3000)
	;
	
	$("[@class=linkEfeitoJS]").each( function(){
		vAlt[$(this).attr("title")] = $(this).attr("alt");
		if($.browser.msie) $(this).attr("alt",$(this).attr("title"));
		$(this)
			.mouseover( function(){
				$("#transLink"+vAlt[$(this).attr("title")])
					.stop()
					.animate({
						className: 'menuOver'
					}, 500)
				;
			})
			.mouseout( function(){
				$("#transLink"+vAlt[$(this).attr("title")])
					.stop()
					.animate({
						className: 'menuOut'
					}, 500)
				;
			})
		;
	});
});