$(document).ready(function(){	

	$("#nom_but").focus(function () {
		if($(this).val() == 'Nom')
			$(this).val('');
	
	});
	$("#nom_but").blur(function () {
		if($(this).val() == '')
			$(this).val('Nom');
			
	});
	
});	

$(document).ready(function(){	

	$("#cog_but").focus(function () {
		if($(this).val() == 'Cognoms')
			$(this).val('');

	});
	
	$("#cog_but").blur(function () {
		if($(this).val() == '')
			$(this).val('Cognoms');
			
	});
	
});

$(document).ready(function(){	

	$("#email_but").focus(function () {
		if($(this).val() == 'e-mail')
			$(this).val('');

	});
	
	$("#email_but").blur(function () {
		if($(this).val() == '')
			$(this).val('e-mail');
		
			
	});
	
});

$(document).ready(function(){	

	$(".img_overeffect").mouseover(function () {

		$(this).find('.img_info').css('display','');
		
	});
	
	$(".img_overeffect").mouseout(function () {

			$(this).find('.img_info').css('display','none');

	});
	
});

$(document).ready(function(){	
	$('.scroll_to_videos').click(function () {
			$.scrollTo('#bottom',800,'swing');
	    });
});

$(document).ready(function(){	
	$('.expandable').expander({
   	 	slicePoint:       800,  // default is 100
	    expandText:         '[+]', // default is 'read more...'
	    collapseTimer:    0, // re-collapses after 5 seconds; default is 0, so no re-collapsing
	    userCollapseText: '[-]',  // default is '[collapse expanded text]'
		expandEffect:     'fadeIn',
		widow:            10
	
	
	/*
		slicePoint:       100,      // the number of characters at which the contents will be sliced into two parts. 
		                            // Note: any tag names in the HTML that appear inside the sliced element before 
		                            // the slicePoint will be counted along with the text characters.
		widow:            4,        // a threshold of sorts for whether to initially hide/collapse part of the element's contents. 
		                            // If after slicing the contents in two there are fewer words in the second part than 
		                            // the value set by widow, we won't bother hiding/collapsing anything.
		expandText:       'read more...',   // text displayed in a link instead of the hidden part of the element. 
		                            // clicking this will expand/show the hidden/collapsed text
		expandPrefix:     '… ', // text to come before the expand link                              
		collapseTimer:    0,        // number of milliseconds after text has been expanded at which to collapse the text again
		expandEffect:     'fadeIn',
		expandSpeed:      '',       // speed in milliseconds of the animation effect for expanding the text
		userCollapse:     true,     // allow the user to re-collapse the expanded text.
		userCollapseText: '[collapse expanded text]',  // text to use for the link to re-collapse the text
		userCollapsePrefix: ' ', // text to come before the re-collapse link
		beforeExpand: function($thisEl) {}, // function that is called immediately upon expanding, before the expand occurs
		afterExpand: function($thisEl) {}, // function that is called after the details have finished expanding
		onCollapse: function($thisEl, byUser) {} //function that is called when the details are collapsed (immediately after)

	
	
	*/
	  });
});	


$(document).ready(function() {

	// $(".show_menu ul li").hide(); 
	// 
	// $(".show_menu li").hover(function () {
	// 	$(this).children("ul").show();
	//         },
	// 	function(){
	// 	$(this).children("ul").hide();
	// });
	
	$(".show_menu").mouseover(function () {

		$(this).find('.submenus').css('display','');
		
	});
	
	$(".show_menu").mouseout(function () {

		$(this).find('.submenus').css('display','none');
		
	});

});


$(document).ready(function() {
	
	$("#tanca_footer").click(function () {
		
		$('#all_footer').css('display','none');
		$('#obre_footer').css('display','');				

		
	});
	
	$("#obre_button_footer").click(function () {
		
		$('#all_footer').css('display','');
		$('#obre_footer').css('display','none');				

		
	});
	
	
	
			
});

$(document).ready(function() {
	$("#vols_participar").click(function() {
			$('#form_comentaris').slideDown(); 
		
		
		});
});

