function getBrowser(){
	var notsupported = "notsupported";
	if (navigator.userAgent.indexOf("Opera") != -1) return ('ns6');
	if (navigator.appName == "Netscape") {
		var ver = parseInt (navigator.appVersion);
		if (ver == 4) return "ns4";
		if (ver >= 5) return "ns6";
		return (notsupported);
	}
	if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.appVersion.indexOf ("MSIE 4") >= 0) return ("ie4");
		else if (navigator.appVersion.indexOf ("MSIE 5") >= 0) return ("ie5");
		else if (navigator.appVersion.indexOf ("MSIE 6") >= 0) return ("ie5");
		else if (navigator.appVersion.indexOf ("MSIE 7") >= 0) return ("ie5");
		return (notsupported);
	}
	return (notsupported);
}

var shared = getPath ("shared");
var browser = getBrowser();
	if (document.images){       
        var m_0 = new Image(); m_0.src="images/m_0.gif";
        var mo_0 = new Image(); mo_0.src="images/mo_0.gif";
        var m_1 = new Image(); m_1.src="images/m_1.gif";
        var mo_1 = new Image(); mo_1.src="images/mo_1.gif";
        var m_2 = new Image(); m_2.src="images/m_2.gif";
        var mo_2 = new Image(); mo_2.src="images/mo_2.gif";
        var m_3 = new Image(); m_3.src="images/m_3.gif";
        var mo_3 = new Image(); mo_3.src="images/mo_3.gif";
        var m_4 = new Image(); m_4.src="images/m_4.gif";
        var mo_4 = new Image(); mo_4.src="images/mo_4.gif";
        var m_5 = new Image(); m_5.src="images/m_5.gif";
        var mo_5 = new Image(); mo_5.src="images/mo_5.gif";
        var m_6 = new Image(); m_6.src="images/m_6.gif";
        var mo_6 = new Image(); mo_6.src="images/mo_6.gif";
	}

function wechsel(bname,bild){
  for (i=0;i<=6;i++){
    imgNr=i;
    if (i<10) imgNr="0"+i;
    imgNameHi="m" + imgNr;
    imgNameLo="m_"+i+".src";
    document.images[imgNameHi].src=eval(imgNameLo);
  }
	document.images[bname].src=bild.src;
}

function hideObj(obj,action){
	var visible = (document.layers) ? 'show' : 'visible';		
	var hidden = (document.layers) ? 'hide' : 'hidden';		
	if (!(document.layers || document.getElementById)){ var layer = eval('document.all.' + obj + '.style');	}
	else{ var layer = (document.layers) ? document.layers[obj] : eval('document.getElementById(obj).style');	}
	if(hideObj.arguments.length >= 2){layer.visibility = visible;	}
	else{layer.visibility = hidden;	}
}

