
// add preloader function to jquery
$(document).ready(function() {
	jQuery.preloadImages = function()
	{
		jQuery.each (arguments, function (e)
		{ 
			jQuery ('<img src="' + this + '"  />');
		});
	}
});


// Stylesheet swapping for text size
if($.cookie("css")) {
	$("link#text-size-css").attr("href", $.cookie("css"));
}
$(document).ready(function() {
	$("#textsizebtns a").click(function() {
		$("link#text-size-css").attr("href", $(this).attr('rel'));
		$.cookie("css", $(this).attr('rel'), {expires: 365, path: '/'});
		return false;
	});
});
