
		$(function () {
			//Anything Slider
 			$('#slider1').anythingSlider({
	 			resizeContents: false,
	 			autoPlayLocked:true,
	 			resumeDelay:5000,
	 			delay: 5000
	 			
 			});
 			//End Anything Slider
 			
 			//Cyclelite Slideshow
		  $('#slideshow1').cycle();
		    
		  $('#slideshow2').cycle({
		  	prev:   '#prev',
        next:   '#next',
        timeout: 0
	    });
	    
	    $('#slideshow3').cycle({
	        delay: 2000,
	        speed: 500,
	        before: onBefore
	    });
	    
	    function onBefore() {
	        $('#title').html(this.alt);
	    }
	    
	    $('#slideshow4').cycle({
	        fx: 'custom',
	        cssBefore: { top: 232 },
	        animIn:  { top: 0 },
	        animOut: { top: -232 }
	    });
	    //End Cyclelite Slideshow
	    
	    //jCarousel
			$(".jCarouselLite").jCarouselLite({
	  		btnNext: ".next",
	    	btnPrev: ".prev",
	    	speed: 800,
	    	visible: 3
	    });
	 		//End jCarousel
	 		
	 		//Fancybox
			$("a#example1").fancybox();

			$("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			//End Fancybox
			
			//Tabs
			$("ul.tabs").tabs("div.panes > div");
			//End Tabs
			
			//Tooltip
			$("#demo img").tooltip({
				effect: 'slide'
			});
			//End Tooltip
		});	
		
		jQuery('ul.sf-menu').superfish({
			animation: {opacity:'show'},
			speed: 'fast',
			autoArrows: false,
			dropShadows: false
		});
		
		$(".case-study h3 a").fancybox({
			'hideOnContentClick': false,
			'autoDimensions': false,
			'scrolling': 'auto',
			'width': 585,
			'height': 535
		});
		
		$(".case-study.news h3 a").fancybox({
			'hideOnContentClick': false,
			'autoDimensions': false,
			'scrolling': 'auto',
			'width': 585,
			'height': 535
		});
		
		$(".person a.more").fancybox({
			'hideOnContentClick': false,
			'autoDimensions': false,
			'width': 585,
			'height': 'auto'
		});