function fillLayer (ref) {

var c = "unknown content";

	if (fillLayer.arguments[0] == "QPrinz") {
	// Q U A L I T A E T S P R I N Z I P I E N: Layer "QPrinz": Textformatierung und Tabellenlayout:
		layName = "QPrinz";
		ref = getLayerRef (layName);
		var num = fillLayer.arguments[1];
		var prinz = new Array();
		prinz[0] = new Array();
		prinz[0][0] = "<strong>Quality standards</strong><br>&#147;It has always been an unbearable thought to me that someone could inspect one of my products and find it inferior in any way. For that reason I have constantly tried to produce products which withstand the closest scrutiny &#150; products which prove themselves superior in every respect...&#148;";
		prinz[0][1] = "<br><br><img src=\"../../shared/transparent.gif\" width=\"18\" height=\"1\" border=\"0\">- Robert Bosch, 1918 -<br><img src=\"images/sign.gif\" width=\"180\" height=\"60\" border=\"0\">";
		prinz[1] = new Array();
		prinz[1][0] = "Our goal is to fully satisfy our customer's expectations through the quality of our products and services.";
		prinz[1][1] = "";
		prinz[2] = new Array();
		prinz[2][0] = "Quality and Quality improvement is every associates responsibility and ultimate goal &#150; from the board of directors to apprentices.";
		prinz[2][1] = "";
		prinz[3] = new Array();
		prinz[3][0] = "Our directives, processes, systems and goals are based on requirements from international standards, customer expectations, our knowledge and experience. Knowledge of and compliance with these directives and processes is the foundation of our quality.";
		prinz[3][1] = "";
		prinz[4] = new Array();
		prinz[4][0] = "Quality means doing the detail from the beginning, thus preventing failures in the end. Continuous improvement of the quality of processes lowers costs and increases productivity.";
		prinz[4][1] = "";
		prinz[5] = new Array();
		prinz[5][0] = "Avoiding failures is more important than eliminating defects. We apply methods and tools for preventive quality assurance systematically, learn from mistakes and eliminate their root causes without delay.";
		prinz[5][1] = "";
		prinz[6] = new Array();
		prinz[6][0] = "Our suppliers contribute substantially to the quality of our products and services. Therefore our suppliers must live up to the same high quality standards we have adopted.";
    prinz[6][1] = "";
	
		if(document.images){var numbild = "<img src=\"images/m_"+(num)+".gif\" vspace=2 width=16 height=9 border=0>";}else{var numbild = "<b>"+(num)+"</b>";}
		var c = "<table border='0' cellspacing='0' cellpadding='0'>\n<tr>\n";
		c +=	"<td><img src=\"../../shared/transparent.gif\" width='18' height='1'></td>\n";
		c +=	"<td><img src=\"../../shared/transparent.gif\" width='331' height='1'></td>\n";
		c +=	"<td><img src=\"../../shared/transparent.gif\" width='6' height='1'></td>\n";
		c +=	"<td><img src=\"../../shared/transparent.gif\" width='180' height='1'></td>\n";
		c +=	"<td><img src=\"../../shared/transparent.gif\" width='6' height='1'></td>\n";
		c +=	"</tr><tr>\n";
		
		c +=	"<td class=\"f12bluedark\" valign=\"top\" width=18 align=\"center\">"+numbild+"</td>\n";
		c +=	"<td class=\"f12bluedark\" valign=\"top\" width=331>"+prinz[num][0]+"</td>\n";
		c +=	"<td><img src=\"../../shared/transparent.gif\" width=1 height=90></td>\n";
    c +=	"<td class=\"f12bluedark\" valign=\"top\" width=331>"+prinz[num][1]+"</td>\n";
		c +=	"<td><img src=\"../../shared/transparent.gif\" width=1 height=1></td>\n";
		c +=	"</tr><tr>\n";
		c +=	"<td colspan=\"3\"><img src=\"../../shared/transparent.gif\" width=1 height=4></td>\n";
		c +=	"</tr>\n</table>\n";
	}
	
	layerWrite (ref, c);
	hideObj(layName,'show');
}

// infolayer definition
var infoTimer = 0;

function setLayerPosition(){
	if (!v4) return;
	var w = getDocumentProperty ("clientWidth");
	refo = getLayerStyleRef (layName);
	if(w >= 720) {
		if(browser == "ns6"){var korr = 1;}else{korr = 0;}
		if((browser == "ns4") && ((navigator.platform).toLowerCase().indexOf("mac")>=0)){ korr = 2; }	// Korrektur fuer NS4 & 6 auf Mac.
		//refo.left = parseInt((w-720)/2)+180+korr;	
	} else {
		//refo.left = 180;
	}
	infoTimer=setTimeout("setLayerPosition()", 200);
}

function setQPrinz(){
	var layer=getLayerStyleRef ('QPrinz');
	if (!v4) return;
	if(browser == "ns6"){var korr = 14;}
	else if(browser == "ns4"){var korr = 5;layer.top = 526;}
	else{var korr = 6;}
	var w = getDocumentProperty ("clientWidth");
	if(w >= 720) {
		//layer.left = parseInt((w-720)/2)+180+korr;	
	} else {
		//layer.left = 180;
	}
	infoTimer=setTimeout("setQPrinz()", 200);
}