// JavaScript Document
	var timerID = 0;
	var timerValue = 1100;
	function UpdateTimer() {
		if(timerID) {
			clearTimeout(timerID);
		}
		var valueClass = getStylecss('.blinktext','color');
		if(valueClass=='red'){
			changecss('.blinktext','color','black');
		}else{
			changecss('.blinktext','color','red');
		}
		
		timerID = setTimeout("UpdateTimer()",timerValue );
	}
	function StartTimer() {
		timerID  = setTimeout("UpdateTimer()",timerValue);
	}
	function StopTimer() {
		if(timerID) {
			clearTimeout(timerID);
			timerID  = 0;
		}
	}	
	
	
	function changecss(theClass,element,value) {
	 var cssRules;
	 if (document.all) {
	  cssRules = 'rules';
	 }
	 else if (document.getElementById) {
	  cssRules = 'cssRules';
	 } 
	 for (var S = 0; S < document.styleSheets.length; S++){
	  for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
		if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
	    document.styleSheets[S][cssRules][R].style[element] = value;
	   }
	  }
	 }	
	}
	
	function getStylecss(theClass,element) {
	 var cssRules;
	 if (document.all) {
	  cssRules = 'rules';
	 }
	 else if (document.getElementById) {
	  cssRules = 'cssRules';
	 } 
	 for (var S = 0; S < document.styleSheets.length; S++){
	  for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
		if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
		 return document.styleSheets[S][cssRules][R].style[element];
	   }
	  }
	 }	
	}	
	
	
	function showMapa(action) {
		if (action == true){
				document.getElementById('mapa_lightbox').style.display = 'block';
				document.getElementById('mapa_overlay').style.display = 'block';
		}else{
				document.getElementById('mapa_lightbox').style.display = 'none';
				document.getElementById('mapa_overlay').style.display = 'none';				
		}
	 }