
/*----------  Suckerfish Anfang ----  http://www.htmldog.com/articles/suckerfish/dropdowns/example/#  -----*/
/* 
" sfHover=function()" 
ist nicht nötig wenn HTM-Datei mit 
" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> " 
startet.
*/

<!--//--><![CDATA[//><!--



sfHover = function() {
	var sfEls = document.getElementById("sfnav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>

/*----------  Suckerfish Ende ----  http://www.htmldog.com/articles/suckerfish/dropdowns/example/#  -----*/



function FjsTestURL()
{
//	alert(parent.IDName);
// alert(window.location.hostname);
// alert(window.parent.location.pathname+' , '+document.URL);
	var Paras = document.URL.split("/");		// Dateiname ermitteln
	var WDatei = Paras[Paras.length-1].split("?");
	var ParentParam=window.parent.location.pathname.split("/");
// alert(ParentParam.length+' : '+ParentParam[ParentParam.length-1] + ' , ' +Paras[Paras.length-1]);
	Pfad=Paras[0];
	for (i=1; i<(Paras.length-1); i++) {Pfad = Pfad+'/'+Paras[i];/*  alert(i+' , '+Pfad); */ } 
	if (( window.location.hostname != "localhost" ) &&
		( window.location.hostname != "dennert-tanne.harz-kompakt.de" ) &&
		( window.location.hostname != "www.dennert-tanne.de" ) 
		)
			{ window.parent.location.href = "http://www.dennert-tanne.de/"; /*+WDatei[0]; */}
	else
	{
	if (( window.location.hostname == "dennert-tanne.harz-kompakt.de" ) ||
		( window.location.hostname == "www.dennert-tanne.de" ) 
		)
		{ 
			if (ParentParam.length>2)  {window.parent.location.href="http://www.dennert-tanne.de"; }
			if ((ParentParam.length==2) && (ParentParam[ParentParam.length-1] == Paras[Paras.length-1]) ) {window.parent.location.href="http://www.dennert-tanne.de"; }
		}
	if (( window.location.hostname == "localhost" ))
		{ if (ParentParam.length>4) {window.parent.location.href=Pfad; }}
	}

}

//-----------------------------------

FjsTestURL();

