$('a#slick-show').click(function() {
    $('.slickbox').show('slow');
    return false;
});
  

jQuery(window).bind("load", function() {
	jQuery("div#slider1").codaSlider()
	// jQuery("div#slider2").codaSlider()
	// etc, etc. Beware of cross-linking difficulties if using multiple sliders on one page.
});


function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}


$(document).ready(function() { 

// default settings for modal image link

$("a.fancybox").fancybox({ 

	'hideOnContentClick': true,
	'centerOnScroll': true, 
	'overlayOpacity': .7,
	'padding': 4

}); 
 

// custom settings for inline signup form

$("a.fancybox-inline-signup").fancybox({ 

	'hideOnContentClick': false,
	'frameWidth': 650,
	'frameHeight': 370,
	'centerOnScroll': true, 
	'overlayOpacity': .7,
	'padding': 4 

});

// custom settings for inline login form 

$("a.fancybox-inline-login").fancybox({ 

	'hideOnContentClick': false,
	'frameWidth': 360,
	'frameHeight': 200,
	'centerOnScroll': true, 
	'overlayOpacity': .7,
	'padding': 4 

}); 

$("a.fancybox-inline-videos").fancybox({ 

	'hideOnContentClick': false,
	'frameWidth': 640,
	'frameHeight': 480,
	'centerOnScroll': true, 
	'overlayOpacity': .7,
	'padding': 4 

});

$("a.group").fancybox({ 

	'zoomSpeedIn': 300, 
	'zoomSpeedOut': 300, 
	'overlayShow': false, 
	'centerOnScroll': true, 
	'overlayOpacity': .7,
	'padding': 4 
	
}); });

//tooltips

$.fn.qtip.styles.hippostyle = { // Last part is the name of the style
   width: 275,
   background: '#CFE9AA',
   color: '#4f6b34',
   textAlign: 'left',
   border: { width: 3, radius: 6, color: '#A9DC66' },
   tip: 'bottomLeft'
}

// Create the tooltips only on document load
$(document).ready(function() 
{
   // Notice the use of the each() method to acquire access to each elements attributes
   $('a[tooltip]').each(function()
   {
      $(this).qtip({
         content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
         style: 'hippostyle', // custom tooltip style
         position: {
      		corner: {
         		target: 'topRight',
         		tooltip: 'bottomLeft'
      		}
  		 }
      });
   });
});


// custom settings for Press Videos



