$('head').append('<style type="text/css">#header #logo h1 a {opacity:0; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);} h2, h3, h4, h5, h6, p, li, .comment-author, .commentdate, .commentsnumber, .datecat, .editlink, .metanavlinks {visibility:hidden;}</style>');


$(document).ready(function() {
	
	if (navigator && navigator.platform && navigator.platform.match(/^(iPad|iPod|iPhone)$/)) {
		//iPhone and iPad Lazy Loading is broken :(
	}
	else {
		jQuery('.bigimage img').lazyload({
			placeholder : "/images/lmv-spinner.gif",  threshold : 100, effect : "fadeIn"
		});
	}

	jQuery('#header #logo h1 a').delay(1000).fadeTo(5000, 1, function() {/* Animation complete */ });

	Typekit.load({
		loading: function(data) {
			// fonts are loading.
		},

		active: function() {
			// fonts have loaded!
			jQuery('h1, h2, h3, h4, h5, h6, p, li, .comment-author, .commentdate, .commentsnumber, .datecat, .editlink, .metanavlinks').css('visibility','visible');
		},

		inactive: function() {
			// this browser doesn't support fonts
			jQuery('h1, h2, h3, h4, h5, h6, p, li, .comment-author, .commentdate, .commentsnumber, .datecat, .editlink, .metanavlinks').css('visibility','visible');
		}

	});
});


$(window).load(function() {
	//Run anything here once the page has fully loaded
});
