$(document).ready(function(){

	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$("h5#homepage_footer_toggle a").click(function(){
		$("div#panel_homepage").slideToggle("fast");
		$(this).toggleClass("active");
		if ($(this).is('.active')){
            showForm();
		}
		return false;
	});	
		
	$(".btn-slide2").click(function(){
		$("#panel2").slideToggle("slow");
		$(this).toggleClass("active");
		if ($(this).is('.active')){
            showForm();
		}
		return false;
	});
	
	$(".btn-slide3").click(function(){
		$("#panel2").slideToggle("slow");
		$(this).toggleClass("active"); 
		if ($(this).is('.active')){
            showForm();
		}
		return false;
	});
	
	 
});



<!--
// jQuery.noConflict();

// RUN

$(document).ready(function(){	

	// MAIN SLIDING PANELS

	$('div#bannerSlide').cycle ({ 
		fx: 'scrollHorz',  
		speed:  'slow', 
		timeout: 0,
		cleartypeNoBg: true,
		next:   'a.next', 
		prev:   'a.previous' ,
		before:  onBefore,
		after:   onAfter
	});
	
	// LOGO SCROLLER ON HOMEPAGE SLIDE ONE
	
	$('div#logo_scroller').cycle ({ 
		fx:     'scrollLeft',
		timeout: 5000,
		cleartypeNoBg: true
	});	
	
	// FUNCTIONS TO SHOW TEXT MESSAGE
	
	function onBefore(curr, next, opts) {
        cycleOpts = opts;        	
	    $(next).find('div.text_messages').hide();
	}
	function onAfter(curr, next, opts) {
	    $(this).find('div.text_messages').fadeIn(1000);	
	}
	
	// TEXT OVERLAY PANELS	
	$(document).ready(function () {
		$('div.text_messages').hide();	
	});
	


    $('.learnmore').click(function(e){
        e.preventDefault();
        $('div#bannerSlide').cycle(9);
    });	
});



/*
$('a.previous').click(function() {
    var next, index = cycleOpts.currSlide;
    if (index == 0)
        next = cycleOpts.slideCount - 1;
    else
        next = index - 1;
    $('div#bannerSlide').cycle(next);
});
$('a.next').click(function() {
    var next, index = cycleOpts.currSlide;
    if (index == cycleOpts.slideCount - 1)
        next = 0;
    else
        next = index + 1;
    $('div#bannerSlide').cycle(next);
});
*/

//-->
