$(document).ready(function() {
	$("div.panel_button").click(function(){
		$("div#panel").animate({
			height: "500px"
		})
		.animate({
			height: "400px"
		}, "fast");
		$("div.panel_button").toggle();
	
	});	
	
   $("div#hide_button").click(function(){
		$("div#panel").animate({
			height: "0px"
		}, "fast");
		
	
   });	
});

 $(document).ready(function() {
                         $("#accordion").accordion({
			               header: 'h3',//Permite mostrar los titulos en h3
			               autoHeight: false //Acomoda el div del accordion al texto
			            });
                   });
 
   function Validar(formulario){
			
                       	if(formulario.usuario.value == ''){
      	                   imagen = new Image(12,12);
                           imagen.src = "./ol/images/equis.png";
                           formulario.imgusuario.src = imagen.src;
	                }else{
	                   imagen = new Image(14,14);
                           imagen.src = "./ol/images/tick-icon.png";
                           formulario.imgusuario.src = imagen.src;
	                }
			
			if(formulario.password.value == ''){ 
      	                   imagen = new Image(12,12);
                           imagen.src = "./ol/images/equis.png";
                           formulario.imgpassword.src = imagen.src;
			   
	                }else{
	                   imagen = new Image(14,14);
                           imagen.src = "./ol/images/tick-icon.png";
                           formulario.imgpassword.src = imagen.src;
	                }
			
			if(formulario.usuario.value!="" && formulario.password.value!=""){
	                    return true;
	                }else{
	                    alert("Faltan Datos Por Completar");
	                    return false;
	                }
	             }
		     
		     var miTexto="";
                     var alto , detener=50;
                     var desp=0;
                     var paso=3; //px
                     var velocidad=150; //ms

                     function inicio(){
                        miTexto=document.getElementById("texto").innerHTML;
                        document.getElementById("copia").innerHTML=miTexto;
                        alto=document.getElementById("texto").offsetHeight;
                        setTimeout("mover1()", 1500);
		    }

                     function mover1(){
                        document.getElementById("linea").style.top="-"+desp+"px";
                        desp+=paso;
                        if(desp>=alto){
                             document.getElementById("linea").style.top="0px";
                             desp=0
                        }
                        mover2();
                    }

                    function mover2(){
                       detener=setTimeout("mover1()", velocidad);
                    }


