function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
var preloaded = false;
function preloadImages(lang) {
	if (document.images) {

		nv_1off= newImage("/images/nv_1_"+lang+"_lo.gif");
		nv_1on= newImage("/images/nv_1_"+lang+"_hi.gif");

		nv_2off= newImage("/images/nv_2_"+lang+"_lo.gif");
		nv_2on= newImage("/images/nv_2_"+lang+"_hi.gif");

		nv_3off= newImage("/images/nv_3_"+lang+"_lo.gif");
		nv_3on= newImage("/images/nv_3_"+lang+"_hi.gif");

		nv_4off= newImage("/images/nv_4_"+lang+"_lo.gif");
		nv_4on= newImage("/images/nv_4_"+lang+"_hi.gif");

		nv_5off= newImage("/images/nv_5_"+lang+"_lo.gif");
		nv_5on= newImage("/images/nv_5_"+lang+"_hi.gif");

		nv_6off= newImage("/images/nv_6_"+lang+"_lo.gif");
		nv_6on= newImage("/images/nv_6_"+lang+"_hi.gif");

		nv_7off= newImage("/images/nv_7_"+lang+"_lo.gif");
		nv_7on= newImage("/images/nv_7_"+lang+"_hi.gif");

		nv_8off= newImage("/images/nv_8_"+lang+"_lo.gif");
		nv_8on= newImage("/images/nv_8_"+lang+"_hi.gif");
		preloaded = true;
	}
}



function BrowserCheck() {
	var os= navigator.platform
	if (os.indexOf("Mac")!=-1) {
		this.os = "mac"
	} else {
		this.os = "pc"
	}
	var b = navigator.appName;
	if (b=="Netscape") this.b = "ns";
	else if (b=="Microsoft Internet Explorer") this.b = "ie";
	else this.b = b;
	this.v = parseInt(navigator.appVersion);
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0);
	this.ie = (navigator.userAgent.indexOf('MSIE')>0);
	this.safari = (navigator.userAgent.indexOf('Safari')>0);
	this.firefox = (navigator.userAgent.indexOf('Firefox')>0);
}
is = new BrowserCheck();

mY=0;mX=0;
function showNav(which,lang,l){

	myImg = eval('document.getElementById("' + which + '")');
	hiImg = '../../images/' + which + '_' + lang + '_hi.gif';
	myImg.src=hiImg;
	if ((is.os == "pc") && (is.ie4 || is.ie5)){
		theLayer = eval(which + '_Div.style');
		theLPos = eval(which + '_Div.offsetLeft');
	}else{
		theLayer = eval('document.getElementById("' + which + '_Div").style');
		theLPos = eval('document.getElementById("' + which + '").offsetLeft');
	}

	if(l==1){moveleft=19;}else{moveleft=9;}
	theLayer.left=(theLPos + moveleft) + "px";


	theLayer.visibility = "visible";
}

function showNavN(which,lang,l){
	if ((is.os == "pc") && (is.ie4 || is.ie5)){
		theLayer = eval(which + '_Div.style');
		theLPos = eval(which + '_Div.offsetLeft');
	}else{
		theLayer = eval('document.getElementById("' + which + '_Div").style');
		theLPos = eval('document.getElementById("' + which + '").offsetLeft');
	}
	if(l==1){moveleft=19;}else{moveleft=9;}
	theLayer.left=(theLPos + moveleft) + "px";
	theLayer.visibility = "visible";
}





function hideNav(which,lang){
myImg = eval('document.getElementById("' + which + '")');
loImg = '../../images/' + which + '_' + lang + '_lo.gif';
myImg.src=loImg;
	if (is.ie4 || is.ie5){
		theLayer = eval(which + '_Div.style');
	}else{
		theLayer = eval('document.getElementById("' + which + '_Div").style');
	}
	theLayer.visibility = "hidden";
}

