function centerHeaderBg() {
	var myWidth = 0;
  var headerWidth = 1419;
	var header = document.getElementById('header');
	if (typeof(window.innerWidth)=='number') {
    // Non-IE
		myWidth = window.innerWidth;
  } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
    // IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
    // IE 4 compatible
    myWidth = document.body.clientWidth;
  }
	header.style.background = 'url(templates/media/header.jpg) -'+ (headerWidth/2 - myWidth/2 +15) +'px repeat-x'
}

function dumpobj(obj) {
	var out='';
	for (a in obj) {
		out += a +' -++- '+ obj[a] +'\n';
	}
	document.write('<pre>'+ out + '</pre>');
	//alert(out);
}

