/**************************************************************************************/
//	Funciones para saber que navegador estoy usando
/**************************************************************************************/
   var sBrowser; 
   var sVersion; 
 
   function setBrowserType(){ 
    var aBrowFull = new Array("opera", "msie", "netscape", "gecko", "mozilla"); 
    var aBrowVers = new Array("opera", "msie", "netscape", "rv",    "mozilla"   ); 
    var aBrowAbrv = new Array("op",    "ie",   "ns",       "mo",    "ns"   ); 
    var sInfo = navigator.userAgent.toLowerCase();; 
 
    sBrowser = ""; 
    for (var i = 0; i < aBrowFull.length; i++){ 
     if ((sBrowser == "") && (sInfo.indexOf(aBrowFull[i]) != -1)){ 
      sBrowser = aBrowAbrv[i]; 
      sVersion = String(parseFloat(sInfo.substr(sInfo.indexOf(aBrowVers[i]) + aBrowVers[i].length + 1))); 
     } 
    } 
   } 
 
   setBrowserType(); 
 
   function getBrowserName(){ 
    return sBrowser; 
   } 
 
   function getBrowserVersion(){ 
    return sVersion; 
   } 
/**************************************************************************************/
/*	Según el menú selecionado queda marcado con estas funiones						  */
/**************************************************************************************/



  function selector(seleccion){
  	  $(seleccion).css("color","#dc513e");
	  $(seleccion).css("cursor","text");
	  $(seleccion).css("background-repeat","no-repeat");
	  $(seleccion).css("text-decoration","none");
	  //$(seleccion+" img.flir-image").css("padding-left","10px");
  }

  function selector2(seleccion){
  	  $(seleccion).css("color","#dc513e");
	  $(seleccion).css("cursor","text");
	  $(seleccion).css("background-repeat","no-repeat");
	  $(seleccion).css("text-decoration","none");
	  //$(seleccion+" img.flir-image").css("padding-left","10px");
  }
  
  function seccion(seccion, nombre, ruta, title){
	  var str = $(seccion).text();
	  $(seccion).html("<a href='"+ruta+"' title='"+title+"'><b> "+nombre+"</b></a> <img src='css/images/miga-pan.gif' alt='&gt;&gt;' longdesc='>>' />");
  }

  
/**************/
/* Paginación */
/**************/
	
// Set to first frame
	//frameCount = $frame.size();
	//pageCount = 9;
	pageNumber = 1;
  			//Página anterior
			function anteriorPag() {
				pageNumber--;
				if(pageNumber > 0) {
					//move();
				} else {
					//move(frameCount);
					pageNumber = pageCount;
				}
				/*Añadido*/
				colorswich3();
	  			selector2("#slider-0"+pageNumber);
				//checkButtons();
			}
			
			// Siguente pagina
			function siguientePag() {
				pageNumber++;
				if(pageNumber <= pageCount) {
					
					//move();
				} else {
					//move(1);
					pageNumber = 1;
				}
				/*Añadido*/
				colorswich3();
	  			selector2("#slider-0"+pageNumber);
				//checkButtons();
			}
/* Función menú desplegable*/
function slide(id){
	if(document.getElementById(id).style.display=='none'){
		$('#'+id).slideDown("slow");
		//Effect.BlindDown(id);
	}else{
		$('#'+id).slideUp("slow");
		//Effect.BlindUp(id);
	}
}
function init(){
	$(".oculto").hide();
}
function cambiarColor(){
	$(".puntero").css({'background-color' : 'yellow'});
}