$(document).ready(function(){

		$(".accordion h3:first").addClass("active");
		$(".accordion fieldset:not(:first)").hide();

		$(".accordion h3").click(function(){
			$(this).next("fieldset").slideToggle("slow")
			.siblings("fieldset:visible").slideUp("slow");
			$(this).toggleClass("active");
			$(this).siblings("h3").removeClass("active");
		});
		
		 $(".beneficios").click(function(){
			  $(".panel-beneficios").slideToggle("slow")
			  .siblings(".panel:visible").slideUp("slow");
			  $(this).toggleClass("active");
			});
		 $(".requisitos").click(function(){
			  $(".panel-requisitos").slideToggle("slow")
			  .siblings(".panel:visible").slideUp("slow");
			  $(this).toggleClass("active");
			});
		 $(".mas-info").click(function(){
			  $(".panel-info").slideToggle("slow")			
			  .siblings(".panel:visible").slideUp("slow");			
			  $(this).toggleClass("active");
			}); 
		  $(".caracteristicas").click(function(){
			  $(".panel-caracteristicas").slideToggle("slow")			
			  .siblings(".panel:visible").slideUp("slow");			
			  $(this).toggleClass("active");
			});
		    $(".horarios").click(function(){
			  $(".panel-horarios").slideToggle("slow")			
			  .siblings(".panel:visible").slideUp("slow");			
			  $(this).toggleClass("active");
			});  
		    $(".importante").click(function(){
			  $(".panel-importante").slideToggle("slow")			
			  .siblings(".panel:visible").slideUp("slow");			
			  $(this).toggleClass("active");
			});			   
                
			/* forms over*/
			$('input, textarea, select').focus(function(){
				$(this).parents('.group').addClass("over");
			}).blur(function(){
				$(this).parents('.group').removeClass("over");
			});


	});


function cancel_anims()
{
	 $('#banner').cycle('pause');
	 $('#newsflash').cycle('pause');
}
$(document).ready(function(){ 

		cancel_anims();
		$('#banner').cycle('resume');
	 	$('#newsflash').cycle('resume');

    	$('#banner') 
		.before('<div id="nav">') 
		.cycle({ 
		    fx:     'fade', 
		    speed:   1000, // default: 10200
		    pause:   4000, 	// defatult: 9000	 
		    timeout: 6000, 
		    pager:  '#nav' 
		});
		
		$('#newsflash').cycle({ 
		    fx:     'turnDown', 
		    speed:   1200, 
		    timeout: 3000, 
		    pause:   20,
		 	delay: -8000,
			cleartype:  1
		 	
		});
       

function onAfter(curr, next, opts) {
    var index = $(this).parent().children().index(this);
    $('#prev')[index == 0 ? 'hide' : 'show']();
    $('#next')[index == opts.slideCount - 1 ? 'hide' : 'show']();
}
}); 


// Ayuda
<!--
function ayudapop(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
}
// Demo    
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}             






function doReset()
{
document.getElementById("forms").reset()
}
//-->

