// =================
// Pulldown & Pullup
// =================

function pulldown(bereich, eng) {
   document.getElementById("button_" + bereich).src="fileadmin/template/images/button_" + bereich + "" + eng + "_over.gif";
   eval("document.getElementById('pulldown_" + bereich + "').style.visibility='visible'");
   eval("document.getElementById('pulldown_" + bereich + "_content').style.visibility='visible'");
}

function pullup(bereich, eng) {
   document.getElementById("button_" + bereich).src="fileadmin/template/images/button_" + bereich + "" + eng + ".gif";
   eval("document.getElementById('pulldown_" + bereich + "').style.visibility='hidden'");
   eval("document.getElementById('pulldown_" + bereich + "_content').style.visibility='hidden'");
}


// =======================
// Flash Version Detection
// =======================

var flashVersionDetail = deconcept.SWFObjectUtil.getPlayerVersion();
var flashVersion = flashVersionDetail['major'];


// ======
// BANNER
// ======

function banner(language) {

	var akt_datum = new Date();
	if (akt_datum.getTime() % 2) { 
		if (language == 1) { agof_flash_eng(); }
		else { agof_flash(); }
	} else { 
		if (language == 1) { webxf_flash_eng(); }
		else { webxf_flash(); }
	}
	
}

function agof_flash() {

    if (flashVersion > 5) {
        document.write('<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=365 HEIGHT=83 id=agof_flash border=0 style="cursor:pointer; position:absolute; left:525px; top:1px;">\n');
        document.write('  <PARAM NAME=movie VALUE=fileadmin/template/agof_flash/agof_flash.swf>\n');
        document.write('  <PARAM NAME=quality VALUE=high>\n');
        document.write('  <PARAM NAME=bgcolor VALUE=#FFFFFF>\n');
        document.write('  <EMBED src=fileadmin/template/agof_flash/agof_flash.swf quality=high bgcolor=#FFFFFF  WIDTH=365 HEIGHT=83 BORDER=0 NAME=agof_flash style="cursor:pointer;" TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED>\n');
        document.write('</OBJECT>');
     } else {
        document.write('<a href="http://www.interrogare.de/cms/index.php?id=52&tx_ttnews[tt_news]=20&tx_ttnews[backPid]=1&cHash=ac5f10ab30"><img src="fileadmin/template/agof_flash/agof.jpg" border="0" style="position:absolute; left:525px; top:0px;"></a>');
     }
}

function agof_flash_eng() {

    if (flashVersion > 5) {
        document.write('<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=365 HEIGHT=83 id=agof_flash border=0 style="cursor:pointer; position:absolute; left:525px; top:1px;">\n');
        document.write('  <PARAM NAME=movie VALUE=fileadmin/template/agof_flash/agof_flash_eng.swf>\n');
        document.write('  <PARAM NAME=quality VALUE=high>\n');
        document.write('  <PARAM NAME=bgcolor VALUE=#FFFFFF>\n');
        document.write('  <EMBED src=fileadmin/template/agof_flash/agof_flash_eng.swf quality=high bgcolor=#FFFFFF  WIDTH=365 HEIGHT=83 BORDER=0 NAME=agof_flash style="cursor:pointer;" TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED>\n');
        document.write('</OBJECT>');
     } else {
        document.write('<a href="http://www.interrogare.de/cms/index.php?id=52&L=1&tx_ttnews[tt_news]=31&tx_ttnews[backPid]=1&cHash=f735d08e52"><img src="fileadmin/template/agof_flash/agof_eng.jpg" border="0" style="position:absolute; left:525px; top:0px;"></a>');
     }
}

function webxf_flash() {

    if (flashVersion > 5) {
        document.write('<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=365 HEIGHT=83 id=agof_flash border=0 style="cursor:pointer; position:absolute; left:525px; top:1px;">\n');
        document.write('  <PARAM NAME=movie VALUE=fileadmin/template/webxf_flash/webxf_flash.swf>\n');
        document.write('  <PARAM NAME=quality VALUE=high>\n');
        document.write('  <PARAM NAME=bgcolor VALUE=#FFFFFF>\n');
        document.write('  <EMBED src=fileadmin/template/webxf_flash/webxf_flash.swf quality=high bgcolor=#FFFFFF  WIDTH=365 HEIGHT=83 BORDER=0 NAME=agof_flash style="cursor:pointer;" TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED>\n');
        document.write('</OBJECT>');
     } else {
        document.write('<a href="http://www.interrogare.de/cms/index.php?id=52&tx_ttnews[tt_news]=21&tx_ttnews[backPid]=1&cHash=de978cfc35"><img src="fileadmin/template/webxf_flash/webxf.jpg" border="0" style="position:absolute; left:525px; top:0px;"></a>');
     }
}

function webxf_flash_eng() {

    if (flashVersion > 5) {
        document.write('<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=365 HEIGHT=83 id=agof_flash border=0 style="cursor:pointer; position:absolute; left:525px; top:1px;">\n');
        document.write('  <PARAM NAME=movie VALUE=fileadmin/template/webxf_flash/webxf_flash_eng.swf>\n');
        document.write('  <PARAM NAME=quality VALUE=high>\n');
        document.write('  <PARAM NAME=bgcolor VALUE=#FFFFFF>\n');
        document.write('  <EMBED src=fileadmin/template/webxf_flash/webxf_flash_eng.swf quality=high bgcolor=#FFFFFF  WIDTH=365 HEIGHT=83 BORDER=0 NAME=agof_flash style="cursor:pointer;" TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED>\n');
        document.write('</OBJECT>');
     } else {
        document.write('<a href="http://www.interrogare.de/cms/index.php?id=52&L=1&tx_ttnews[tt_news]=32&tx_ttnews[backPid]=1&cHash=b1d49ca9ab"><img src="fileadmin/template/webxf_flash/webxf_eng.jpg" border="0" style="position:absolute; left:525px; top:0px;"></a>');
     }
}

// ============
// Kunden Flash
// ============

function kunden_flash(flashkunden) {
        document.write('<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=160 HEIGHT=52 id=kunden>\n');
        document.write('        <PARAM NAME=movie VALUE=fileadmin/template/kunden.swf>\n');
        document.write('        <PARAM NAME=quality VALUE=high>\n');
        document.write('        <PARAM NAME=FlashVars VALUE=' + flashkunden + '>\n');
        document.write('        <PARAM NAME=bgcolor VALUE=#CCCCCC>\n');
        document.write('        <EMBED src=fileadmin/template/kunden.swf FlashVars=' + flashkunden + ' quality=high bgcolor=#CCCCCC  WIDTH=160 HEIGHT=52 NAME=kunden TYPE=application/x-shockwave-flash XMLX= PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED>\n');
        document.write('</OBJECT>\n'); 
}

