jQuery(document).ready(function($){
	var to;
	function welcome_message(){
		clearTimeout(to);
 		m = ["Welcome", "Hello", "Hiya", "Good Day", "Greetings", "Hi", "Hey", "Aloha", "Willkommen", "Bienvenue", "Benvenuto", "Bienvenido"];
		var rand = Math.floor(Math.random() * m.length);
		
		$(".welcome span").animate({
			opacity:0
		},250,'swing',function(){
			$(this).html(m[rand]).animate({
				opacity:1
			},250,'swing',function(){
				to = setTimeout(function(){welcome_message()}, 5000);
			});
		});
	}
	if($('.welcome').html("<span>")){
		welcome_message();
	}
	
	$('.fluid').fluidShow({
		auto:true
	});
	
	$('#portfolio.rpl_umbrella_services .screen').css('cursor', 'pointer').click(function(){
		window.open($(this).find('.site a').attr('href'));
	});
	
	$('#about.homepage .screen').css('cursor','pointer').click(function(){
		window.location = "/portfolio";
	});
	
	// April Fools
	
	var today = new Date();
	if (today.getMonth()+'.'+today.getDate()=='3.1' && today.getHours() < '11')  {
		$('body').prepend(
			$('<div class=".fooled">Now your having to scoll :(</div>').css({
				fontSize:'200%',
				width:200,
				textAlign:'center',
				padding:10,
				backgroundColor:'#99248b',
				color:'white',
				margin:'0 auto'
			}).fadeIn("slow")
		);
	
		$('.container_16').animate({
			marginTop:10000
		},2000,'swing',function(){
			$(this).prepend(
				$('<div class=".fooled">April Fools</div>').css({
					fontSize:'200%',
					textAlign:'center',
					padding:10,
					backgroundColor:'#99248b',
					color:'white'
				}).hide().fadeIn("slow")
			);
		});
	}

});