function hideNavN(which,lang){
	if (is.ie4 || is.ie5){
		theLayer = eval(which + '_Div.style');
	}else{
		theLayer = eval('document.getElementById("' + which + '_Div").style');
	}
	theLayer.visibility = "hidden";
}







function showDlink(which){
	if (is.ie4 || is.ie5){
		theLayer = eval('dLink_'+which + '.style');
		theLPos = eval('dLink_'+which + '.offsetTop');
	}else{
		theLayer = eval('document.getElementById("dLinkNav_' + which + '").style');
		theLPos = eval('document.getElementById("dLink_' + which + '").offsetTop');
	}
	theLayer.visibility = "visible";

	theLayer.left=10 + "px";
	theLayer.top=theLPos + "px";

}

function hideDlink(which){
	if (is.ie4 || is.ie5){
		theLayer = eval('dLink_'+which + '.style');
	}else{
		theLayer = eval('document.getElementById("dLinkNav_' + which + '").style');
	}
	theLayer.visibility = "hidden";
}


function hiLite(which,lnk){
	theTab = eval('document.getElementById("' + which + '_tab")');
	theTab.className = "navtxt_hi";
	lnk.className = "navtxt_hi";
}

function loLite(which,lnk){
	theTab = eval('document.getElementById("' + which + '_tab")');
	theTab.className = "navtxt_lo";
	lnk.className = "navtxt_lo";
}






function open_camp(url,name,w,h) {
    //
	var fenster = window.open(url,name,"toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h);
	fenster.focus();
}

//	check for Flash 5 Plugin
	var FlashMode = 0;
	
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
		if (navigator.plugins && navigator.plugins["Shockwave Flash"] && (versionIndex = navigator.plugins["Shockwave Flash"].description.indexOf(".")) != - 1) {
			var versionString = navigator.plugins["Shockwave Flash"].description;
			var versionIndex = versionString.split(" ");
//			alert(versionIndex[2]);
			if ( versionIndex[2] >= 6 ) {
				FlashMode = 1;
			}
		}
	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
		document.write('<\/SCRIPT\> \n');
	}

function MakeFla(theTXT,theWidth,theCOLOR,backgroundColor) {
	if (!backgroundColor) { backgroundColor = '#E8E8E8' }
	theHeight = '50';

theCode = "<object type=\"application/x-shockwave-flash\" codebase=\"./\" width=\"" + theWidth + "\" height=\"50\" data=\"/images/headline.swf?textcontent=" + theTXT + "&textcolor=" + theCOLOR + "&textsize=24&textleading=0&textwidth=" + theWidth + "&textheight=56\"><param name=\"movie\" value=\"/images/headline.swf?textcontent=" + theTXT + "&textcolor=" + theCOLOR + "&textsize=24&textleading=0&textwidth=" + theWidth + "&textheight=56\" /><param name=\"wmode\" value=\"opaque\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"" + backgroundColor + "\" /><param name=\"allowScriptAccess\" value=\"sameDomain\" /></object>";

	return theCode;
}
function MakeSubFla(theTXT,theWidth,theCOLOR,backgroundColor) {
	if (!backgroundColor) { backgroundColor = '#ebebeb' }

theCode = "<object type=\"application/x-shockwave-flash\" codebase=\"./\" width=\"" + theWidth + "\" height=\"20\" data=\"/images/headline.swf?textcontent=" + theTXT + "&textcolor=" + theCOLOR + "&textsize=18&textleading=0&textwidth=" + theWidth + "&textheight=20\"><param name=\"movie\" value=\"/images/headline.swf?textcontent=" + theTXT + "&textcolor=" + theCOLOR + "&textsize=18&textleading=0&textwidth=" + theWidth + "&textheight=20\" /><param name=\"wmode\" value=\"opaque\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"" + backgroundColor + "\" /><param name=\"allowScriptAccess\" value=\"sameDomain\" /></object>";


	return theCode;
}
