$(document).ready(function()
{
	if(jQuery.browser.opera)
	{	
		$(".featuresBlockBottom")	.corner	("6px")
									.css	('background', 	'#e2e2e2');
		$('.inner').corner("5px");
		$('.corner').css('margin','-11px 0 0 379px');
	}	
	
	$(function ()
	{
		var img = new Image();
		$(img).load(function ()
		{
			$("#splash").css('background','url("/images/splash.jpg") no-repeat');
		}).attr('src', '/images/splash.jpg');
		
		img = new Image();
		$(img).load(function ()
		{
			$("#splashSh").css('background','url("/images/splash_sh.jpg") no-repeat');
			$("#splashSh").animate({ 
				opacity: 1
			}, 1500 );
		}).attr('src', '/images/splash_sh.jpg');
		
		img = new Image();
		$(img).load(function ()
		{
			$("#smallShadow").css('background','url("/images/small_sh.jpg") no-repeat');
			$("#smallShadow").animate({ 
				opacity: 1
			}, 1500 );
		}).attr('src', '/images/small_sh.jpg');
	});
	
	$('#smallSlogan').infiniteCarousel();

	$('.scrShotGall').click(function(){
		hs.expand($("#firstScreen")[0]);
		return false;
	});

	$('.vimeoVideo').click(function(){
	
		hs.htmlExpand(this, {
			objectType: 'swf', 
			width: 600, 
			objectWidth: 600, 
			objectHeight: 480, 
			maincontentText: 'You need to upgrade your Flash player', 
			swfOptions: { 
				params: { 
					allowfullscreen: 'true' 
				} 
			}  
		});
		
		return false;
	});

	
	hs.addSlideshow({
		interval: 5000,
		repeat: false,
		useControls: true,
		overlayOptions: {
			className: 'text-controls',
			position: 'bottom center',
			relativeTo: 'viewport',
			offsetY: -85
		},
		thumbstrip: {
			position: 'bottom center',
			mode: 'horizontal',
			relativeTo: 'viewport'
		}
	});
});