function estiloOn(which, estilo){
	//alert (estilo);
	if (document.all||document.getElementById){
	which.className= estilo;
	}
}
function estiloOff(which, estilo){
	if (document.all||document.getElementById){
	which.className= estilo;
	}
}

jQuery(document).ready(function() {
 jQuery("#divGaleria img, #pieGaleria img").mouseover(function () {
	  jQuery(this).animate({ 
        opacity: 0.4
      }, 500 );
    }).mouseout(function () {
	  jQuery(this).animate({ 
        opacity: 1
      }, 500 );
    });
 });

jQuery(document).ready(function() {
	 jQuery(".menuRoll").animate({ 
				opacity: 0
			  }, 'fast' );
		
	jQuery("#menuUl li").hover(
		function(){
			 jQuery(this).find(".menuRoll").animate({ 
				opacity: 0.4
			  }, 'fast' );

		},
		function(){
			 jQuery(this).find(".menuRoll").animate({ 
				opacity: 0
			  }, 500 );
	
		}
	);
	
});

jQuery(document).ready(function() {
	jQuery("#ulFira li, #ulReus li").mouseover(function(){
		jQuery(this).css({'background-color' : '#dddcdc'});

	});
	jQuery("#ulFira li, #ulReus li").mouseout(function(){
		jQuery(this).css({'background' : 'none'});

	});
 });

enviaticket = function() {
			var strform = jQuery("#formulari").serialize();
			//alert(strform);
			lightwindowInit();
			myLightWindow.activateWindow({
			href: '/php/ticket.php?'+strform, 
			title: 'Ticket Reservas', 
			author: 'Reus viu el Vi', 
			caption: 'Ticket Reservas',
			width: '600',
			height: '500'
			 });
		 };