

// SLIDER
$(function(){
			$('#slides').slides({
				preload: true,
				preloadImage: 'images/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true
			});
		});
	
	
// ROLLOVER

$(function(){

            

            $(".navItem").css({opacity:0.75})

                       $(".accent").css({opacity:0.0})

            

                       $(".navItem").hover(

                       function(){

                       $(this).stop().find(".accent").animate({opacity:1.0})

                       $(this).animate({opacity:1.0, marginTop:'20px'})

                       

                       },

                       function(){

                       $(this).stop().find(".accent").animate({opacity:0.0})

                       $(this).animate({opacity:0.75, marginTop:'0px'})

                       

                       }

                       )

                       

        })

// ANCHOR EASE
            $(function() {
                $('ul.nav a').bind('click',function(event){
                    var $anchor = $(this);
                    
                    $('html, body').stop().animate({
                        scrollTop: $($anchor.attr('href')).offset().top
                    }, 1500,'easeInOutExpo');
                    /*
                    if you don't want to use the easing effects:
                    $('html, body').stop().animate({
                        scrollTop: $($anchor.attr('href')).offset().top
                    }, 1000);
                    */
                    event.preventDefault();
                });
            });

// FANCYBOX

$(function() {

	/* Apply fancybox to multiple items */
	
	$("#windowPrintContain a").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	400, 
		'speedOut'		:	200, 
		'overlayColor'  :  '#272626',
		'overlayShow'	:	true,
		'hideOnOverlayClick': true,
		'hideOnContentClick': true,
		'showCloseButton': true,
		'opacity': true,
	});
	
	
	$("#windowPackagingContain a").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	400, 
		'speedOut'		:	200, 
		'overlayColor'  :  '#272626',
		'overlayShow'	:	true,
		'hideOnOverlayClick': true,
		'hideOnContentClick': true,
		'showCloseButton': true,
		'opacity': true,
	});
	
	$("#windowimage a").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	400, 
		'speedOut'		:	200, 
		'overlayColor'  :  '#272626',
		'overlayShow'	:	true,
		'hideOnOverlayClick': true,
		'hideOnContentClick': true,
		'showCloseButton': true,
		'opacity': true,
	});
	
  });

