
if (document.images) {

historie_off = new Image(); historie_off.src="imagepool/nav_historie_off.gif";
historie_on = new Image(); historie_on.src="imagepool/nav_historie_on.gif";
info_off = new Image(); info_off.src="imagepool/nav_info_off.gif";
info_on = new Image(); info_on.src="imagepool/nav_info_on.gif";
bausteine_off = new Image(); bausteine_off.src="imagepool/nav_bausteine_off.gif";
bausteine_on = new Image(); bausteine_on.src="imagepool/nav_bausteine_on.gif";

historie1_off = new Image(); historie1_off.src="../imagepool/nav_historie_off.gif";
historie1_on = new Image(); historie1_on.src="../imagepool/nav_historie_on.gif";
info1_off = new Image(); info1_off.src="../imagepool/nav_info_off.gif";
info1_on = new Image(); info1_on.src="../imagepool/nav_info_on.gif";
bausteine1_off = new Image(); bausteine1_off.src="../imagepool/nav_bausteine_off.gif";
bausteine1_on = new Image(); bausteine1_on.src="../imagepool/nav_bausteine_on.gif";
service_off = new Image(); service_off.src="../imagepool/2ndpage/navi/2nd_nav_log_services_off.gif";
service_on = new Image(); service_on.src="../imagepool/2ndpage/navi/2nd_nav_log_services_on.gif";
system_off = new Image(); system_off.src="../imagepool/2ndpage/navi/2nd_nav_log_system_off.gif";
system_on = new Image(); system_on.src="../imagepool/2ndpage/navi/2nd_nav_log_system_on.gif";
security_off = new Image(); security_off.src="../imagepool/2ndpage/navi/2nd_nav_log_securityser_off.gif";
security_on = new Image(); security_on.src="../imagepool/2ndpage/navi/2nd_nav_log_securityser_on.gif";




kontakt_off = new Image(); kontakt_off.src="../imagepool/2ndpage/navi/2nd_nav_info_kontakt_off.gif";
kontakt_on = new Image(); kontakt_on.src="../imagepool/2ndpage/navi/2nd_nav_info_kontakt_on.gif";
news_off = new Image(); news_off.src="../imagepool/2ndpage/navi/2nd_nav_info_news_off.gif";
news_on = new Image(); news_on.src="../imagepool/2ndpage/navi/2nd_nav_info_news_on.gif";
bibliothek_off = new Image(); bibliothek_off.src="../imagepool/2ndpage/navi/2nd_nav_info_bibliothek_off.gif";
bibliothek_on = new Image(); bibliothek_on.src="../imagepool/2ndpage/navi/2nd_nav_info_bibliothek_on.gif";

kontra = new Image(); kontra.src="../imagepool/2ndpage/blocks/blocks_historie_kontra_logo.gif";
rieck = new Image(); rieck.src="../imagepool/2ndpage/blocks/blocks_historie_rieck_logo.gif";
blank = new Image(); blank.src="../imagepool/2ndpage/blocks/blocks_historie_blank_logo.gif";
}

function activ(imgName) {
       if (document.images)
        {
        document[imgName].src = eval(imgName + "_on.src");
        }}
function go(imgName) {
       if (document.images)
        {
        document["block"].src = eval(imgName + ".src");
        }}
////////////////////////////////////

function off(imgName) {
        if (document.images) {
        document[imgName].src = eval(imgName + "_off.src");
        }}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function a(txt) {self.status = txt}
function b() {self.status = ""}


//Flash PlugIn vohanden?		
var mode = 0;
function checkPlugIn(i_name,i_version) {
	if (i_name=='flash') {
		if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
			if (navigator.plugins && navigator.plugins["Shockwave Flash"])// && !(ie4 && mac))
			mode = 1;
		}
		else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
		   	&& (navigator.userAgent.indexOf("Windows 9")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
			document.write('<SCRIPT LANGUAGE=VBScript\> \n');
			document.write('on error resume next \n');
			document.write('mode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
			document.write('</SCRIPT\> \n');
		}
		return mode;
	} 
}

/*
Funktion insertObject()
Leistung:	Fuegt ein Objekt ein, z.B. ActiveX-Control
Parameter:	i_plugin	fuer die Darstellung des Objektes erforderliches PlugIn
			i_path		relativer Pfad zum Objekt bzw. zum Fallback (WICHTIG: Angabe ohne file extension)
			i_name		Name des Objektes
			i_width		Breite des Objektes
			i_height	Hoehe des Objektes
			i_bgcolor	Hintergrundfarbe als Hex-Zahl
FALLBACK: gleicher dateiname wie normale datei
*/
function insertObject(i_plugin, i_path, i_name, i_width, i_height, i_bgcolor) {
	// FLASH
	if(i_plugin=='flash') {
		if (checkPlugIn(i_plugin)){
			document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0"');
			document.write(' ID="' + i_name + '" WIDTH="' + i_width + '" HEIGHT="' + i_height + '">');
			document.write(' <PARAM NAME=movie VALUE="' + i_path + '.swf"> ');
			document.write(' <PARAM NAME=quality VALUE=autohigh> ');
			document.write(' <PARAM NAME=menu VALUE=false> ');
			document.write(' <PARAM NAME=bgcolor VALUE=#' + i_bgcolor + '> ');
			document.write('<EMBED SRC="' + i_path + '.swf"');
			document.write(' NAME=' + i_name + ' swLiveConnect="TRUE" WIDTH="' + i_width + '" HEIGHT="' + i_height + '"');
			document.write(' QUALITY="autohigh" MENU="false" BGCOLOR="#' + i_bgcolor + '"');
			document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
			document.write('</EMBED>');
			document.write('</OBJECT>');
		}
		else {
			document.write('<img src="' + i_path + '.gif" width="' + i_width + '" height="' + i_height + '" border="0">')
		}
	}
} 

