$(document).ready(function(event){

	$("a.conzoom,a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: true, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
		hideflash: true, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
		modal: false, /* If set to true, only the close button will close the window */
		changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
		callback: function(){} /* Called when prettyPhoto is closed */
	});

	$("#page_content h1").each(function(index){
		var texto = $(this).text();
		var letra = texto.substr(0, 1);
		var resto = texto.substr(1);
		$(this).html("<span class='letra " + letra.toLowerCase() + "'></span>" + resto);
	});

	$("#page_content .cadaletra").each(function(index){
		var texto = $(this).text();
		var out = "";
		for(var i = 0, t = texto.length; i < t; i++){
			if( texto[i] != ' ' )
				out += "<span class='letra " + texto[i] + "'></span>";
			else
				out += "<span class='letra espacio'></span>";
		}
		$(this).html(out);
	});

	$("#zona_multimedia a").mouseenter(function(e){
		$(this).css('background-color', '#B2000C');
//		$(this).animate( { backgroundColor: '#B2000C'}, 500);
	});
	$("#zona_multimedia a").mouseleave(function(e){
		$(this).animate( { backgroundColor: '#FFFFFF'}, 500);
	});

});