// Global CSS adjustments
//document.writeln(screen.colorDepth);
document.writeln('<style type="text/css">'); 
document.writeln('<!--'); 

document.writeln('.h1fontsize {');
if (screen.width <= 800)
	document.writeln('font-size: 10px;');
else
	document.writeln('font-size: 11px;');
document.writeln('}');
		
if (screen.colorDepth > 16 || screen.pixelDepth > 16){
	document.writeln('body {');
	//document.writeln('background:#990000;');
	document.writeln('background-image: url(img/bg_main.jpg);');
	//document.writeln('background-repeat: no-repeat;');
	//document.writeln('background-position: right top;');
	document.writeln('}');
	
	document.writeln('.headercentrec {');
	document.writeln('background-image: url(img/bg_cooldealshade.jpg)');
	document.writeln('}');
	
	document.writeln('.headertopsales {');
	document.writeln('background-image: url(img/bg_topsalesshade.jpg)');
	document.writeln('}');
}
document.writeln('-->');
document.writeln('</style>');

onresize = "change()"

function change(winW){
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
 }
if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
 }
}
//alert(winW)
if (winW<950) {
document.getElementById("headercentre").style.display = "none";
}
if (winW<1130) {
document.getElementById("headercentre2").style.display = "none";
}


if (winW>950) {
document.getElementById("headercentre").style.display = "";
}
if (winW>1130) {
document.getElementById("headercentre2").style.display = "";
}

}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
 
 
