jQuery.noConflict();

// Put all your code in your document ready area

jQuery(document).ready(function ($) {

    // Do jQuery stuff using $ this where the functions need to go   


// ===============  LOGO FADE IN EFFECT  =============== 

    $('div#branding_left a').hide();
    $('div#branding_left a').fadeIn(1500).delay(3000);
	

//========================= HOME PAGE 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:     'fade',
		timeout: 5000,
		speed:  'slow', 
		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 =========================	

	$('div.text_messages').hide();	
	
    $('.learnmore').click(function(e){
        e.preventDefault();
        $('div#bannerSlide').cycle(9);
    });	


//========================= FOOTER TOGGLE =========================
	
	$("h5#homepage_footer_toggle a").click(function(){
		$("div#panel_homepage").slideToggle("fast");
		$(this).toggleClass("active");
		if ($(this).is('.active')){
            showForm();
		}
		return false;
	});	

//========================= TEXT SELECTOR =========================

  $('h1, h2.posttitle a').each(function(){
    var me = $(this);
    me.html( me.text().replace(/(^\w+)/,'<span class="bold_header">$1</span>') );
  });

//========================= BULLETPOINT TOOGLE =========================

	$("div#view_more_bullets").hide(); 

	$("a.view_more_link").click(function () {
		$("div#view_more_bullets").slideToggle('1000', function() {
		// Animation complete.
	  });
	});  
						   
		$("div#view_more_bullets_two").hide(); 

	$("a.view_more_link_two").click(function () {
		$("div#view_more_bullets_two").slideToggle('1000', function() {
		// Animation complete.
	  });
	});  


});
	


