
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/* 

_|                  
_|_|_|      _|_|_|  
_|    _|  _|    _|  
_|    _|  _|    _|  
_|_|_|      _|_|_|  
                _|  
            _|_|    

*/

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/*										 FUNCTIONS GENÈRIQUES 													   */

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

$(document).keypress(function (e) {
	//falta script per activar el cercador quan es prem alguna tecla de l'ordinador   
    
});
	


function shareOn(i){
	 //alert(i);
	 $('#compartir'+i).fadeIn(200);
	 
	 
}


function shareOut(i){
 	 //alert(i);
	 setTimeout(function () { $('#compartir'+i).fadeOut(350); }, 560);	 
}

function changeBGOn(i){
	 //alert(i);
	 //$('#compartir'+i).fadeIn(200);
	 $('#share'+i).css('background-image', 'url(webimg/shareOn.gif)');
	 
}

function changeBGOff(i){
	 //alert(i);
	 //$('#compartir'+i).fadeIn(200);
	 $('#share'+i).css('background-image', 'url(webimg/share.gif)');
	 
}

function scrollTO(i) {	
//	alert("go");
	$("#opcio"+i).ScrollTo(500);
}

 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/*									 Function per Ensenyar/Amagar el missatge de la home 							*/

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function MissIn() {
			
		   jQuery.easing.def = 'easeOutQuad';
			
		   setTimeout(function () { $("#missatgeCont").toggle("slow"); }, 4000);
		   setTimeout(function () { $("#missatge").fadeIn(500); }, 4500);
		   
}

function MissOut() {
	
			jQuery.easing.def = 'easeOutQuad';
	
		   	setTimeout(function () { $("#missatge").fadeOut(500); }, 150);
			setTimeout(function () { $("#missatgeCont").toggle("slow"); }, 500);
}


function MissIn2() {
			
		   jQuery.easing.def = 'easeOutQuad';
			
		   setTimeout(function () { $("#missatgeCont2").toggle("slow"); }, 4000);
		   setTimeout(function () { $("#missatge").fadeIn(500); }, 4500);
		   
}

function MissOut2() {
	
			jQuery.easing.def = 'easeOutQuad';
	
		   	setTimeout(function () { $("#missatge").fadeOut(500); }, 150);
			setTimeout(function () { $("#missatgeCont2").toggle("slow"); }, 500);
}

	
	


$(document).ready(function(){
	



		
});	


