//para dejar seleccionada opcion correspondiente en el menu principal - por ahora solo home -
function seleccion(idMenu) 
{
	$('#'+idMenu).css('color', '#ffffff');	
	$('#sub'+idMenu).css('color', '#ffffff');
	
}
function muestraVentana(idCapa){	
	var alto = $('#global').height();	
	alto = alto + 40;	
	$('#fondoNegro').css('height', alto);	
	$('#fondoNegro').show(); 
	//muestra el fondo	
	$('#'+idCapa).fadeIn(); 
	//muestra la ventana	
	centrarVentana(idCapa);
	
}
function cierraVentana(idCapa){	
	$('#'+idCapa).fadeOut();	
	$('#fondoNegro').hide(); 
	//muestra el fondo

}
function centrarVentana(idCapa){	
	var ancho = $(window).width();	
	var alto = 200; 
	// $('#global').height();
	//	alto = alto+200;	
	$('#'+idCapa).css('left', (ancho-$('#'+idCapa).width())/2);
	$('#'+idCapa).css('top', alto); 
	//(alto-$('#'+idCapa).height())/2);
	
}
function muestraContenido (idCapa) {	
	$('#'+idCapa).fadeIn();
	
}


//google analitics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23488039-1']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

