jQuery.noConflict();
(function($){

$(document).ready(function(){


	$('#content,#side1').each(function(){
		fixHeight(this);
	});
	var content = $('#content')[0];
	setInterval(function(){ fixHeight(content); }, 350);


	var w = $(window).width();
	if (w < 1030)
		$(document.body).addClass('width-small');
	else
		$(document.body).removeClass('width-small');
	

	if ($.browser.msie) {
		try {document.execCommand("BackgroundImageCache", false, true);} catch(err){};
		if (typeof(DD_belatedPNG) != 'undefined')
		{
			DD_belatedPNG.fix('.boxT, .boxM, .boxB');
		}
	}

});


function fixHeight(el) {
	var t = $('div.boxT', el).height();
	var b = $('div.boxB', el).height();
	var p = $(el).height();
	$('div.boxM', el).css({ height: (p - t - b) + 'px' });
}


})(jQuery);