function navPath() {
	nStr = document.location.href;
	nStr = nStr.substr(nStr.indexOf(".at/")+4);
	nStr = nStr.split("/");
	nStr.pop();
	nPath = '';
	while(nStr.length>0){
		i = nStr.length-1;
		nPath = ' // <a href="/'+nStr.join("/")+'">'+nStr[i].substr(0,1).toUpperCase()+nStr[i].substr(1)+'</a>'+nPath;
		nStr.pop();
	}
	nPath = '<a href="/">Home</a>'+nPath;
	//nStr = nStr.join(" // ");
	document.write(nPath);
}
pageUrl = document.location.href;
pageArr = pageUrl.substr(pageUrl.indexOf("/de/"));
pageArr = pageArr.split("/");
/*rootPath = "";
for(i=0; i<pageArr.length; i++){
	rootPath += "../";
}*/
//alert(rootPath);
// create flash params
function swfParam(n,v){
	fOutput += "<PARAM NAME='"+n+"' VALUE='"+v+"'>";
}
// check vars
function isDefined(v){ 
	return this[v] === undefined ? false : true;
}
function vReset(){ 
	fid = false;
	fquality = false;
	fbg = false;
	fwmode = false;
	fVars = false;
	noscript = function(){};
}
// create flash object
function swf(ver){
	if(flashVersion>=ver){
		if(fid == false) fid = "";
		if(fquality == false) fquality = "HIGH";
		if(fbg == false) fbg = "#ffffff";
		if(fwmode == false) fwmode = "window";
		if(fVars == false) fVars = "";
	
		fOutput = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+fw+'" height="'+fh+'" name="'+fid+'" id="'+fid+'" align="">';
	
		swfParam('movie', fsrc);
		swfParam('quality', fquality);
		swfParam('bgcolor', fbg);
		swfParam('wmode', fwmode);
		swfParam('FlashVars', fVars);
		swfParam('allowFullscreen', 'true');
	
		fOutput += "<EMBED src='"+fsrc+"' width='"+fw+"' height='"+fh+"' wmode='"+fwmode+"' quality='"+fquality+"' allowFullscreen='true' FlashVars='"+fVars+"' bgcolor='"+fbg+"' name='"+fid+"' align='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";
	
		document.write(fOutput);
	}else{
		noscript();
	}
}
function swfHome(params){
	vReset();
	fsrc="swf/demo_start.swf";
	fw="100%";
	fh="700";
	fbg="#ffffff";
	//wmode="transparent";
	fid="headHome";
	swf(8);
}
function swfContent(params){
	vReset();
	fsrc="swf/demo_produktion.swf";
	fw="972";
	fh="700";
	fbg="#ffffff";
	fwmode="transparent";
	fid="headHome";
	swf(8);
}
function swfStart(param){
	vReset();
	fsrc=rootPath+"swf/start.swf?ver=4"+param;
	fw="100%";
	fh="375";
	fbg="#666666";
	fwmode="transparent";
	fid="flHead";
	fVars="&navTop="+escape(escape(navArr))+"&navSub="+escape(escape(navsubArr))+"&pageUrl="+pageUrl+"&vidSrc="+vidSrc+"&vidImg="+vidImg+"&ref="+refArr;
	swf(8);
}
function swfHead(img, h1){
	vReset();
	
	/*fPath = location.href;
	slash = fPath.indexOf("\\")>=0 ? "\\" : "/";
	fPath = fPath.split("de"+slash)[1].split(slash);
	fPathStr = '';
	for(i=0; i<fPath.length; i++){
		fPathStr += '../';
	}*/
	//alert(fPathStr);
	
	//alert(vidImg);
	vidImg = document.getElementById('head').innerHTML.split('src="')[1].split('"')[0];
	//noscript = document.getElementById('headNoscript').innerHTML;
	//noscript = function(){
		//document.getElementById('headNoscript').style.display = "block";
	//}
	//document.write("<style type=\"text/css\">\n<!--\n#headNoscript {display: block;}\n-->\n</style>");
	//alert(noscript);
	
	fsrc=rootPath+"swf/head.swf?ver=2&navTop="+escape(escape(navArr))+"&navSub="+escape(escape(navsubArr))+"&pageUrl="+pageUrl+"&vidSrc="+vidSrc+"&vidImg="+vidImg+"&refHead="+escape(escape(refArr))+"&homePath="+rootPath+"&navPath="+rootLang;
	fw="100%";
	fh="265";
	fbg="#666666";
	fwmode="transparent";
	fid="flHead";
	swf(8);
}
function showNoscript() {
	if(clearNoscriptDone != 1){
	//document.getElementById('fLogo').style.display = "none";
	//document.getElementById('logoNoscript').style.display = "block";
	
	document.getElementById('fHead').style.display = "none";
	document.getElementById('headNoscript').style.display = "block";
	
	document.getElementById('head').className = "bg";
	
	//document.getElementById('h1').innerHTML = "<strong>"+document.title.substr(document.title.lastIndexOf("|")+2)+"</strong>";
	clearNoscript();
	}
}
clearNoscriptDone = 0;
function clearNoscript(){
	clearNoscriptDone = 1;
	if(nsTime) clearTimeout(nsTime);
}
function swfLogo(){
	vReset();
	fsrc=rootPath+"swf/logo.swf?ver=1";
	fw="185";
	fh="70";
	fbg="#ffffff";
	fwmode="transparent";
	fid="flLogo";
	swf(6);
	if(flashVersion>=8){
		//nsTime = setTimeout("showNoscript()",5000);
	}else{
		//showNoscript();
	}
}
function swfH1(){
	vReset();
	fsrc="../../../swf/h1.swf?ver=1";
	fw="360";
	fh="30";
	//fbg="#666666";
	fwmode="transparent";
	fid="flH1";
	h1str = document.title.split(' | ');
	h1str = h1str[h1str.length-1];
	fVars = 'h1='+escape(escape(h1str));
	swf(8);
}
function swfHNews(v){
	vReset();
	fsrc="../../../swf/hnews.swf?ver=1";
	fw="200";
	fh="30";
	//fbg="#666666";
	fwmode="transparent";
	fid="flHNews";
	fVars = 'h1='+escape(escape(v));
	swf(8);
}
function swfLogos(){
	vReset();
	fsrc="../../../swf/logos.swf?ver=1";
	fw="235";
	fh="80";
	fbg="#ffffff";
	fwmode="transparent";
	fid="flLogos";
	swf(8);
}
function swfHistory(xmlfile){
	vReset();
	fsrc="../../../swf/history.swf?ver=1";
	fw="705";
	fh="170";
	fbg="#ffffff";
	fwmode="transparent";
	fid="flHistory";
	fVars = 'xmlfile='+xmlfile;
	swf(8);
}
function swfObj(src, w, h, bg, tr, id, params){
	vReset();
	fsrc=src;
	fw=w;
	fh=h;
	fbg=bg;
	fwmode=tr;
	fid=id;
	fVars='';
	fVars+='&'+params;
	//alert(fVars);
	swf(8);
}