//* $(document).ready(function(){
//* 	$('#home')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:600})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:600})
//* 		})
//* 	$('#services')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:600})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:600})
//* 		})
//* 	$('#studio')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:600})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:600})
//* 		})	
//* 	$('#lab')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:600})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:600})
//* 		})
//* 	$('#investors')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:600})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:600})
//* 		})
//* 	$('#careers')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:600})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:600})
//* 		})
//* 	$('#corporate')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:600})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:600})
//* 		})
//* 	$('#contact')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:600})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:600})
//* 		})	
//* 	$('.box_300')
//* 		.css( {backgroundPosition: "0 0"} )
//* 		.mouseover(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:1000})
//* 		})
//* 		.mouseout(function(){
//* 			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:1000})
//* 		})	
//* });	*//
$(document).ready(function() {
		$('#slider ul').innerfade({
			animationtype: 'fade',
			speed: 2000,
			timeout: 8000,
			type: 'sequence',
			containerheight: $('#slider').height()
			});	
});
$(document).ready(function(){
		   $('.latest_img').fadeTo('slow', 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
		   $('.latest_img').hover(function(){
		   $(this).fadeTo('slow', 1.0); // This should set the opacity to 100% on hover
		   },function(){
		   $(this).fadeTo('slow', 0.3); // This should set the opacity back to 30% on mouseout
		   });
});
$(document).ready(function(){
		   $('.latest_imgs').fadeTo('slow', 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
		   $('.latest_imgs').hover(function(){
		   $(this).fadeTo('slow', 1.0); // This should set the opacity to 100% on hover
		   },function(){
		   $(this).fadeTo('slow', 0.3); // This should set the opacity back to 30% on mouseout
		   });
});


$(document).ready(function() {
	 
	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
 
});

$(document).ready(function(){
	 
	//Larger thumbnail preview 
	 
	$("ul.thumb li").hover(function() {
		$(this).css({'z-index' : '10'});
		$(this).find('img').addClass("hover").stop()
			.animate({
				marginTop: '-110px', 
				marginLeft: '-110px', 
				top: '50%', 
				left: '50%', 
				width: '134px', 
				height: '134px',
				padding: '40px' 
			}, 200);
		
		} , function() {
		$(this).css({'z-index' : '0'});
		$(this).find('img').removeClass("hover").stop()
			.animate({
				marginTop: '0', 
				marginLeft: '0',
				top: '0', 
				left: '0', 
				width: '110px', 
				height: '110px', 
				padding: '2px'
			}, 200);
	});
	 
	//Swap Image on Click
		$("ul.thumb li a").click(function() {
			
			var mainImage = $(this).attr("href"); //Find Image Name
			$("#main_view img").attr({ src: mainImage });
			return false;		
		});
	 
});

$("#map").gMap({ markers: [{ latitude: 51.5,
                              longitude: 0.0,
                              html: "London, United Kingdom",
							  html: "Soon in the office",
                              popup: true }],
                  zoom: 6 });
                 
