<!-- template="con_901_js" title="special_voith_???_export_sys_js_checkstyle.js" ownID="6" ownURL="/sys/js/checkstyle.js" -->


// Default browsercheck, added to all scripts!
function checkBrowser(){
  this.name = navigator.userAgent;
  this.ver=navigator.appVersion
  this.dom=document.getElementById?1:0
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
  this.ie4=(document.all && !this.dom)?1:0;
  this.opera = (this.name.indexOf("Opera")>-1)?1:0;
  this.ns5=( (this.dom && parseInt(this.ver) >= 5) || this.opera ) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1
  this.ns4mac=this.ns4 && navigator.appVersion.indexOf("Mac")>-1
  this.ie5mac=this.ie5 && navigator.userAgent.indexOf("Mac")>-1
  this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0;
  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
  this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
  this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom)?1:0;
  this.mac = ( this.ie4mac || this.ns4mac || this.ie5mac ) 
  this.ns = ( this.ns4 || this.ns5 );
  this.ie = ( this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie4 );
  this.ie5 = (this.ie8 || this.ie7 || this.ie6 || this.ie5 );  // Hinweis: Workaround, weil wir an vielen Stellen explizit auf ie4 || ie5 abtesten
  this.bw=( this.dom ||  this.ie || this.ns || this.ie5mac)
  return this;
}
bw = new checkBrowser();


/*Set these values, gright for how much from the right you wan't the layer to go
and gbottom for how much from the bottom you want it*/
var gright=750
var gbottom=30
var pageWidth=0


/********************************************************************************
Redirect incompatible browsers 
********************************************************************************/
if( parseInt(bw.ver) <= 3 ||  ( bw.mac && bw.ie4  ) ) {
 if( self.location.href.indexOf("/d_") > -1 || self.location.href.indexOf("_d.") > -1 ) {
    top.location="/d_oldbrowser.htm"; }
 else {
    top.location="/e_oldbrowser.htm"; } 
} 


/********************************************************************************
Constructing the Style Sheet for PC or MAC
********************************************************************************/
if (window.cssPath) {
  //ok
} else {
  window.cssPath = "/sys/css/";
}


document.write('<link rel="STYLESHEET" type="text/css" href="'+window.cssPath+'pc.css">');

/*
  if(bw.mac) document.write('<link rel="STYLESHEET" type="text/css" href="'+window.cssPath+'mac.css">')
  else document.write('<link rel="STYLESHEET" type="text/css" href="'+window.cssPath+'pc.css">')
*/
