	//	Event.observe(window, "load", initPage);
		
	//	Event.observe(window, "load", centrarCapa);
		
		//Detecta NAVEGADOR
		var bname = navigator.appName;
		var flagWMODE = false;
		if (bname == "Microsoft Internet Explorer") {
			flagWMODE = true;
		}
		//alert("CUMPLE LOS ESTANDARES WMODE?: " + flagWMODE + " CODE: " + navigator.appCodeName);
		
		function nota(theURL){
			
			//alert("THE URL: " + theURL);
			window.open(theURL, "Legal", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,copyhistory=0,width=390,height=290");
		}
		
		function initPage(){
			$('capaflotante').hide();
		}
		
		function centrarCapa(){

			swidth = document.documentElement.clientWidth;
			sheight = document.documentElement.clientHeight;
			
			if (swidth<800) {
				$('flashcontent').style.width='800px';
			} else {
				$('flashcontent').style.width='100%';
			}

			if (sheight<600) {
				$('flashcontent').style.height='600px';
			} else {
				$('flashcontent').style.height='100%';
			}
			
			anchoPantalla = $('flashcontent').offsetWidth;
			altoPantalla = $('flashcontent').offsetHeight;
			
			ancho = 766;
			alto = 905;
			altoMenu = 70;
				
			$('capaflotante').style.left = ((anchoPantalla - ancho) / 2) + "px";
			$('capaflotante').style.top = (((altoPantalla - alto) / 2) + altoMenu) + "px" ;


		}
		
		function buidar(id){
			$(id).innerHTML = '';
			$(id).height = 0;
		}
		
		function limitar(elemento){
			
			maxlength = elemento.getAttribute("maxlength");
			if (elemento.value.length > maxlength){
				elemento.value = elemento.value.substring(0, maxlength);
				elemento.value.replace("", "");
			}
		}
		
		function loadContents(url){
			var params = {asynchronous:true, evalScripts: false, method: 'get', onComplete : function(){
				$('capaflotante').show();
				centrarCapa();
			}};
			new Ajax.Updater($('capaflotante'), url, params);
		}
		
		function unloadContents(){
			$('capaflotante').hide();

		}
		

