


$(document).ready(function(){
						   
   $("#featureItems").css("overflow","hidden").css('height','479px');
   $('.feature').css('height','600px');
						   
   $("#featureList .item1 a, #appFactory .previous a").click(function(){
     $('#featureItems').scrollTo('0px', 1000, {axis:'x'});
	 $("#featureList a").removeClass('active');
	 $("#featureList .item1 a").addClass('active');
	 $('#background').fadeOut('slow', function() {
	 	$('#background').css('background-image', 'url(images/bg-apps.jpg)');
	 	$('#background').css('background-color', '#000');
}).fadeIn('slow');
	 $(this).blur();
	 return false;
   });
   $("#featureList .item2 a, #mippinPortal .previous a, #appsAndSites .next a").click(function(){
     $('#featureItems').scrollTo('1000px', 1000, {axis:'x'});
	 $("#featureList a").removeClass('active');
	 $("#featureList .item2 a").addClass('active');
	 $('#background').fadeOut('slow', function() {
	 	$('#background').css('background-image', 'url(images/bg-appfactory.jpg)');
	 	$('#background').css('background-color', '#DFD6A9');
}).fadeIn('slow');
	 $(this).blur();
	 return false;
   });
   $("#featureList .item3 a, #whiteLabel .previous a, #appFactory .next a").click(function(){
     $('#featureItems').scrollTo('2000px', 1000, {axis:'x'});
	 $("#featureList a").removeClass('active');
	 $("#featureList .item3 a").addClass('active');
	 $('#background').fadeOut('slow', function() {
	 	$('#background').css('background-image', 'url(images/bg-portal2.jpg)');
	 	$('#background').css('background-color', '#000');
}).fadeIn('slow');
	 $(this).blur();
	 return false;
   });
   $("#featureList .item4 a, #mippinPortal .next a").click(function(){
     $('#featureItems').scrollTo('3000px', 1000, {axis:'x'});
	 $("#featureList a").removeClass('active');
	 $("#featureList .item4 a").addClass('active');
	 $('#background').fadeOut('slow', function() {
	 	$('#background').css('background-image', 'url(images/bg-whitelabel.jpg)');
	 	$('#background').css('background-color', '#1E3138');
}).fadeIn('slow');
	 $(this).blur();
	 return false;
   });
 });
