var postImg_MaxWidth = screen.width - 202;
var postImgAligned_MaxWidth = Math.round(screen.width/3);
var attachImg_MaxWidth = screen.width - 280;
var ExternalLinks_InNewWindow = '1';


function initSpoilers(context)
{
	var context = context || 'body';
	$('div.sp-head-wrap', $(context)).click(function(){
		$(this).find('div.sp-head').toggleClass('unfolded');
		$(this).next('div.sp-body').slideToggle('slow');
	});
}


$(document).ready(function(){
	initSpoilers('body');
	initExternalLinks();

});
$(window).load(function(){ imgFit_Onload('body'); });



