jQuery.noConflict ();

/*flashembed.domReady(function() { 
	flashembed("header", {src: "/pronino/assets/swf/bannertelefonica.swf", wmode: "opaque"})
});*/

jQuery(window).load( function() { 	
	jQuery(".toggle_container").hide(); 	
	jQuery("a.trigger").click(function(){		
		jQuery(this).next(".toggle_container").slideToggle("slow");		
		jQuery(this).next('.toggle_container').after('<a class="readmore" href="#" onclick="hide(this); return false;">cerrar</a>');		
		jQuery(this).hide('slow');		
		return false;	
	});
	jQuery('.smd_cal_event a').click(function() {	
		data = this.href.split('?');		
		jQuery.get('/pronino/events.php?'+data[1], function(data) { 
			jQuery('#last-event').html(data); 
		} );		
		return false;	
	} );	
	jQuery('.current-day a').click(function() {		
		jQuery.get(this.href, function(data) { 
			jQuery('#last-event').html(data); 
		} );		
		return false;	
	});	
	jQuery.get('/pronino/events.php', function(data) { 
		jQuery('#last-event').html(data); 
	} );	
	jQuery('a[rel="bookmark"]').each( function (i) { 		
		jQuery(this).addClass('bookmark');	
	} );
	jQuery('.colorbox').colorbox({slideshow: true});
	jQuery(".iframe").colorbox({width:"50%", height:"90%", iframe:true});
	
	jQuery('#content_text p:last').css({
		paddingBottom: '0 !important',		
	});
} );

function hide(element) { 	
	jQuery(element).prev('.toggle_container').slideToggle('slow');	
	jQuery(element).hide('slow');	
	jQuery(element).prev('.toggle_container').prev().show('slow');	
	return false;
}
