// umgebungsvariablen zur browserbestimmung
var ns4 = (document.layers) ? 1 : 0; // (document.layers)? true:false;
var ie  = (document.all ) ? 1 : 0; 
var dom = (document.getElementById && !document.all) ? 1 : 0; 

function preloadimg() {
	if(document.images){
	   header = new Image();
	   header.src = "images/bg_header.gif";
	   logo = new Image();
	   logo.src = "images/logo.gif";
	   m1 = new Image();
	   m1.src = "images/ntp_conturn_m.gif";
	   m2 = new Image();
	   m2.src = "images/ntp_service_m.gif";
	   m3 = new Image();
	   m3.src = "images/ntp_technologie_m.gif";
	   m4 = new Image();
	   m4.src = "images/ntp_kontakt_m.gif";
	   m5 = new Image();
	   m5.src = "images/ntp_karriere_m.gif";
 	}
}

function change(imgname,imgsrc) {
	document[imgname].src=imgsrc;
}

function showDiv(divid) {

	if (document.layers) {
	//alert("layers");
	visible = 'show';
	hidden = 'hide';
	submenu = document.layers[divid];
	}
	else
	if (document.getElementById) {
	//alert("getElementById");
	visible = 'visible';
	hidden = 'hidden';
	submenu = document.getElementById(divid).style;
	}
	submenu.visibility = visible;
}

function hideDiv(divid) {
	if (document.layers) {
	visible = 'show';
	hidden = 'hide';
	submenu = document.layers[divid];
	}
	else
	if (document.getElementById) {
	visible = 'visible';
	hidden = 'hidden';
	submenu = document.getElementById(divid).style;
	}
	submenu.visibility = hidden;
}

function wrtMenu(menu){
	if (menu == "conturn"){
		document.writeln('<td width="120" align="left"><a href="index.html" onMouseover="showDiv(\'subm1\')" onMouseout="hideDiv(\'subm1\')"><img src="images/ntp_conturn_m.gif" width="120" height="21" name="m1" alt="Conturn BPM" border="0"></a></td>');
	}else{
		document.writeln('<td width="120" align="left"><a href="index.html" onMouseover="change(\'m1\',\'images/ntp_conturn_m.gif\'); showDiv(\'subm1\')" onMouseout="change(\'m1\',\'images/ntp_conturn_n.gif\'); hideDiv(\'subm1\')"><img src="images/ntp_conturn_n.gif" width="120" height="21" name="m1" alt="Conturn BPM" border="0"></a></td>');
	}
	if (menu == "service"){
		document.writeln('<td width="120" align="left"><a href="service.html" onMouseover="showDiv(\'subm2\')" onMouseout="hideDiv(\'subm2\')"><img src="images/ntp_service_m.gif" width="120" height="21" name="m2" alt="Service" border="0"></a></td>');
	}else{
		document.writeln('<td width="120" align="left"><a href="service.html" onMouseover="change(\'m2\',\'images/ntp_service_m.gif\'); showDiv(\'subm2\')" onMouseout="change(\'m2\',\'images/ntp_service_n.gif\'); hideDiv(\'subm2\')"><img src="images/ntp_service_n.gif" width="120" height="21" name="m2" alt="Service" border="0"></a></td>');
	}
	if (menu == "technologie"){
		document.writeln('<td width="120" align="left"><a href="technologie.html" onmouseover="showDiv(\'subm3\')" onmouseout="hideDiv(\'subm3\')"><img src="images/ntp_technologie_m.gif" width="120" height="21" name="m3" alt="Technologie" border="0"></a></td>');
	}else{
		document.writeln('<td width="120" align="left"><a href="technologie.html" onmouseover="change(\'m3\',\'images/ntp_technologie_m.gif\'); showDiv(\'subm3\')" onmouseout="change(\'m3\',\'images/ntp_technologie_n.gif\'); hideDiv(\'subm3\')"><img src="images/ntp_technologie_n.gif" width="120" height="21" name="m3" alt="Technologie" border="0"></a></td>');
	}
	if (menu == "kontakt"){
		document.writeln('<td width="120" align="left"><a href="kontakt.html" onMouseover="showDiv(\'subm4\')" onMouseout="hideDiv(\'subm4\')"><img src="images/ntp_kontakt_m.gif" width="120" height="21" name="m4" alt="Kontakt" border="0"></a></td>');
 	}else{
		document.writeln('<td width="120" align="left"><a href="kontakt.html" onMouseover="change(\'m4\',\'images/ntp_kontakt_m.gif\'); showDiv(\'subm4\')" onMouseout="change(\'m4\',\'images/ntp_kontakt_n.gif\'); hideDiv(\'subm4\')"><img src="images/ntp_kontakt_n.gif" width="120" height="21" name="m4" alt="Kontakt" border="0"></a></td>');
	}
	if (menu == "karriere"){
		document.writeln('<td width="120" align="left"><a href="karriere.html" onMouseover="showDiv(\'subm5\')" onMouseout="hideDiv(\'subm5\')"><img src="images/ntp_karriere_m.gif" width="120" height="21" name="m5" alt="Karriere" border="0"></a></td>');
	}else{
		document.writeln('<td width="120" align="left"><a href="karriere.html" onMouseover="change(\'m5\',\'images/ntp_karriere_m.gif\'); showDiv(\'subm5\')" onMouseout="change(\'m5\',\'images/ntp_karriere_n.gif\'); hideDiv(\'subm5\')"><img src="images/ntp_karriere_n.gif" width="120" height="21" name="m5" alt="Karriere" border="0"></a></td>');
	}
}

