
BodyJsExist='YES';
BodyH = getBodyH();
var cP ='';
var string  = self.location.href.split( "/" );
for ( var i =3; i < ( string.length-1 ); i++ )  cP=cP+'../'; 
function getBodyH() {
   if (parseInt(navigator.appVersion)>3) {
     if (navigator.appName=="Netscape") {  return window.innerHeight;}
     if (navigator.appName.indexOf("Microsoft")!=-1) { return document.body.offsetHeight;  }
   } else return 600;
}
var cRef=self.location.href;
if (cRef.indexOf('road')!=-1 || cRef.indexOf('partnerArea')!=-1 || cRef.indexOf('emergency')!=-1 || cRef.indexOf('routine')!=-1) {
   if (cRef.indexOf('/bp/')==-1) {
      document.body.bgColor = '#15499C';
   }
}
function setBodyImg() {
   if (document.body.background=='') {
   //document.body.backgroundColor = "#1549C";
   document.body.background = 'http://'+self.location.hostname+'/images/bgLeft3.jpg';             //normal background
   document.body.style.backgroundRepeat = "repeat"
   //document.body.bgProperties = "fixed";
   //document.body.style.backgroundRepeat = "no-repeat"
   //document.body.style.backgroundRepeat = "repeat-y"
   //document.body.style.backgroundRepeat = "repeat-x"
   }
}
function showLeft() {
   document.write('<div id="leftImg" name="leftImg" style="top:0; left:0; z-index:0; background-color:navy; ">');
//   document.write('<div id="leftImg" name="leftImg" style="position:fixed; top:0; left:0; width:140; height:100%; background-image:url('+cP+'images/left.jpg); opacity: 0.5; z-index:0;">');
   document.write('</DIV>');
}
if (cRef.indexOf('/bp/')==-1)   {
   showLeft();
   setBodyImg();
}
  
