<!--

button1= new Image();
button1.src = "/cms/mandant/mmdance/media/home.png";
button2= new Image();
button2.src = "/cms/mandant/mmdance/media/danceworld.png";
button3= new Image();
button3.src = "/cms/mandant/mmdance/media/tanzstufen.png";
button4= new Image();
button4.src = "/cms/mandant/mmdance/media/trendkurse.png";
button5= new Image();
button5.src = "/cms/mandant/mmdance/media/login.png";
button6= new Image();
button6.src = "/cms/mandant/mmdance/media/gutschein.png";
button7= new Image();
button7.src = "/cms/mandant/mmdance/media/extras.png";
button8= new Image();
button8.src = "/cms/mandant/mmdance/media/jobs.png";
button9= new Image();
button9.src = "/cms/mandant/mmdance/media/kontakt.png";

button11= new Image();
button11.src = "/cms/mandant/mmdance/media/homeOn.png";
button12= new Image();
button12.src = "/cms/mandant/mmdance/media/danceworldOn.png";
button13= new Image();
button13.src = "/cms/mandant/mmdance/media/tanzstufenOn.png";
button14= new Image();
button14.src = "/cms/mandant/mmdance/media/trendkurseOn.png";
button15= new Image();
button15.src = "/cms/mandant/mmdance/media/loginOn.png";
button16= new Image();
button16.src = "/cms/mandant/mmdance/media/gutscheinOn.png";
button17= new Image();
button17.src = "/cms/mandant/mmdance/media/extrasOn.png";
button18= new Image();
button18.src = "/cms/mandant/mmdance/media/jobsOn.png";
button19= new Image();
button19.src = "/cms/mandant/mmdance/media/kontaktOn.png";


function switchlayer(Layer_Name)
{
   document.getElementById(Layer_Name).style.display=(document.getElementById(Layer_Name).style.display=='block') ? 'none' : 'block';
}

function popupWindowCMS() 
{
	var popupWindowCMS=window.open("","popupCMS","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=940,height=600");
	popupWindowCMS.focus();
}

function news() 
{
	var news=window.open("","news","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=650,height=530");
	news.focus();
}

//Form
function checkForm()
{
	if(document.Eingabe.name.value == "")
	{
		alert("Bitte Namen angeben!");
		document.Eingabe.name.focus();
		return false;
	}
	if(document.Eingabe.vorname.value == "")
	{
		alert("Bitte Vornamen angeben!");
		document.Eingabe.vorname.focus();
		return false;
	}
	if(document.Eingabe.strasse.value == "")
	{
		alert("Bitte Strasse angeben!");
		document.Eingabe.strasse.focus();
		return false;
	}
	if(document.Eingabe.plz.value == "")
	{
		alert("Bitte PLZ angeben!");
		document.Eingabe.plz.focus();
		return false;
	}
	if(document.Eingabe.ort.value == "")
	{
		alert("Bitte Ort angeben!");
		document.Eingabe.ort.focus();
		return false;
	}
/*
	if(document.getElementsByName("AGB")[0].checked == true)
	{
		return true;
	}
	else
	{
		alert("Bitte akzeptieren Sie die AGB!");
		return false;
	}
*/
}

function anmeldung() 
{
	var anmeldung=window.open("","anmeldung","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=750,height=530");
	anmeldung.focus();
}

function popup() 
{
	var popup=window.open("","popup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=750,height=530");
	popup.focus();
}

(function(window, document, undefined){
    var XBTooltip = function( element, userConf, tooltip) {
      var config = {
        id: userConf.id|| undefined,
        className: userConf.className || undefined,
        x: userConf.x || 20,
        y: userConf.y || 20,
        text: userConf.text || undefined
      };
      var over = function(event) {
        tooltip.style.display = "block";
      },
      out = function(event) {
        tooltip.style.display = "none";
      },
      move = function(event) {
        event = event ? event : window.event;
        if ( event.pageX == null && event.clientX != null ) {
          var doc = document.documentElement, body = document.body;
          event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
          event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
        }
        tooltip.style.top = (event.pageY+config.y) + "px";
        tooltip.style.left = (event.pageX+config.x) + "px";
      }
      if (tooltip === undefined && config.id) {
        tooltip = document.getElementById(config.id);
        if (tooltip) tooltip = tooltip.parentNode.removeChild(tooltip)
      }
      if (tooltip === undefined && config.text) {
        tooltip = document.createElement("div");
        if (config.id) tooltip.id= config.id;
        tooltip.innerHTML = config.text;
      }
      if (config.className) tooltip.className = config.className;
      tooltip = document.body.appendChild(tooltip);
      tooltip.style.position = "absolute";
      element.onmouseover = over;
      element.onmouseout = out;
      element.onmousemove = move;
      over();
    };
    window.XBTooltip = window.XBT = XBTooltip;
  })(this, this.document);

-->
