$(document).ready(function(){
	$('#carrossel').cycle({ 
		fx:     'fade', 
		speed:  'fast', 
		timeout: 5000, 
		next:   '.nav-next', 
		prev:   '.nav-prev' 
	});
	$.Juitter.start({
		searchType:"fromUser",
		searchObject:"cris_zannini",
		live:"live-5000", // it will be updated every 120 seconds/2 minutes
		placeHolder:"juitterContainer", // Set a place holder DIV which will receive the list of tweets example <div id="juitterContainer"></div>
		loadMSG: "Loading ...", // Loading message, if you want to show an image, fill it with "image/gif" and go to the next variable to set which image you want to use on 
		total: 2, // number of tweets to be show - max 100
		nameUser:"text" // insert "image" to show avatar of "text" to show the name of the user that sent the tweet 
	});

	$(".print a").attr("rel", "prettyPhoto");	

	$("a[rel^='prettyPhoto']").prettyPhoto();
	
	
	var zoomFunc = function(dimension) {
		return dimension * 1.5;
	}
	var shrinkFunc = function(dimension) {
		return dimension * 0.5;
	}
	$('div.galeria img').slidingGallery(
		{
			'slideSpeed':'slow',
			'Lzoom':zoomFunc, 
			'Pzoom':zoomFunc,
			'Lshrink':shrinkFunc,
			'Pshrink':shrinkFunc,
			'Lwidth':300,
			'Lheight':225,
			'Pwidth':225,
			'Pheight':300,
			'gutterWidth': 15
		}
	);
			
});