function enableActiveX (containerID)
// Use it, improve it
// by Dirk Alban Adler // KLITSCHE.DE
{
        // No IE = no need to enable
    if (getInternetExplorerVersion () != -1)
    {
        // Get container
        var container = document.getElementById (containerID);
        // Get html in noscript
        var html = container.innerHTML;
        // Write html back to container
        container.innerHTML = html;
    }
}
function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// Found at:
// http://msdn.microsoft.com/workshop/author/dhtml/overview/browserdetection.asp
{
    var rv = -1; // Return value assumes failure
    if (navigator.appName == 'Microsoft Internet Explorer')
    {
        var ua = navigator.userAgent;
        var re  = new RegExp ("MSIE ([0-9]{1,}[\.0-9]{0,})");
        if (re.exec (ua) != null)
        {
                rv = parseFloat (RegExp.$1);
        }
    }
    return rv;
}


function Flashanzeigen(datafm, widthfm, heightfm, qualityfm, bgcolorfm)
{
	document.write("<object type='application/x-shockwave-flash' data='" +datafm+ "' width='" +widthfm+ "' height='" +heightfm+ "'>");		
	document.write("<param name='movie' value='" +datafm+ "' />");
	document.write("<param name='quality' value='" +qualityfm+ "' />");
	document.write("<param name='bgcolor' value='" +bgcolorfm+ "' />");
	document.write("</object>");
}

//für Abfrage des Musik-Players
function musikAnAus(pStatus){
	top.musikspielt = pStatus;
	}
	
	
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


/*
//dies ist korrekt, wenn onload alle blocks unsichtbar sein sollen
function switchLayer(n) {
	var alle = (bodyspa, hairspa, facespa, exoticoriental
	var e = document.getElementById(n);
	if (e==null) return;
	if( e.style.display == "block" ) {
		e.style.display = "none";
	} else {
		e.style.display = "block";
	}
}
*/
//dies ist korrekt, wenn onload alle blocks unsichtbar sein sollen
function switchLayer(n) {
	var e = document.getElementById(n);
	if (e==null) return;
	if( e.style.display == "block" ) {
		document.getElementById('bodyspa').style.display = "none";
		document.getElementById('hairspa').style.display = "none";
		document.getElementById('facespa').style.display = "none";
		document.getElementById('exoticoriental').style.display = "none";		
	} else {
		document.getElementById('bodyspa').style.display = "none";
		document.getElementById('hairspa').style.display = "none";
		document.getElementById('facespa').style.display = "none";
		document.getElementById('exoticoriental').style.display = "none";		
		e.style.display = "block";
	}
}

 function checkFramecall() {
  var Adressanhang=location.search;
  if(Adressanhang)
  frames.main.location.href=Adressanhang.substring(1,Adressanhang.length);
 }


