function clearsearch(cobj) {
cobj.value ="";
}

function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCR'+'IPT>\n'); if (result) return name+','; else return ''; }
function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }


function checkforFlash() {

var agt=navigator.userAgent.toLowerCase();
var ie  = (agt.indexOf("msie") != -1);
var ns  = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);

if (ie && win) {	pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime")  + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
if (ns || !win) {
		nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
		pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("application/pdf","Acrobat Reader");
}

if (pluginlist.indexOf("Flash")!=-1) {
	mobj=document.getElementById("fm-bannerFallback");
	mobj.style.display="none";
	mobj=document.getElementById("flashBanner");
	mobj.style.display="inline";
	}


}

function checkforFlashZwei() {

var agt=navigator.userAgent.toLowerCase();
var ie  = (agt.indexOf("msie") != -1);
var ns  = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);

if (ie && win) {	pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime")  + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
if (ns || !win) {
		nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
		pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("application/pdf","Acrobat Reader");
}

if (pluginlist.indexOf("Flash")!=-1) {
	mobj=document.getElementById("flashFallback");
	mobj.style.display="none";
	mobj=document.getElementById("flashContent");
	mobj.style.display="inline";
	}

}




function checkforFlashDrei() {

var agt=navigator.userAgent.toLowerCase();
var ie  = (agt.indexOf("msie") != -1);
var ns  = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);

if (ie && win) {	pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime")  + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
if (ns || !win) {
		nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
		pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("application/pdf","Acrobat Reader");
}

if (pluginlist.indexOf("Flash")!=-1) {
	mobj=document.getElementById("flashFallbackRight");
	mobj.style.display="none";
	mobj=document.getElementById("flashContentRight");
	mobj.style.display="inline";
	}

}


function displayflash() {

}


function bugavoid(cobj) {
displayflash();
mobj=document.getElementById("mark");
mobj.innerHTML = "";
nobj=document.getElementById("fm-ebeneEinsMenu");
nobj.style.zindex="100";
p=nobj.childNodes[1].childNodes[1].childNodes[1];
p.style.width="180px";
}


			

function myvis(cobj) {

}

function myhid(cobj) {

}

function showmy(cobj) {

}

function hidemy(cobj) {

}

function initialize() {

cnobj=document.getElementById("fm-NewsTeaserNews");
cnobj.style.visibility ="hidden";
maxHeight=cnobj.offsetHeight;

cnobj.style.visibility ="visible";
cnobj.style.display ="none";

ceobj=document.getElementById("fm-NewsTeaserEvents");

ceobj.style.visibility ="hidden";
ceobj.style.display ="block";
ceobj.style.visibility ="visible";

if (ceobj.offsetHeight>maxHeight) {
	maxHeight=ceobj.offsetHeight;
	}
ceobj.style.display ="none";


cwobj=document.getElementById("fm-NewsTeaserWebcasts");
cwobj.style.visibility ="hidden";
cwobj.style.display ="block";


if (cwobj.offsetHeight>maxHeight) {
	maxHeight=cwobj.offsetHeight;
	}
cwobj.style.display ="none";
cwobj.style.visibility ="visible";

document.maxHeight= ""+maxHeight+"px";

activateNews(this);
eobj=document.getElementById("fm-events");
wobj=document.getElementById("fm-webcasts");
eobj.style.display ="inline";
wobj.style.display ="inline";
}


function overNews(cobj) {
eobj=document.getElementById("fm-events");
wobj=document.getElementById("fm-webcasts");
cobj.style.background ="#ececec";
cobj.style.color ="#616365";
if (document.e!=1) {
	eobj.style.background ='url("../images/trsp-7.png")';
}
if (document.w!=1) {
	wobj.style.background ='url("../images/trsp-7.png")';
}
} 

function activateNews(cobj) {
eobj=document.getElementById("fm-events");
eobj.style.background ='url("../images/trsp-7.png")';
wobj=document.getElementById("fm-webcasts");
wobj.style.background ='url("../images/trsp-7.png")';
document.n=1;
document.e=0;
document.w=0;

cnobj=document.getElementById("fm-NewsTeaserNews");
cnobj.style.display ="block";
cnobj.style.height=document.maxHeight;

cnobj=document.getElementById("fm-NewsTeaserEvents");
cnobj.style.display ="none";

cnobj=document.getElementById("fm-NewsTeaserWebcasts");
cnobj.style.display ="none";

nobj=document.getElementById("fm-news");
nobj.style.background ="#616365";
nobj.style.color ="white";

} 

function outNews(cobj) {
if (document.n!=1) {
	cobj.style.background ='url("../images/trsp-7.png")';
	
} else {
	cobj.style.background = "#616365";
}
cobj.style.color ="white";
} 



function overEvent(cobj) {
nobj=document.getElementById("fm-news");
wobj=document.getElementById("fm-webcasts");

cobj.style.background ="#ececec";
cobj.style.color ="#616365";
if (document.n!=1) {
	nobj.style.background ='url("../images/trsp-7.png")';
}
if (document.w!=1) {
	wobj.style.background ='url("../images/trsp-7.png")';
}
} 

function activateEvent(cobj) {
document.n=0;
document.e=1;
document.w=0;
nobj=document.getElementById("fm-news");
nobj.style.background ='url("../images/trsp-7.png")';
wobj=document.getElementById("fm-webcasts");
wobj.style.background ='url("../images/trsp-7.png")';


cnobj=document.getElementById("fm-NewsTeaserNews");
cnobj.style.display ="none";

cnobj=document.getElementById("fm-NewsTeaserEvents");
cnobj.style.display ="block";
cnobj.style.height=document.maxHeight;

cnobj=document.getElementById("fm-NewsTeaserWebcasts");
cnobj.style.display ="none";

eobj=document.getElementById("fm-events");
eobj.style.background ="#616365";
eobj.style.color ="white";
} 

function outEvent(cobj) {
if (document.e!=1) {
	cobj.style.background ='url("../images/trsp-7.png")';
}  else {
	cobj.style.background = "#616365";
}
cobj.style.color ="white";
}

function overWebcast(cobj) {
nobj=document.getElementById("fm-news");
eobj=document.getElementById("fm-events");
cobj.style.background ="#ececec";
cobj.style.color ="#616365";
if (document.n!=1) {
	nobj.style.background ='url("../images/trsp-7.png")';
}
if (document.e!=1) {
	eobj.style.background ='url("../images/trsp-7.png")';
}
} 

function activateWebcast(cobj) {
document.n=0;
document.e=0;
document.w=1;
nobj=document.getElementById("fm-news");
nobj.style.background ='url("../images/trsp-7.png")';
eobj=document.getElementById("fm-events");
eobj.style.background ='url("../images/trsp-7.png")';

cnobj=document.getElementById("fm-NewsTeaserNews");
cnobj.style.display ="none";

cnobj=document.getElementById("fm-NewsTeaserEvents");
cnobj.style.display ="none";

cnobj=document.getElementById("fm-NewsTeaserWebcasts");
cnobj.style.display ="block";
cnobj.style.height=document.maxHeight;

wobj=document.getElementById("fm-webcasts");
wobj.style.background ="#616365";
wobj.style.color ="white";

} 

function outWebcast(cobj) {
if (document.w!=1) {
	cobj.style.background ='url("../images/trsp-7.png")';
}  else {
	cobj.style.background = "#616365";
}
cobj.style.color ="white";
}
