// JavaScript Document

$(document).ready(function(){	
	// Adiciona sempre uma classe na tag sendo no primeiro e no ultimo elemento. Isso é bom para remover espaco e background do elemento desejado.
	$('body *:first-child').addClass('first-child');
	$('body *:last-child').addClass('last-child');
	
	//TWITTER
	$(document).ready(function() {
		$("#twitter").getTwitter({
			userName: "musicalmammamia",
			numTweets: 4,
			loaderText: "Loading tweets...",
			slideIn: true,
			slideDuration: 750,
			showHeading: true,
			showProfileLink: false,
			showTimestamp: true
		});
	});
	
	// Rotates Images
	$('ul#ulSlider').innerfade({
		speed: 1000,
		timeout: 5000,
		type: 'sequence',
		containerheight: '241px'
	});
	
	
	addEvent(window, 'load', initCorners);
		function initCorners() {
		var settings = {
		  tl: { radius: 10 },
		  tr: { radius: 10 },
		  bl: { radius: 10 },
		  br: { radius: 10 },
		  antiAlias: true
		}
		curvyCorners(settings, ".curvBox");
	}
	
	$('.equalize').equalHeights();
	
	$(".example6").colorbox({iframe:true, innerWidth:425, innerHeight:344});
	$("a[rel='modal']").colorbox({transition:"fade"});
	
	//Example of preserving a JavaScript event for inline calls.
	$("#click").click(function(){ 
		$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});

});
