jQuery(document).ready(function(){

jQuery(function(){
	jQuery("a[href$='.pdf'], ._blank").click(function(){
		var newwindow = window.open(this.href, '_blank');
		newwindow.focus();
		return false;
	});
});

// Home page button animation 
jQuery(".cta-button span").css("opacity","0");
jQuery(".cta-button span").hover(
      function () {
        jQuery(this).stop().animate({
				opacity: 1
			}, "slow");
      }, 
      function () {
        jQuery(this).stop().animate({
				opacity: 0
			}, "slow");
      }
);

// side navigation
jQuery("#side-navigation ul, #top-navigation ul").superfish({
		animation:   {opacity:'slideUp',height:'show'}
});	

// sitemap
jQuery("#footer .open-close").click(
      function () {
        jQuery('#sitemap-expand').stop().slideToggle('slow');
	   return (false);
      }, 
      function () {
        jQuery('#sitemap-expand').stop().slideToggle('slow');
	   return (false);
      }
);


jQuery(".submit").hover(
	 function () {
	   jQuery(this).addClass("hover");
	 }, 
	 function () {
	   jQuery(this).removeClass("hover");
	 }
);

jQuery(".alpha-80").css("opacity",".8");

jQuery("#nav").css("opacity",0.40);

jQuery('#home').cycle({ 
	fx:     'scrollLeft', 
	speed:  500,
	pager:  '#nav', 
	timeout: 4000
});

jQuery('#quotes').cycle({ 
    fx:      'custom', 
    cssBefore: {  
        left: 0,  
        top:  0,  
        width: 830,  
        height: 130,  
        opacity: 0, 
        zIndex: 1 
    }, 
    animOut: {  
        opacity: 0  
    }, 
    animIn: {  
        left: 0,  
        top: 0,  
        width: 830,  
        height: 130  
    }, 
    cssAfter: {  
        zIndex: 0 
    }, 
	timeout: 7000

});

$('#quotes').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 7000, 
    next:   '#next2', 
    prev:   '#prev2' 
});

//$('#quotes').cycle({ 
//    fx:     'fade', 
//    speed:   300, 
//    timeout: 7000, 
//    next:   '#quotes', 
//    pause:   1 
//});
	$("#pause").click(function(){$('#quotes').cycle('pause'); });
	$("#play").click(function(){$('#quotes').cycle('resume'); });
//});



});



