function getBrowserWidth() {
	if (window.innerWidth) return window.innerWidth;
	else if (document.documentElement && document.documentElement.clientWidth != 0) return document.documentElement.clientWidth;
	else if (document.body) return document.body.clientWidth;
	else return 0;
}

function getBrowserHeight() {
	if (window.innerHeight) return window.innerHeight;
	else if (document.documentElement && document.documentElement.clientHeight != 0) return document.documentElement.clientHeight;
	else if (document.body) return document.body.clientHeight;
	return 0;
}

function fixBgPos() {
	var windowWidth = getBrowserWidth();
	var myBody = document.getElementById("q");
	if(windowWidth<950 && windowWidth>0) {
		myBody.style.backgroundPosition = '-805px 0px';
	}else{
		myBody.style.backgroundPosition = 'top center';
	}
}

function fixContent() {
	var myContent = document.getElementById("content");
	var myContentContainer = document.getElementById("contentContainer");
	if(myContentContainer.style.height < 380) {
		myContent.style.height = '380px';
	}
}

