function setBackground() {
	var bgWidth = 2100,
		bgHeight = 1157,
		bgAspect = bgWidth/bgHeight,
		newBgHeight = screen.availHeight+100,
		newBgWidth = newBgHeight*bgAspect,
		bgImageUrl = '/wp-content/themes/birk-campus/images/background.jpg';
	if (typeof document.body.style.backgroundSize == 'string' || typeof document.body.style.MozBackgroundSize == 'string') {
		document.body.style.backgroundImage = 'url(\'' + bgImageUrl + '\')';
		document.body.style.backgroundRepeat = 'no-repeat';
		document.body.style.backgroundPosition = 'top center';
		document.body.style.backgroundAttachment = 'fixed';
		typeof document.body.style.backgroundSize == 'string' ? document.body.style.backgroundSize = newBgWidth + 'px ' + newBgHeight + 'px' : document.body.style.MozBackgroundSize = newBgWidth + 'px ' + newBgHeight + 'px';
	} else {
		// IE 8=<, we can only set a background colour :(
		var bg = document.createElement('img'),
			s = bg.style,
			container = document.getElementById('container'),
			windowdiv = document.getElementById('window');
		s.position = 'fixed';
		s.zIndex = '-1';
		s.width = screen.availWidth;
		s.height = screen.availHeight+100;
		s.top = '0px';
		s.left = '0px';
		bg.src = bgImageUrl;
		windowdiv.insertBefore(bg, container);
	}
}

var lastSlide = 1;
var nextSlide = 2;

function slideShow() {
	jQuery(function ($) {
		if ($("#billboard-"+nextSlide).length == 0) {
			nextSlide = 1;
		}
		$("#billboard-"+lastSlide).fadeOut(250, function() {
			lastSlide = nextSlide;
			$("#billboard-"+nextSlide).fadeIn(250);
			$("#billboard-"+nextSlide).css("display", "block");
			nextSlide = nextSlide+1;
		});
		console.log(nextSlide);
	});
	setTimeout("slideShow()", 5000);
}
