
function hide(nodeid){
 document.getElementById(nodeid).style.display='none';
}


var lsf_rules = {
	/*	'#level2 a' : function(element){
			element.onmouseover = function(){
				//alert(element.getAttribute('rel'));
        navRoot = element;
sib = navRoot.nextSibling;
if(sib && sib.nodeName=='UL')
        {
            navRoot.nextSibling.style.display='block';
}
			  }

			element.onmouseout = function(){
				navRoot = element;
        sib = navRoot.nextSibling;
        if(sib && sib.nodeName=='UL')
        {
          navRoot.nextSibling.style.display='none';
        }

			  }

			}*/
	};

//Behaviour.register(lsf_rules);


startList = function() {
	if (document.all&&document.getElementById) {
  if(document.getElementById("level2"))
  {
		navRoot = document.getElementById("level2");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
  }
}
window.onload=startList;

function neuesFenster(url)
{
  window.open(url,'SchlossfestspieleLudwigsburg','width=788,height=500,left=100,top=200');
}


// URL permanter Warenkorb
var warenkorb_url = 'http://www.easyticketserviceapplet.de/jsp_lsfs/miniwarenkorb.jsp';

function getWarenkorb() {
  var xmlHttp = null;
  if(document.getElementById('spielplan_warenkorb'))
  {
    // Mozilla, Opera, Safari sowie Internet Explorer 7
    if (typeof XMLHttpRequest != 'undefined') {
        xmlHttp = new XMLHttpRequest();
    }
    if (!xmlHttp) {
        // Internet Explorer 6 und älter
        try {
            xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
            try {
                xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
            } catch(e) {
                xmlHttp  = null;
            }
        }
    }
    if (xmlHttp) {
        xmlHttp.open('GET', warenkorb_url, true);
        xmlHttp.onreadystatechange = function () {
            if (xmlHttp.readyState == 4) {

                  document.getElementById('spielplan_warenkorb').innerHTML = xmlHttp.responseText;
            }
        };
        xmlHttp.send(null);
    }
  }
}