function wrtSubMenu(){
	document.writeln('<div id="subm1" onmouseover="showDiv(\'subm1\')" onmouseout="hideDiv(\'subm1\')">');
	document.writeln('<table cellspacing="0" cellpadding="0" border="0">');
	document.writeln('<tr><td width="1" class="linie"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td width="118" class="linie"><img src="images/spacer.gif" width="118" height="1" alt="" border="0"></td><td width="2" class="clear"><img src="images/spacer.gif" width="2" height="1" alt="" border="0"></td></tr>');
	document.writeln('<tr>');
	document.writeln('    <td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'conturn_bpm_warum.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Warum BPM?</td>');
	document.writeln('    <td rowspan="3" class="border" width="2" valign="top"><img src="images/spacer_w.gif" width="2" height="1" alt="" border="0"></td>');
	document.writeln('</tr>');
	document.writeln('<tr><td colspan="2" class="linie"></td></tr>');
	document.writeln('<tr>');
	document.writeln('    <td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'http://www.conturn.com/portfolio1.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>CONTURN BI</td>');
	document.writeln('</tr>');
	document.writeln('<tr><td class="clear" width="1"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td class="border"><img src="images/spacer.gif" width="1" height="2" alt="" border="0"></td><td width="1" class="border"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td></tr>');
	document.writeln('</table>');
	document.writeln('</div>');
	
	document.writeln('<div id="subm2" style="border-left:solid 1px #FFFFFF;border-bottom:solid 1px #FFFFFF;" onmouseover="showDiv(\'subm2\')" onmouseout="hideDiv(\'subm2\')">');
	document.writeln('<table cellspacing="0" cellpadding="0" border="0">');
	document.writeln('<tr><td width="1" class="linie"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td width="117" class="linie"><img src="images/spacer.gif" width="117" height="1" alt="" border="0"></td><td width="2" class="clear"><img src="images/spacer.gif" width="2" height="1" alt="" border="0"></td></tr>');
	document.writeln('<tr>');
	document.writeln('    <td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'service_analyse.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Analyse</td>');
	document.writeln('    <td rowspan="5" class="border" width="2" valign="top"><img src="images/spacer_w.gif" width="2" height="1" alt="" border="0"></td>');
	document.writeln('</tr>');
	document.writeln('<tr><td colspan="2" class="linie"></td></tr>');
	document.writeln('<tr><td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'service_implementierung.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Implementierung</td></tr>');
	document.writeln('<tr><td colspan="2" class="linie"></td></tr>');
	document.writeln('<tr><td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'service_support.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Support / Schulung</td></tr>');
	document.writeln('<tr><td bordercolor="FFFFFF" class="clear" width="1"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td class="border"><img src="images/spacer.gif" width="1" height="2" alt="" border="0"></td><td width="1" class="border"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td></tr>');
	document.writeln('</table>');
	document.writeln('</div>');
	
	document.writeln('<div id="subm3" onmouseover="showDiv(\'subm3\')" onmouseout="hideDiv(\'subm3\')">');
	document.writeln('<table cellspacing="0" cellpadding="0" border="0">');
	document.writeln('<tr><td width="1" class="linie"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td width="117" class="linie"><img src="images/spacer.gif" width="117" height="1" alt="" border="0"></td><td width="2" class="clear"><img src="images/spacer.gif" width="2" height="1" alt="" border="0"></td></tr>');
	document.writeln('<tr>');
	document.writeln('    <td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'technologie_xbench1.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>TopEase<font size="-2">&reg;</font> XBench<font size="-2">&reg;</font></td>');
	document.writeln('    <td rowspan="3" class="border" width="2" valign="top"><img src="images/spacer_w.gif" width="2" height="1" alt="" border="0"></td>');
	document.writeln('</tr>');
	document.writeln('<tr><td colspan="2" class="linie"></td></tr>');
	document.writeln('<tr><td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'technologie_visual_rules1.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>visual rules<font size="-2">&reg;</font></td>');
	document.writeln('<tr><td class="clear" width="1"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td class="border"><img src="images/spacer.gif" width="1" height="2" alt="" border="0"></td><td width="1" class="border"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td></tr>');
	document.writeln('</table>');
	document.writeln('</div>');
	
	document.writeln('<div id="subm4" onmouseover="showDiv(\'subm4\')" onmouseout="hideDiv(\'subm4\')">');
	document.writeln('<table cellspacing="0" cellpadding="0" border="0">');
	document.writeln('<tr><td width="1" class="linie"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td width="117" class="linie"><img src="images/spacer.gif" width="117" height="1" alt="" border="0"></td><td width="2" class="clear"><img src="images/spacer.gif" width="2" height="1" alt="" border="0"></td></tr>');
	document.writeln('<tr>');
	document.writeln('    <td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'kontakt_formular.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Kontaktformular</td>');
	document.writeln('    <td rowspan="3" class="border" width="2" valign="top"><img src="images/spacer_w.gif" width="2" height="1" alt="" border="0"></td>');
	document.writeln('</tr>');
	document.writeln('<tr><td colspan="2" class="linie"></td></tr>');
	document.writeln('<tr><td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'kontakt_anfahrt.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Anfahrt</td></tr>');
	document.writeln('<tr><td class="clear" width="1"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td class="border"><img src="images/spacer.gif" width="1" height="2" alt="" border="0"></td><td width="1" class="border"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td></tr>');
	document.writeln('</table>');
	document.writeln('</div>');
	
	document.writeln('<div id="subm5" onmouseover="showDiv(\'subm5\')" onmouseout="hideDiv(\'subm5\')">');
	document.writeln('<table cellspacing="0" cellpadding="0" border="0">');
	document.writeln('<tr><td width="1" class="linie"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td width="117" class="linie"><img src="images/spacer.gif" width="117" height="1" alt="" border="0"></td><td width="2" class="clear"><img src="images/spacer.gif" width="2" height="1" alt="" border="0"></td></tr>');
	document.writeln('<tr>');
	document.writeln('    <td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'karriere_jobs.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Jobs</td>');
	document.writeln('    <td rowspan="5" class="border" width="2" valign="top"><img src="images/spacer_w.gif" width="2" height="1" alt="" border="0"></td>');
	document.writeln('</tr>');
	document.writeln('<tr><td colspan="2" class="linie"></td></tr>');
	document.writeln('<tr><td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'karriere_kontakt.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Kontakt</td></tr>');
	document.writeln('<tr><td colspan="2" class="linie"></td></tr>');
	document.writeln('<tr><td colspan="2" style="cursor:pointer;" class="submenu" onclick="document.location.href=\'http://www.conturn.com/karriere3.html\'" onmouseover=\'this.style.backgroundColor="#6C8577"\' onmouseout=\'this.style.backgroundColor="#4393D7"\'>Bewerbung</td></tr>');
	document.writeln('<tr><td class="clear" width="1"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td><td class="border"><img src="images/spacer.gif" width="1" height="2" alt="" border="0"></td><td width="1" class="border"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td></tr>');
	document.writeln('</table>');
	document.writeln('</div>');
}

