var $ = jQuery.noConflict();
$(function() {
	$("#splash").fadeIn(2000);
	setTimeout(function() {
		$("#siteframe").show().attr("src", "/home");
	}, 1000);
	var arrTexts = [
		'Drawing images...',
		'Arranging layout...',
		'Composing articles...',
		'Generating effects...',
		'Loading website...'
	];
	var intText = 0;
	var showText = function() {
		intText++;
		if(intText + 1 > arrTexts.length) {
			$("#splashwrap").fadeOut(500);
			return;
		}
		$("#bar span")
			.hide()
			.html(arrTexts[intText])
			.fadeIn(500, function() {
				setTimeout(function() {
					$("#bar span").fadeOut(intText + 2 > arrTexts.length ? 2500 : 500, showText);
					}, 1000);
			});
	};
	showText();
});
