var lLocation = new String("www.sonnenhalde-ausserberg.ch")

function checkFrameset() {
	if(parent.work){
		return;
	}
	if ((top.location.href != "http://" + lLocation + "/") && (top.location.href != "http://" + lLocation) 
		&& (top.location.href != "http://" + lLocation + "/index.asp?lang=de") 
		&& (top.location.href != "http://" + lLocation + "/index.asp?lang=en") 
		&& (top.location.href != "http://" + lLocation + "/index.asp?lang=fr")
		&& (top.location.href != "http://" + lLocation + "/index.asp?")) {
		if ((top.location.href.lastIndexOf("http://" + lLocation + "/index.asp") == -1))
			top.location.href="http://" + lLocation + "/index.asp?" + document.location.href ;
	}
}

function checkFramecall() {
	if (location.search.substr(1,4) != "lang") {
		if (location.search) {
			params=unescape(location.search.substring(1,location.search.length)) ;
			if(params.indexOf( lLocation )!=-1)
				self.content.location.href=params
		}
	}
}

function divStart() {
    if (!parent.work) {
      document.write("<div id='divCont1'>") ;
      document.write("  <div id='divCont2'>") ;
    }
}

function divStartBuchen() {
    if (!parent.work) {
      document.write("<div id='divBuchen1'>") ;
      document.write("  <div id='divBuchen2'>") ;
    }
}

function divEnde() {
    if (!parent.work) {
      document.write("  </div>") ;	
      document.write("</div>") ;
    }
}