// Create the tooltips only on document load
jQuery.noConflict();
jQuery(document).ready(function() 
{
	
	// Image popup with Fancybox
	jQuery("a.fancy").fancybox();	
   // Notice the use of the each() method to acquire access to each elements attributes
   
   /*
	jQuery('a.tooltip').each(function(){
		if(jQuery(this).attr('tooltip') != ""){					  
			jQuery(this).qtip({
				content: jQuery(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
			});
		}
	});
   jQuery('a.tooltip').each(function()
   {
      jQuery(this).qtip(
      {
         content: jQuery(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
		 position: {
			  corner: {
				 target: 'bottomLeft',
				 tooltip: 'topLeft'
			  }
		 },
		 style: { name: 'cream' },		   
      });
   });*/
   
   /*
   jQuery('a.websnap').each(function()
   {
      // Create image content using websnapr thumbnail service
      var content = '<img src="http://images.websnapr.com/?url=';
      content += jQuery(this).attr('href');
      content += '" alt="Loading thumbnail..." height="152" width="202" />';
      
      // Setup the tooltip with the content
      jQuery(this).qtip(
      {
         content: content,
         position: {
            corner: {
               tooltip: 'topMiddle',
               target: 'bottomMiddle'
            }
         },
         style: {
            tip: true, // Give it a speech bubble tip with automatic corner detection
            name: 'cream'
         }
      });
   });   
   
    // select #flowplanes and make it scrollable. use circular and navigator plugins 
    jQuery("#flowpanes").scrollable({size: 1}).circular().mousewheel(400).navigator({ 
 
        // select #flowtabs to be used as navigator 
        navi: "#flowtabs", 
 
        // select A tags inside the navigator to work as items (not direct children) 
        naviItem: 'a', 
 
        // assign "current" class name for the active A tag inside navigator 
        activeClass: 'current' 
 
    }); */
	
  	// remove the date box for under 16 entrants
	jQuery("#adultCheck").change(function() {
		//alert( jQuery("#adultCheck").checked );		
		if(jQuery("#adultCheck:checked").val() != null){
			jQuery("#underSixteen").hide('slow');
		} else {
			jQuery("#underSixteen").show('slow');
		}
	}
	);

});