$j = jQuery.noConflict(); // ensure compatibility with other libraries
$j(function () {
	// fixes
	$j('div').fixBoxModel().fixDoubleMargin(); // fix some browser's freaks
		
	// CSS debug mode
	var CSSDebugMode = false;
	var CSSbgMaster = false;
	var masterImage = "/davicino09/wp-content/themes/davicino/images/home.jpg";
	var CSSbgMasterOpacity = 0.25;
	if (CSSDebugMode) {
		$j('.header').css({ border: '1px green solid' });
		$j('.evento div.data').css({ border: '1px red solid' });
		$j('.evento div.description').css({ border: '1px yellow solid' });
		$j('.evento div.thumb').css({ border: '1px blue solid' });
		// $j('.middle div.right').animate({ width: '-=6px' }, 0); // relative width only in $.animate(), not present in $.css()
	}

	if (CSSbgMaster) {
		$j('body > div:first').before("<div class='bgMaster'></div>");
		$j('.bgMaster').css({
			opacity: CSSbgMasterOpacity,
			width: 980,
			height: 571,
			position: 'absolute',
			zIndex: -1,
			left: '50%',
			marginLeft: '-490px',
			top: 0,
			backgroundImage: 'url(' + masterImage + ')',
			backgroundRepeat: 'no-repeat',
			backgroundPosition: 'center'
		});
	}
});