$(document).ready(function(){ 
	/*$("ul.sf-menu").superfish({
		delay:       10,
		animation:   {opacity:'show',height:'show'},
		speed:       'fast',
		autoArrows:  false	  
	}); 
	$(document).pngFix(); 
	$(".shadow").dropShadow({left: 1, top: 1, blur: 0});
	*/
	
	
	$(".botoMuestra").click(function () {
		$(".slide").slideToggle("fast");
	});
	
	// initialize scrollable together with the circular plugin
	//$("#infinite").scrollable().circular().autoscroll({autoplay: true});
	//$("#demo img[title]").tooltip('#demotip'); 
	
	checkErrores();
	
}); 

/*Mosrar y Ocultar por ID*/
function toggle( id ){
	if ( $('#botoCola_'+id ).attr( "class" ) == "linkDesColap" ){
		$('#senaAdic_'+id).slideDown("fast");
		$('#botoCola_'+id).attr( 'class', 'linkColap' );
	}else{
		$('#senaAdic_'+id).slideUp("fast");
		$('#botoCola_'+id).attr( 'class', 'linkDesColap' );
	}
}

function checkErrores(){
	if ( $("#lista_errores").html() ){
		var lista = $("#lista_errores").html().split( ',' );
		for( var i=0; i < lista.length; i++ ){
			document.getElementById( lista[i] ).className += " error";
			document.getElementById( "_" + lista[i] ).className += " error";
		}
	}
}

/*cambia cabezas de flechas*/
/*
$(".verEjecutivo").click(function (){
		$(".ejecutivo").slideToggle("fast", function(){
			if ( $(this).parent().find( "div" ).css( "display" ) == "block" ){
				$(".verEjecutivo").removeClass( "arrow" );
				$(".verEjecutivo").addClass( "arrowDwn" );
			}else{
				$(".verEjecutivo").removeClass( "arrowDwn" );
				$(".verEjecutivo").addClass( "arrow" );
			}
		});
	});
*/