$(document).ready(function() {
	
	
	$("#menu_1").mouseover(function() {
		$('#static_footer_submenu').show();
		
		$('#static_footer_menu_1').show();
		
		$('#static_footer_menu_2').hide();
		$('#static_footer_menu_3').hide();
		$('#static_footer_menu_4').hide();
		$('#static_footer_menu_5').hide();
		
		
		$('.crides_1').css('background-color','#ffee00');
		$('.crides_1').css('text-decoration','none');
		
		$('.crides_2').css('background-color','#ffffff');
		$('.crides_3').css('background-color','#ffffff');
		$('.crides_4').css('background-color','#ffffff');
		$('.crides_5').css('background-color','#ffffff');
	
	});
	$("#menu_2").mouseover(function() {
		
		$('#static_footer_submenu').show();
		
		$('#static_footer_menu_2').show();
		
		$('#static_footer_menu_1').hide();
		$('#static_footer_menu_3').hide();
		$('#static_footer_menu_4').hide();
		$('#static_footer_menu_5').hide();
		
		$('.crides_2').css('background-color','#ffee00');
		$('.crides_2').css('text-decoration','none');
		
		$('.crides_1').css('background-color','#ffffff');
		$('.crides_3').css('background-color','#ffffff');
		$('.crides_4').css('background-color','#ffffff');
		$('.crides_5').css('background-color','#ffffff');
		
	
	});
	
	$("#menu_3").mouseover(function() {
		$('#static_footer_submenu').show();
		
		$('#static_footer_menu_3').show();
		
		$('#static_footer_menu_1').hide();
		$('#static_footer_menu_2').hide();
		$('#static_footer_menu_4').hide();
		$('#static_footer_menu_5').hide();
		
		
		$('.crides_3').css('background-color','#ffee00');
		$('.crides_3').css('text-decoration','none');
		
		$('.crides_1').css('background-color','#ffffff');
		$('.crides_2').css('background-color','#ffffff');
		$('.crides_4').css('background-color','#ffffff');
		$('.crides_5').css('background-color','#ffffff');
	
	});
	$("#menu_4").mouseover(function() {
		$('#static_footer_submenu').show();
		
		$('#static_footer_menu_4').show();
		
		$('#static_footer_menu_1').hide();
		$('#static_footer_menu_2').hide();
		$('#static_footer_menu_3').hide();
		$('#static_footer_menu_5').hide();
		
		$('.crides_4').css('background-color','#ffee00');
		$('.crides_4').css('text-decoration','none');
		
		$('.crides_1').css('background-color','#ffffff');
		$('.crides_2').css('background-color','#ffffff');
		$('.crides_3').css('background-color','#ffffff');
		$('.crides_5').css('background-color','#ffffff');
	
	});
	
	$("#menu_5").mouseover(function() {
		$('#static_footer_submenu').show();
		
		$('#static_footer_menu_5').show();
		
		$('#static_footer_menu_1').hide();
		$('#static_footer_menu_2').hide();
		$('#static_footer_menu_3').hide();
		$('#static_footer_menu_4').hide();
		
		$('.crides_5').css('background-color','#ffee00');
		$('.crides_5').css('text-decoration','none');
		
		$('.crides_1').css('background-color','#ffffff');
		$('.crides_2').css('background-color','#ffffff');
		$('.crides_3').css('background-color','#ffffff');
		$('.crides_4').css('background-color','#ffffff');
	
	});
	
	$("#static_footer").mouseout(function() {
		
		
		$('#static_footer_submenu').hide();
		
		$('#static_footer_menu_1').hide();
		$('#static_footer_menu_2').hide();
		$('#static_footer_menu_3').hide();
		$('#static_footer_menu_4').hide();
		$('#static_footer_menu_5').hide();
		
		$('.crides_1').css('background-color','#ffffff');
		$('.crides_2').css('background-color','#ffffff');
		$('.crides_3').css('background-color','#ffffff');
		$('.crides_4').css('background-color','#ffffff');
		$('.crides_5').css('background-color','#ffffff');
	
	});


/*	
	$("#static_footer_submenu").mouseout(function() {
		
		
		$(this).hide();
		
	
	
	});
*/	
	
/*	$('#all_footer').mouseout(function(){
	
		$('.static_footer_menu').hide();
	});
*/	
	
	// $("#menu_1").mouseout(function() {
	// 		$('#static_footer_menu_1').hide();
	// 	
	// 	});
});




