// JavaScript Document
function setMargins() {
	var width = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		width = window.innerWidth;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
		width = document.documentElement.clientWidth;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
		width = document.body.clientWidth;
	}
	
	var margin = 20;
	if (width > 1200)
		margin = 20 + (width - 1200)/2;
	else if (width < 840){
		margin = 20 + (width - 840)/2;
		if (margin < 0)
			margin = 0;
	}
	if (document.getElementById("header") != null) {
		document.getElementById("header").style.left = margin + "px";
		document.getElementById("header").style.right = margin + "px";
	}
	if (document.getElementById("strip") != null) {
		document.getElementById("strip").style.left = margin + "px";
	}
	if (document.getElementById("product") != null) {
		document.getElementById("product").style.left = 120+margin + "px";
		document.getElementById("product").style.right = margin + "px";
	}
	if (document.getElementById("page") != null) {
		document.getElementById("page").style.left = margin + "px";
		document.getElementById("page").style.right = margin + "px";
	}
	if (document.getElementById("footer") != null) {
		document.getElementById("footer").style.left = margin + "px";
		document.getElementById("footer").style.right = margin + "px";
	}

}
