<!--
//frameset nachladen in jede Einzelseite einbauen
//alert('location.href: ' + location.href) //komplette url
//alert('location.protocol: ' + location.protocol) //http bzw https
//alert('location.hash: ' + location.hash) //hash values
//alert('document.URL: ' + document.URL) //domainname
//alert('location.search: ' + location.search) // query nach ?
//alert('location.pathname: ' + location.pathname); //erstes vorkommen von / achtung bei https://sslsites.de/www.roor.de wird /www.roor.de ausgegeben
//refsite = unescape(document.referrer);
//alert("refsite: " + refsite);
 function checkFrameset() {
 	//alert('test');	
  if(!parent.mainFrame) {
	if(location.protocol=='https:') {
	 	//serverlocation = location.protocol + '//' + location.hostname + '/www.roor.de';
	 	serverlocation = 'http://' + 'www.roor.de';
	 	mothersite = "/frameset_roor_entry.php";
	 	//alert('mothersite1:' + mothersite);
	 	//mothersite = serverlocation + mothersite;
		locationlength = location.hostname.length;
	 	cutoff = locationlength+1;
	 	lostsite=location.pathname;
	 	//indexlast=lostsite.lastIndexOf("/");
		lostsite = lostsite.substring(lostsite.lastIndexOf("/"));
		//lostsite = lostsite.substring(cutoff,lostsite.length);
		//lostsite = 'http://www.roor.de' + lostsite;
	 	//lostsite = serverlocation + location.pathname;
	 	//frames.mainFrame.location = Adressanhang.substring(1,Adressanhang.lastIndexOf(","));
	 	escape(lostsite);
	}
 	else { 
	 	serverlocation = 'http://' + location.hostname;
	 	mothersite = "/frameset_roor_entry.php";
	 	//alert('mothersite1:' + mothersite);	 	
		lostsite=location.pathname;
		//lostsite = 'http://www.roor.de' + lostsite;
	 	//indexlast=lostsite.lastIndexOf("/");
	 	escape(lostsite);
	}
  	destination = serverlocation + mothersite + '?' + lostsite;
  		//alert('mothersite2:' + mothersite);
  		//alert('lostsite:' + lostsite);
  		//alert('destination:' + destination);
  		//alert('location.protocol: ' + location.protocol);
  		//alert('mothersite: ' + mothersite);
  		//alert('lostsite: ' + lostsite);
  		//alert('indexlast: ' + indexlast);
  		//alert('cutoff: ' + cutoff);
  	    //alert('destination: ' + destination);
 if(window.open) { 
 //generateWindow(destination + ",'ROOR'");
 window.open(destination + ",'ROOR'");
 }
 else {
 self.location = destination; }
  }
 }
//-->
