/*
 * ALL jQuery METHODS AND COLLECTION NEED TO USE THE FULLY-QUALIFIED 'jQuery' AND NOT '$' - WE ARE RUNNING IN
 * 	NO-CONFLICTS MODE.
 *
 */

		//Slideshow using jQuery Cycle
		jQuery(document).ready(function() {
			//alert($(".slideshow").length)
			jQuery('.slideshow').cycle({
				fx: 'fade',
				pause: 1,
				random: 1,
				timeout: 9000,
				speed: 1000

			});
		});
		
		//Slideshow using jCarousel for global nav
		
		/*jQuery(document).ready(function() {
    		jQuery('global-container').jcarousel({
    			wrap: 'circular',
				visible: 8,
				scroll: 1

   		 	});
		});*/

		
		//Popups using FancyBox
		jQuery(document).ready(function() {
			/* Apply fancybox to multiple items */
			jQuery('a.popup').fancybox({
				'transitionIn'	:	'fade',
				'transitionOut'	:	'fade',
				'speedIn'		:	600,
				'speedOut'		:	200,
				'overlayShow'	:	true,
				'overlayColor'  :   '#FFF',
				'cyclic'		:	true,
				'showNavArrows'	:	true,
				'hideOnOverlayClick': true,
				'overlayShow':	true
			});
			/* FANCY BOX WITHOUT THE ARROWS */
			jQuery('a.singlepop').fancybox({
				'transitionIn'	:	'fade',
				'transitionOut'	:	'fade',
				'speedIn'		:	600,
				'speedOut'		:	200,
				'overlayShow'	:	true,
				'overlayColor'  :   '#FFF',
				'showNavArrows'	:	false,
				'hideOnOverlayClick': true,
				'overlayShow':	true
			});
			jQuery('a.singlepop').live("click",function(){
				jQuery("a#fancybox-left, a#fancybox-right").css("height","20%");
			});
		});

		// COUPON E-MAILER
		jQuery(document).ready(function(){
			jQuery(".couponEmailButton").live("click",function(){
				var tarForm = jQuery(this).parent("form");
				tarForm.submit();
			});
		});
		
		

