<!--
function setElement(eID,ifStyle,funct,wert){
	if (document.getElementById){
		if (ifStyle == 1){
			var newElement = document.getElementById(eID).style;
		}
		else {
			var newElement = document.getElementById(eID);
		}
		newElement[funct] = wert;
	}
}

//check for flash
var flashversionMin = 9;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
	for (f = 0; f < 20; f++) {
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if (plugin.description.indexOf(f+".")>=0){
			flashversion = f;
			
			if (flashversion >= flashversionMin){
				plugin = true;
				break;
			}
		}
	}
}
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('<SC'+'RIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashversionMin+'")))\n');
	document.write('</SC'+'RIPT\> \n'); 
}

function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl,wLName) {
	fsource='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	fsource+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
	fsource+=' ID='+id+' WIDTH="'+width+'"; HEIGHT="'+height+'">';
	fsource+=' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" /> <PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="'+vars+'"> <PARAM NAME=menu VALUE=false>  <PARAM NAME="BASE" VALUE='+baseurl+'> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode value='+wmode+'> <PARAM NAME=bgcolor VALUE='+bgcolor+'>';
		if(navigator.userAgent.indexOf("Opera")==-1) {
			fsource+=' <EMBED src="'+file+'" FlashVars="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect="true" allowScriptAccess="sameDomain" NAME='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
		else	{
			fsource+=' <EMBED src="'+file+'" FlashVars="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect="true" allowScriptAccess="sameDomain" ID='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
	fsource+=' </OBJECT>';

	if (document.getElementById){
		document.getElementById(wLName).innerHTML=fsource;
	}
}

function sVideo(file) {
	playSWF("fileadmin/template/main/image/flash/player.swf","flashVideo","videoFile="+file+"&autoplay=true","509px","382px","opaque","#ffffff","fileadmin/template/main/image/flash","flashVideo");
}

function CheckFile(fid,fsrc,fwidth,fheight){
	if (fsrc.indexOf(".swf")>=0){
		playSWF(fsrc,fid,"",fwidth,fheight,"opaque","#fff","",fid)
	}
	else {
		SetLayer3(fid,'innerHTML','<image src="'+fsrc+'" />');
	}
}

function printthispage(){ 
	var sOption="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=640,height=600,left=100,top=25"; 

	var sWinHTML = document.getElementById('content_text_inner').innerHTML;
	var strBereich = document.title;
    var strBody = document.body.className;
	
	var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><title>' + document.title + '</title><link rel="stylesheet" href="fileadmin/template/main/style/tia_print.css" type="text/css"><body class="'+strBody+'" onload="window.print();">'); 
       winprint.document.write('<div style="position: relative;"><img src="fileadmin/template/main/image/print_head.png" width="608" height="100" border="0"></div>');
       // winprint.document.write('<div id="infoDiv" style="position: absolute; left: 25px; top: 110px; width: 340px; height: 30px; z-index: 2; text-align: left;"><span style="font-size: 15px; color: #000; font-family: arial; text-decoration: none;"><strong>' + strBereich + '</strong></span></div></div>');
       winprint.document.write('<div id="content_left">');
       winprint.document.write('<div id="printable">'+sWinHTML+'</div>');
       winprint.document.write('</div></body></html>');
       winprint.document.close(); 
       winprint.focus(); 
}

var newsIDold = "";
function openNews(newsID){
	
	if (newsIDold!=""){
		SetLayer(newsIDold+"_detail","display","none");
		SetLayer(newsIDold+"_list","display","block");
	}
	
	SetLayer(newsID+"_list","display","none");
	SetLayer(newsID+"_detail","display","block");
	newsIDold = newsID;
	SetLayer("face1list","display","block");
	SetLayer("face1detail","display","none");
}

function openNewsStart(newsID){
	SetLayer("face1list","display","none");
	SetLayer("face1detail","display","block");
	if (newsIDold!=""){
		SetLayer(newsIDold+"_detail","display","none");
		SetLayer(newsIDold+"_list","display","block");
	}
	newsIDold = newsID;
}

var linksIDold = "";

function openLinks(linksID){
	if (linksIDold!=""){
		SetLayer(linksIDold+"_detail","display","none");
	}
	SetLayer(linksID+"_detail","display","block");
	linksIDold = linksID;
}

function closeNews(newsID){
	SetLayer(newsID+"_list","display","block");
	SetLayer(newsID+"_detail","display","none");
	newsIDold = "";
}



function closeNewsStart(newsID){
	SetLayer("face1list","display","block");
	SetLayer("face1detail","display","none");
	newsIDold = "";
}

function SetLayer(LName,funct,wert) {
	if (document.getElementById){
		var newLayer = document.getElementById(LName).style;
		newLayer[funct]=wert;
	}
}

var m_visible = true;
var move_px = 10;
var start = -10;
var end = -140;
var move;

function menu(){
	if (m_visible){
		firstTime = 1;
		setElement('hmenu',1,'backgroundImage','url(fileadmin/template/main/image/bg_navigation_zu.png)');	
		setElement('logo',1,'backgroundImage','url(fileadmin/template/main/image/logo_triumph_navigation_zu.png)');
		move_px = -10;
		start = -10;
		end = -140;
	}
	else {
		firstTime = 0;
		setElement('hmenu',1,'backgroundImage','url(fileadmin/template/main/image/bg_navigation_auf.png)');	
		setElement('logo',1,'backgroundImage','url(fileadmin/template/main/image/logo_triumph_navigation_auf.png)');
		move_px = 10;
		start = -140;
		end = -10;
	}
	
	m_visible = !m_visible;
	move = setInterval("moveMenu()",10);
}

function moveMenu(){
	if ((move_px<0) && (start<end) || (move_px>0) && (start>end)){
		clearInterval(move);
	} else {
		start = start + move_px;
		document.getElementById("menu_co").style.left = start + "px";
	}
}


setT = "";
firstTime = 1;
firstTime2 = 1;
function sTimeout() {
	if (firstTime==0){
		setT = setTimeout("menu()",1000);
	}
}
function eTimeout(){
	if (setT!=""){
		clearTimeout(setT);
		if (firstTime2 == 1){
			firstTime = 0;
			firstTime2 = 0;
		}
	}
}

window.onload=function() {
	//setT = setTimeout("menu()",1000);
}

/* cwederka */

function chooseCountry() {
	var cousel = document.getElementById('countrySelection');
	cousel.style.display = "block";
	/* cousel.onmouseout = function() { hideCountrys(); }; */
	
}

function hideCountrys() {
	document.getElementById('countrySelection').style.display = "none";		
}
//-->