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


 /* Add Arrow to Nested Menu */
 jQuery('#navMenu li').has('ul').children('a').addClass('subMenuHolder');

 
 /* Drop Down Menu */
      jQuery('.hoverMenu li').hoverIntent(  
        function () {  
            //show its submenu  
            jQuery('ul', this).slideDown(250);  
          },   
        function () {  
            //hide its submenu  
            jQuery('ul', this).slideUp(150);           
        }  
    	);     

/*add padding on text box - done here to work in IE */
	jQuery('.gform_wrapper input[type="text"]').css('padding','5px');

/* 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").hoverIntent(
	function()
	 {this.src = this.src.replace("_up","_down");},
	 function()
	 {this.src = this.src.replace("_down","_up");}
	);


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


/* home page image rotation */
	jQuery('.splashSlideShow').cycle({ 
		timeout: 7000,
		delay:-2000, 
		speed:   1500,
		pause: 1,		fastOnEvent: 1 ,
		startingSlide: 0});
		
	jQuery('.gotoPictureOne').click(function() { 
	    jQuery('.splashSlideShow').cycle(0); 
	    return false; }); 
	 
	jQuery('.gotoPictureTwo').click(function() {  
	    jQuery('.splashSlideShow').cycle(1);  
	    return false; });
	    
	jQuery('.gotoPictureThree').click(function() {  
	    jQuery('.splashSlideShow').cycle(2);  
	    return false; });
	    
 	jQuery('.gotoPictureFour').click(function() { 
    jQuery('.splashSlideShow').cycle(3); 
	    return false; }); 
	 
	jQuery('.gotoPictureFive').click(function() {  
	    jQuery('.splashSlideShow').cycle(4);  
	    return false; });
	    
	jQuery('.gotoPictureSix').click(function() {  
	    jQuery('.splashSlideShow').cycle(5);  
	    return false; }); 



/* home page event rotation */
	jQuery('.eventRotation').cycle({ 
		timeout: 4500,
		delay:-2000, 
		speed:   500,
		pause: 1,
		fastOnEvent: 1 ,
		startingSlide: 0});


/* 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;
               }
       });
});

/* colorbox */
jQuery('.colorbox').colorbox({maxWidth:"90%",maxHeight:"90%",photo:true});



});


