function ZweiFrames(URI1,F1,URI2,F2) {
  Frame1=eval("parent."+F1);
  Frame2=eval("parent."+F2);
  Frame1.location.href = URI1;
  Frame2.location.href = URI2;
}
function ZweiFramesBack(F1,F2) {
  Frame1=eval("parent."+F1);
  Frame2=eval("parent."+F2);
  Frame1.history.back();
  if (!window.opera) window.setTimeout("Frame2.history.back()",10);
}
function ZweiFramesForward(F1,F2) {
  Frame1=eval("parent."+F1);
  Frame2=eval("parent."+F2);
  Frame1.history.forward();
  if (!window.opera) window.setTimeout("Frame2.history.forward()",10);
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImagesArray(array) {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<array.length; i+=2) {
			document[array[i]].src = array[i+1];
		}
	}
}

function changeImages() {
	changeImagesArray(changeImages.arguments);
}

function toggleImages() {
	for (var i=0; i<toggleImages.arguments.length; i+=2) {
		if (selected == toggleImages.arguments[i])      changeImagesArray(toggleImages.arguments[i+1]);
	}
}

var selected ='menue_top_05';
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		menue_top_05_over = newImage("menu_images/menue_top_05-over.gif");
		menue_top_06_over = newImage("menu_images/menue_top_06-over.gif");
		menue_top_07_over = newImage("menu_images/menue_top_07-over.gif");
		menue_top_08_over = newImage("menu_images/menue_top_08-over.gif");
		menue_top_09_over = newImage("menu_images/menue_top_09-over.gif");
		menue_top_10_over = newImage("menu_images/menue_top_10-over.gif");
		preloadFlag = true;
	}
}

function ShowState_selected() {
	changeImages('menue_top_01', 'menue_top_01', 'menue_top_02', 'menue_top_02', 'menue_top_03', 'menue_top_03', 'menue_top_04', 'menue_top_04', 'menue_top_05', 'menue_top_05', 'menue_top_06', 'menue_top_06', 'menue_top_07', 'menue_top_07_over', 'menue_top_08', 'menue_top_08', 'menue_top_09', 'menue_top_09', 'menue_top_10',
'menue_top_10', 'menue_top_11', 'menue_top_11');
}

function getLayerRef ( /* String */ id, 
                       /* optional HTML-Object */ document) {
  if (!document)
    document = window.document;

  if (document.layers) {
    for (var l = 0; l < document.layers.length; l++)
      if (document.layers[l].id == id)
        return document.layers[l];
    for (var l = 0; l < document.layers.length; l++) {
      var result = getLayerRef(id, document.layers[l].document);
      if (result)
        return result;
    }
    return null;
  } else if (document.all) {
    return document.all[id];
  } else if (document.getElementById) {
    return document.getElementById(id);
  }
}

function setVisibility( /* Layer */ objLayer, 
                        /* boolean */ visible ) {

  if(document.layers){
    objLayer.visibility  = 
        (visible == true) ? 'show' : 'hide';
  } else {
    objLayer.style.visibility = 
        (visible == true) ? 'visible' : 'hidden';
  }

}

function openwindow(theURL,winName,features) { //v2.0
 mywindow = window.open(theURL,winName,features);
 mywindow.focus();
}
