// Scripts that are pre loaded (required before loading), let them cache by being in this separate file

// Globals
var mailAddr = 'mailto:daniel.lervik(kringla)aland.net?subject=Kontakt, daniellervik.com';
var mailText = 'daniel.lervik(kringla)aland.net';

// Init stuff
$(function(){
	// Do replacements on email addresses
	mailAddr = mailAddr.replace(/\(kringla\)/, '@');
	mailText = mailText.replace(/\(kringla\)/, '@');
	$('#magic').attr('href', mailAddr);
	$('#magic').text(mailText);

	// Fade in the page elements
	$('header hr').hide().fadeIn(2500);
	$('header img').hide().fadeIn(3000);
	$('#content').hide().fadeIn(3500);
	$('footer').hide().fadeIn(4500);
});
