$( function(){

function createDropshadow(){
	$('div.intro_main span').each(
		function( intIndex){
			var tmp = $(this).clone();
			tmp.removeClass('text_'+intIndex);
			tmp.addClass('text_'+intIndex+'_dropshadow');
			var zindex = tmp.css('z-index')-1;
			var top = parseInt(tmp.css('top').substr(0,tmp.css('top').length-2))+2+'px';
			var left = parseInt(tmp.css('left').substr(0,tmp.css('left').length-1))+'.08%';
			tmp.css({'z-index':zindex,'color':'#001c12','position':'absolute','top':top,'left':left});
			tmp.insertAfter($(this));
		}
	);
}


	createDropshadow();
	decreaseOpacity();
	setTimeout("showTextFive()",1000);
	setTimeout("showTextTwo()",2500);
	setTimeout("showTextThree()",4000);
	setTimeout("showTextFour()",5500);
	setTimeout("showTextZero();",7000);
	setTimeout("showTextSix()",8500);
	setTimeout("showTextOne()",10000);
	setTimeout("increaseOpacity()",11500);
	
});

function showTextZero(){$(".text_0, .text_0_dropshadow").fadeIn('slow');}
function showTextOne(){$(".text_1, .text_1_dropshadow").fadeIn('slow');}
function showTextTwo(){$(".text_2, .text_2_dropshadow").fadeIn('slow');}
function showTextThree(){$(".text_3, .text_3_dropshadow").fadeIn('slow');}
function showTextFour(){$(".text_4, .text_4_dropshadow").fadeIn('slow');}
function showTextFive(){$(".text_5, .text_5_dropshadow").fadeIn('slow');}
function showTextSix(){$(".text_6, .text_6_dropshadow").fadeIn('slow');}
function decreaseOpacity(){$('.enter_button').fadeTo('fast',0.2);}
function increaseOpacity(){$('.enter_button').fadeTo('slow',1);}



