function showSubNav(thisitem) {

	var divname = "Layer" + thisitem;
	var thediv = document.getElementById(divname);
	thediv.style.visibility = 'visible';
	}



function hideSubNav(thisitem) {

	var divname = "Layer" + thisitem;
	var thediv = document.getElementById(divname);
	thediv.style.visibility = 'hidden';
	}
	

function showSubNavClick(thisitem, div) {

	var divname = "Layer" + thisitem;
	var thediv = document.getElementById(divname);
		if (thediv.style.visibility == 'visible') {
		thediv.style.visibility = "hidden"
		document.getElementById(div).className='div_normal';
		}
		else {
		thediv.style.visibility = 'visible'
		document.getElementById(div).className='div_hover';
		}
}




function classNormal(thisitem) {

	document.getElementById(thisitem).className='div_normal';
	}


function classHover(thisitem) {

	document.getElementById(thisitem).className='div_hover';
	}



function MM_openBrWindow(theURL,winName,features) { //v2.0
var PopupTest = window.open(theURL,winName,features);

  if (!PopupTest) 
  {
    alert("Ihr Popup-Blocker ist zu scharf eingestellt, eine Anzeige ist nicht möglich.");
  }
  else 
  {
    // PopupTest.close();
    // alert("Vielen Dank ! Der Popup-Blocker ist nicht aktiv.");
  }
}



function go(url)
 {
  window.location = url
 }
  
function go_parent(url)
 {
  opener.location = url;
 }
 
function replace(url)
 {
  window.location.replace(url)
 }


 
 
var slideShowSpeed = 6000
var crossFadeDuration = 10
var t
var j = 1

function runSlideShow()
{
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}



function ToggleMenu(ID)
{
	
	if (document.getElementById( ID ).style.display == 'none')
	{
		document.getElementById( ID ).style.display = "";
	}
	else
	{
		document.getElementById( ID ).style.display = "none";
	}
}

function ToggleBox(ID)
{
	
	if (document.getElementById( ID + "Pic" ).alt == 'ausklappen')
	{
		document.getElementById( ID + "Pic" ).src = "images/einklappen.gif"
		document.getElementById( ID + "Pic" ).alt = "einklappen";
	}
	else
	{
		document.getElementById( ID + "Pic" ).src = "images/ausklappen.gif"
		document.getElementById( ID + "Pic" ).alt = "ausklappen";
	}
}


function Lesezeichen(Text,URL)
{

  if (window.sidebar)
    {
    // firefox
    window.sidebar.addPanel(Text,URL, "");
    }
  else if(window.opera && window.print)
    {
    // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',URL);
    elem.setAttribute('title',Text);
    elem.setAttribute('rel','sidebar');
    elem.click();
    }
  else if(document.all)
    {
    // ie
    window.external.AddFavorite(URL,Text);
    }
}

function Change_Anzahl() 
{
    var SelectLink = document.seminar.pa.selectedIndex;
    var Seminarpreis = 59.5;
    var Anzahl = document.seminar.pa.options[SelectLink].value;
    var Gesamtpreis = Seminarpreis * Anzahl;
	    document.getElementById('Gesamtpreis').firstChild.data = Gesamtpreis.toFixed(2);
}


function Change_Datensatz_Laden() 
{
    var SelectLink = document.form_laden.schluessel.selectedIndex;
    document.form_laden.submit();
}


