<!--
// argnet040407 if(top.frames.length < 4)
// argnet040407  top.location.href="index.html";
//Browserdetect
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('omniweb')) browser = "OmniWeb";
else if (checkIt('opera')) browser = "Opera";
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab";
else if (checkIt('msie')) browser = "Internet Explorer";
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator";
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac";
	else if (checkIt('win')) OS = "Windows";
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}
//VARS
var menu = "off";
var clicked = "empty";

//Image-Rollover in Layern
var base1= "images/menu/leistungen/";
var base2= "images/menu/main/";
var base3= "images/";
var nrm = new Array();
var omo = new Array();
var stuff = new Array('agentur','leistungen','referenzen','jobs','kontakt','home',
					'marketing','merchandising','eventmodule','events','incentives','locations','outfits',
					'mailMuc','j_mail','s_mail');

// Pre-load part.   document.images
if (true){
	for (i=0;i<stuff.length;i++) {
    	
		nrm[i] = new Image;
		if (i > 12){
			nrm[i].src = base3 + stuff[i] + ".gif";
		} else if (i < 6){
			nrm[i].src = base2 + stuff[i] + ".gif";
		} else {
			nrm[i].src = base1 + stuff[i] + ".gif";
		}
        
		omo[i] = new Image;
		if (i > 12){
			omo[i].src = base3 + stuff[i] + "_roll.gif";
		} else if (i < 6){
			omo[i].src = base2 + stuff[i] + "_roll.gif";
		} else {
			omo[i].src = base1 + stuff[i] + "_roll.gif";
		}
	//endif
	}
}

function over(no,id){
	
	if((version == 4 && browser == "Netscape Navigator") || (version < 6 && browser == "Internet Explorer")){
  		if (document.layers && id){
			document.layers[id].document.images[stuff[no]].src = omo[no].src;
		}else if (document.images){
			document.images[stuff[no]].src = omo[no].src;
		}
	} else {
		pic = stuff[no];
		document.getElementsByName(pic)[0].src = omo[no].src;
	}
}

function out(no,id){

	if((version == 4 && browser == "Netscape Navigator") || (version < 6 && browser == "Internet Explorer")){
		if (document.layers && id){
			document.layers[id].document.images[stuff[no]].src = nrm[no].src;
		} else if (document.images){
			document.images[stuff[no]].src = nrm[no].src;
		}
	} else {
		pic = stuff[no];
		document.getElementsByName(pic)[0].src = nrm[no].src;
	}
}		

function setFlag() { menu = "on"; }
function resetFlag() { menu = "off"; }

function subSelect(aktiv) {
	
	if(clicked != "empty" && aktiv != clicked) {
		if (menu == "off"){
			out(clicked,'');
		} else {
			out(clicked,'submenu');
		}
	}
	clicked = aktiv;
	setFlag();
	over(1,'');
}
function menuSelect (aktiv) {
	
	if(clicked != "empty" && aktiv != clicked) {
		if (menu == "on"){
			out(clicked,'submenu');
		} else {
			out(clicked,'');
		}
	}
	clicked = aktiv;
	resetFlag();
	hideLayer();
	out(1,'');
}

function menuOut (pic,layer) {
	if ((( pic != 1 ) && ( menu == "on" )) || ( menu == "off" )) { 
		if( pic != clicked ) {	
			if(layer) {
				out(pic,layer);
			} else {
				out(pic,'');
			}
		}
	}
}
function menuOver (pic,layer) {	
	if(layer) {
		over(pic,layer);
	} else {
		over(pic,'');
	}
}

function leftMenuOut (pic,layer) {
	
	if( pic != presel && pic != clicked) {	
		if(layer) {
			out(pic,layer);
		} else {
			alert("leftMenuOut() " + presel);
			out(pic,'');
		}
	}
}


function hideLayer(){
	 	
	if(menu != "on"){
		if(version == 4 && browser == "Netscape Navigator"){
 			document.submenu.visibility = "hide";
		} else if (version < 6 && browser == "Internet Explorer"){
			submenu.style.visibility = "hidden";
		} else {
			document.getElementById("submenu").style.visibility = "hidden";
		}
	}
}

function showLayer(){
	
	if(version == 4 && browser == "Netscape Navigator"){
 		document.submenu.visibility = "visible";
		document.submenu.pageX = 478;
		document.submenu.pageY = 0;
	} else if (version < 6 && browser == "Internet Explorer"){
		submenu.style.visibility = "visible";
	} else if (OS == "Mac" && browser == "Internet Explorer"){
		document.getElementById("submenu").style.top = 0;
		document.getElementById("submenu").style.left = 504;
		document.getElementById("submenu").style.visibility = "visible";
	} else if (version == 5 && browser == "Netscape Navigator"){
		document.getElementById("submenu").style.visibility = "visible";
		document.getElementById("submenu").style.top = 0;
	} else {
		document.getElementById("submenu").style.visibility = "visible";
	}
}
function goToLeft(URI_M,URI_C){
	document.location.href = URI_M +"_"+ URI_C +".htm";
	document.location.href = "leistungen"+ "_" +URI_M+ "_" +URI_C+ ".html";
}
function setFrames (){
	if(version > 4 && browser == "Internet Explorer"){
		top.document.getElementById("fs03").cols = "200,*";
	} else if(version > 4 && browser == "Netscape Navigator"){
		top.document.getElementById("fs03").cols = "200,*";
	} else if (version == 4 && browser == "Netscape Navigator"){
		top.document.getElementById("fs03").cols = "200,*";
	}
}
function goTo_Alt(URI_M,URI_C){
 
  parent.bottom.location.href = "bottom.html";
		switch(URI_M){
		case "marketing":
		case "incentives": 
		case "merchandising": 
		case "eventmodule":
		case "events": 
		case "outfits":
		case "locations":
  			parent.menu.location.href = "leistungen/" +URI_M+ "/menu_" +URI_M+ ".html";
  			parent.content.location.href = "leistungen/" +URI_M+ "/" +URI_C+ ".html";
			break;
		default:
  			parent.menu.location.href = URI_M +"/menu_"+ URI_M +".html";
  			parent.content.location.href = URI_M +"/"+ URI_C +".html";
			break;
		}
}


//040406pez geändert: ohne Frames
function goTo(URI_M,URI_C){
 
  //parent.bottom.location.href = "bottom.html";
		switch(URI_M){
		case "marketing":
		case "incentives": 
		case "merchandising": 
		case "eventmodule":
		case "events": 
		case "outfits":
		case "locations":
  			//parent.menu.location.href = "leistungen/" +URI_M+ "/menu_" +URI_M+ ".html";
  			//parent.content.location.href = "leistungen/" +URI_M+ "/" +URI_C+ ".html";
			document.location.href = "leistungen"+ "_" +URI_M+ "_" +URI_C+ ".htm";
			break;
		default:
  			//parent.menu.location.href = URI_M +"/menu_"+ URI_M +".html";
  			//parent.content.location.href = URI_M +"/"+ URI_C +".html";
			 document.location.href = URI_M +"_"+ URI_C +".htm";

			break;
		}
}

function MM_reloadPage(init) {  
  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);
//-->