if ((screen.width == 640) && (screen.height == 480)) 
alert ("ATENCIÓN!!\r\rLa resolución de pantalla que Ud. utiliza actualmente no le permitirá ver bien este sitio.\r\rPor favor, cambie la resolución a 800x600 o más.\r\r\rGracias.")



function formatText(index, panel) {
		  return index + "";
	    }
    
        $(function () {
        
            $('.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 6000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 1000,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Play",             // Start text
		        stopText: "Stop",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
            $("#slide-jump").click(function(){
                $('.anythingSlider').anythingSlider(6);
            });
            
        });
		
function submitbusca(){
	document.form_buscar.submit();

}

function validacontacto(){
		
	if (document.formcontacto.nombre.value==""){
		alert("Se requiere su nombre");
		document.formcontacto.nombre.focus();
		return false;
	}
	if (document.formcontacto.fono.value==""){
		alert("Se requiere algun telefono Fijo o Celular");
		document.formcontacto.fono.focus();
		return false;
	}
	
	email=document.formcontacto.email.value;
	if(email==""){
		alert("Debe escribir su email.");
		document.formcontacto.email.focus();
		return false;
	}
	else{
		var atSign = Number(String([email]).indexOf("@"));
		var closeDot = Number(String([email]).indexOf(".", atSign));
		if (String([email]).indexOf("@") == -1 || String([email]).indexOf(".") == -1) {
			document.formcontacto.email.focus();
			alert("Email invalido.");
			return false;
		}else if (closeDot-atSign<=1){
			alert("Email invalido.");
			document.formcontacto.email.focus();
			return false;
		}
	}
	if (document.formcontacto.producto.value==""){
		alert("Se requiere algun Producto");
		document.formcontacto.producto.focus();
		return false;
	}

}

function valida_cotizacion(){
		
	if (document.formcontacto.nombre.value==""){
		alert("Se requiere su nombre");
		document.formcontacto.nombre.focus();
		return false;
	}
	if (document.formcontacto.fono.value==""){
		alert("Se requiere algun telefono Fijo o Celular");
		document.formcontacto.fono.focus();
		return false;
	}
	
	email=document.formcontacto.email.value;
	if(email==""){
		alert("Debe escribir su email.");
		document.formcontacto.email.focus();
		return false;
	}
	else{
		var atSign = Number(String([email]).indexOf("@"));
		var closeDot = Number(String([email]).indexOf(".", atSign));
		if (String([email]).indexOf("@") == -1 || String([email]).indexOf(".") == -1) {
			document.formcontacto.email.focus();
			alert("Email invalido.");
			return false;
		}else if (closeDot-atSign<=1){
			alert("Email invalido.");
			document.formcontacto.email.focus();
			return false;
		}
	}

}


function esconde_anuncio(divId) 
{ if (document.layers) document.layers[divId].visibility = 'hide';
  else if (document.all) document.all[divId].style.visibility = 'hidden';
  else if (document.getElementById) document.getElementById(divId).style.visibility = 'hidden';
}
function mostrar_anuncio(divId) 
//alert("pop slide");
{ state=typeof topPos;
  if(state=='undefined') topPos=-600;
  if(topPos < 35)
  { topPos+=5;
	   if (document.layers) document.layers[divId].top = topPos;
    else if (document.all) document.all[divId].style.top = topPos;
    else if (document.getElementById) document.getElementById(divId).style.top = topPos;	
    
    setTimeout("mostrar_anuncio('"+divId+"');",10);
	 }
}

function valida_trabajo(){
		
	if (document.formtrabajo.nombre.value==""){
		alert("Se requiere tu nombre");
		document.formtrabajo.nombre.focus();
		return false;
	}
	if (document.formtrabajo.fono.value==""){
		alert("Se requiere algun telefono Fijo o Celular");
		document.formtrabajo.fono.focus();
		return false;
	}
	
	email=document.formtrabajo.email.value;
	if(email==""){
		alert("Debe escribir su email.");
		document.formtrabajo.email.focus();
		return false;
	}
	else{
		var atSign = Number(String([email]).indexOf("@"));
		var closeDot = Number(String([email]).indexOf(".", atSign));
		if (String([email]).indexOf("@") == -1 || String([email]).indexOf(".") == -1) {
			document.formtrabajo.email.focus();
			alert("Email invalido.");
			return false;
		}else if (closeDot-atSign<=1){
			alert("Email invalido.");
			document.formtrabajo.email.focus();
			return false;
		}
	}
	if (document.formtrabajo.curriculum.value==""){
		alert("Se requiere nos envies tu curriculum");
		document.formtrabajo.curriculum.focus();
		return false;
	}

}
