 /* in no conflict mode */
jQuery(document).ready(function () {  

   
/* tagLine rotation */
	jQuery('#rotatingTagLine').cycle({ 
		timeout: 5000,
		speed:   1000,
		startingSlide: 0});

	jQuery('.quoteBox').cycle({ 
		timeout: 9000,
		delay:0, 
		speed:  1200,
		random: 1,
		pause: 1,
		fastOnEvent: 1 ,
		startingSlide: 0});


	jQuery('.rotatingLogos').cycle({ 
		timeout: 5000,
		delay:-1000, 
		speed:  1000,
		pause: 1,
		fastOnEvent: 1 ,
		startingSlide: 0});


/* open PDFs in a new window */
jQuery('a[href$=".pdf"]').each(function() {
  jQuery(this).attr('target', '_blank');
});

jQuery('a[href$=".ppt"]').each(function() {
  jQuery(this).attr('target', '_blank');
});

/* Fade images on rollover */
	jQuery(".fadeImage").hover(function(){
	    jQuery(this).stop().animate({"opacity": .4},200);
	},function(){
	    jQuery(this).stop().animate({"opacity": 1},600);
	});


 /* Drop Down Menu */
 
      jQuery('#topMainMenu ul li').hoverIntent(  
        function () {  
            //show its submenu  
            jQuery('ul', this).fadeIn(150);  
          },   
        function () {  
            //hide its submenu  
            jQuery('ul', this).slideUp(100);           
        }  
    	);  



/* IMAGE SWAPS  example of usage: give img the .buttonswap class and make sure to get the on (mouse on) and off (mouse off) */
	jQuery(".buttonSwap").hover(
	function()
	 {this.src = this.src.replace("_up","_down");},
	 function()
	 {this.src = this.src.replace("_down","_up");}
	);

/* IMAGE SWAPS FOR HOME RESOURCE MENU  */
jQuery(function() {
    jQuery("#menu-item-71").hover(function() {
        with ( jQuery(".underOurPict")[0]  )
            src = src.replace(/_up/, '_down');
    }, function() {
        with ( jQuery(".underOurPict")[0] )
            src = src.replace(/_down/, '_up');
    });
});


jQuery(function() {
    jQuery("#menu-item-70").hover(function() {
        with ( jQuery(".underOtherPict")[0]  )
            src = src.replace(/_up/, '_down');
    }, function() {
        with ( jQuery(".underOtherPict")[0] )
            src = src.replace(/_down/, '_up');
    });
});

jQuery(function() {
    jQuery("#menu-item-69").hover(function() {
        with ( jQuery(".connectionPict")[0]  )
            src = src.replace(/_up/, '_down');
    }, function() {
        with ( jQuery(".connectionPict")[0] )
            src = src.replace(/_down/, '_up');
    });
});

jQuery(function() {
    jQuery("#menu-item-68").hover(function() {
        with ( jQuery(".navigatePict")[0]  )
            src = src.replace(/_up/, '_down');
    }, function() {
        with ( jQuery(".navigatePict")[0] )
            src = src.replace(/_down/, '_up');
    });
});

 




/* code to clear input box of label when clicked in */
	jQuery('.default-value').each(function() {
	       var default_value = this.value;
	       jQuery(this).focus(function(){
	               if(this.value == default_value) {
	                       this.value = '';
	               }
	       });
	
	       jQuery(this).blur(function(){
	               if(this.value == '') {
	                       this.value = default_value;
	               }
	       });
	 });
	




});

