function setContent() {					
	//set content / dart
	var $contentHeight = jQuery("body").height()-jQuery(".header").height()-jQuery(".footer").height();
	var $contentWidth  = jQuery("body").width();
	var $newsHeight = jQuery(".newsTeaser").height();
	jQuery(".content,.pagePrevDart,.pageNextDart").css("height", $contentHeight);
	jQuery(".pagePrevDart,.pageNextDart").css("padding-top", ($contentHeight/2)-150);
	//set content / news
	jQuery(".newsTeaser").css("top", $contentHeight-jQuery(".footer").height()-10);
	jQuery(".newsTeaser").css("left", ($contentWidth/2));
}

jQuery(window).resize(function() {
	setContent();
	setBackground(1);
});				

jQuery(document).ready(function() {
	setContent();
	setBackground(0);

	jQuery("div.pagePrevDart a").one("click", function(){
		jQuery("div.pageNextDart a").unbind();
		jQuery("div#content_prev").show();
		jQuery("div#content_next").hide();
		jQuery("div#content_active").hide("fade", { direction: "right" }, 600, function(){	
			tx_wcsitepager_pi1reloadPage("prev", xajax.getFormValues("form_prev"));
		});
		return false;
	});
	
	jQuery("div.pageNextDart a").one("click", function(){	
		jQuery("div.pagePrevDart a").unbind();
		jQuery("div#content_prev").hide();
		jQuery("div#content_next").show();		
		jQuery("div#content_active").hide("fade", { direction: "left" }, 600, function(){
			tx_wcsitepager_pi1reloadPage("next", xajax.getFormValues("form_next"));
		});
		return false;
	});
});
