// JavaScript Document

$(document).ready(function(){
		
		$(document).pngFix(); //activamos el pngfix
		
		$('.gallery_demo_unstyled').addClass('gallery_demo'); // adds new class name to maintain degradability
		$('.nav').css('display','none'); // hides the nav initially
		
		$('ul.gallery_demo').galleria({
			history   : false, // deactivates the history object for bookmarking, back-button etc.
			clickNext : false, // helper for making the image clickable. Let's not have that in this example.
			insert    : undefined, // the containing selector for our main image. 
								   // If not found or undefined (like here), galleria will create a container 
								   // before the ul with the class .galleria_container (see CSS)
			onImage   : function() { $('.nav').css('display','block'); } // shows the nav when the image is showing
		});
		
		/*Belliure 60*/
		 $('#crucero').click(function() {
			$('#p2').slideToggle(250);
			return false;
		 });
		 
		  $('#reportajes').click(function() {
			$('#p1').slideToggle(250);
			return false;
		 });
		  
		 /*Belliure 48*/
		  $('#robusto').click(function() {
			$('#robP1').slideToggle(250);
			return false;
		 });
		  
		   /*Belliure 40*/
		  $('#linea').click(function() {
			$('#lineaP1').slideToggle(250);
			return false;
		 });
		  
		  /*Press*/
		  $('#oro').click(function() {
			$('#oroP').slideToggle(250);
			return false;
		 });
		  
		  $('#c60').click(function() {
			$('#c60P').slideToggle(250);
			return false;
		 });
		  $('#clasica').click(function() {
			$('#clasicaP').slideToggle(250);
			return false;
		 });
		  $('#linc').click(function() {
			$('#lincP').slideToggle(250);
			return false;
		 });
		  
		  
	  	//Facebox receptes recomendades
		$('a[rel*=facebox]').facebox();

		  
		  
	});//ready