/* 
** Theme:    Definition
** Author:   Phoenix Zero
** Document: Javascript Plugin Settings
*/

<!-- Lightbox -->

	$(function() {
			   
		$('a.lightbox').lightBox({
				
			imageLoading:			'/site_media/cms/images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
			imageBtnPrev:			'/site_media/cms/images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
			imageBtnNext:			'/site_media/cms/images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
			imageBtnClose:			'/site_media/cms/images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
			imageBlank:				'/site_media/cms/images/lightbox-blank.gif'			// (string) Path and the name of a blank image (one pixel)
				
			}); /* links that have class="lightbox" will be displayed in the Lightbox plugin */
		
	});
	
<!-- End Lightbox -->

<!-- Cufon -->

	Cufon.replace('h1'); /* replaces h1, h2, h3, h4, h5, and h6 headings with the custom Cufon font */
	Cufon.replace('h2');
	Cufon.replace('h3');
	Cufon.replace('h4');
	Cufon.replace('h5');
	Cufon.replace('h6');
	Cufon.replace('.cufon'); /* replaces the main navigation with the custom Cufon font */

<!-- End Cufon -->

<!-- jQuery Cycle Plugin -->

$(document).ready(function(){ /* script operates once the page is loaded */

	$('#featured-image').cycle({ 
    	fx:     'scrollRight', /* transition effect (for a full list of transitions, visit http://malsup.com/jquery/cycle/browser.html) */
    	speed:  1000, /* speed of transition (in milliseconds) */
    	timeout: 5000, /* time between automatic transitions (0 = no auto transitions) */
		easing: 'easeinout', /* transition easing effect */
    	pager:  '#featured-navigation', /* navigation that controls the slider (do not edit) */
    	pagerAnchorBuilder: function(idx, slide) { return '#featured-navigation a:eq(' + idx + ')'; } /* DO NOT DELETE */
	});
	
	$('#featured-slides').cycle({ 
    	fx:     'scrollVert', /* transition effect (for a full list of transitions, visit http://malsup.com/jquery/cycle/browser.html) */
    	speed:  1000, /* speed of transition (in milliseconds) */
    	timeout: 5000, /* time between automatic transitions (0 = no auto transitions) */
		//easing: 'bounceout', /* transition easing effect */
		easing: 'easeinout', /* transition easing effect */
    	pager:  '#featured-navigation', /* navigation that controls the slider (do not edit) */
    	pagerAnchorBuilder: function(idx, slide) { return '#featured-navigation a:eq(' + idx + ')'; } /* DO NOT DELETE */
	});
	
});

<!-- End jQuery Cycle Plugin -->

<!-- Custom Caption Script -->

$(document).ready(function(){ /* script operates once the page is loaded */
				
		$('.slide').hover(function(){
												 
				$(".cover-bottom", this).stop().animate({top:'205px'},{
												 
						queue:    false,
						duration: 160 /* transition time (in milliseconds) from closed to open */
						
				});
												 
				$(".cover-top", this).stop().animate({top:'0px'},{
												 
						queue:    false,
						duration: 160 /* transition time (in milliseconds) from closed to open */								 
					 
		});}, function() {
			
				$(".cover-bottom", this).stop().animate({top:'267px'},{
												 
						queue:    false,
						duration: 600, /* transition time (in milliseconds) from open to closed */
						easing:   'bounceout' /* easing effect (note: easing plugin required) */
						
				});
						
				$(".cover-top", this).stop().animate({top:'-38px'},{
												 
						queue:    false,
						duration: 600, /* transition time (in milliseconds) from open to closed */
						easing:   'bounceout' /* easing effect (note: easing plugin required) */		
					
});});});

function pause_slides() {
		$('#featured-image').cycle('pause');
		$('#featured-slides').cycle('pause');
		return false;
}

<!-- End Custom Caption Script -->
