$(document).ready(function() {	

//	jQuery(".formularioContacto").load("/Formulario-Contacto-Tripartita/", function(){

	//		jQuery(this).fadeIn(1200);

	//});



	

	/*jQuery(".ListaSalaDePrensa").empty();																					 

	jQuery(".ListaSalaDePrensa").load("/Sala-Prensa-Tripartita/LisPrensa/", function(){

	});*/

	jQuery(".DivEventosAnteriores").empty();																						

	jQuery(".DivEventosAnteriores").load("/eventos/ResumenEventosPasado/", function(){

   			jQuery(this).fadeIn(200);

	});	

	jQuery(".DivEventosProximos").load("/eventos/ResumenDeEventos/", function(){

			jQuery(this).fadeIn(200);

	});		

	/*

	 jQuery(".DivClientesMenuLogos").fadeOut(1200, function(){

			jQuery("DivClientesMenuLogos").empty();

			jQuery("DivClientesMenuLogos").load("/Clientes-Tripartita/ListarClientes/", function(){

			jQuery("DivClientesMenuLogos").fadeIn(1200);

			});	

	});

	 

	jQuery(".ListaSalaDePrensa").fadeOut(1200, function(){

			jQuery("ListaSalaDePrensa").empty();

			jQuery("ListaSalaDePrensa").load("/Sala-Prensa-Tripartita/LisPrensa/", function(){

			jQuery("ListaSalaDePrensa").fadeIn(1200);

			});	

	});	

	 */





 });


	
function paginarteAjax(URL, DivCarga, FuncionLoad)

{

	var callingURL = URL;

	var idcliente = $("#Clientes").val();
	

	var partesURL = callingURL.split('?');

	var cgiString = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length);
	
	if (idcliente == "")
		var newUrl =  FuncionLoad + "?" +  partesURL[1];
	else
		var newUrl =  FuncionLoad + "/" + idcliente + "?" +  partesURL[1];


	jQuery("."+DivCarga).empty();

	

	/*jQuery("."+DivCarga).load(newUrl, function(){

			jQuery(this).fadeOut(1200, function(){

					jQuery(".resultadosBusqueda").fadeIn(1200);

				});

			});			

	});	



*/

	 jQuery("."+DivCarga).fadeOut(1200, function(){

			jQuery("."+DivCarga).empty();

			jQuery("."+DivCarga).load(newUrl, function(){

			jQuery("."+DivCarga).fadeIn(1200);

			});	

	});

	 

	jQuery(".cont_sala2").hover(function(){

		jQuery(this).css({"background-color": "#D9D9D9"});

	}, function(){

		jQuery(this).css({"background-color": "#E7E7E7"});		

	});	 


}



function paginarAjax(url, contenedor)

{

	

	 jQuery("."+contenedor).fadeOut(1200, function(){

			jQuery("."+contenedor).empty();

			jQuery("."+contenedor).load(url, function(){

			jQuery("."+contenedor).fadeIn(1200);

			});	

	});

	 

	jQuery(".cont_sala2").hover(function(){

		jQuery(this).css({"background-color": "#D9D9D9"});

	}, function(){

		jQuery(this).css({"background-color": "#E7E7E7"});		

	});	 

/*

	jQuery("."+contenedor).load(url, function(){

			jQuery(this).fadeOut(1200, function(){

					jQuery(this).fadeIn(1200);

				});

			});			



	});	

*/



}


