//3D Moleküle
var loc = document.location.href;

if(loc.indexOf("/mol/") > -1 && loc.indexOf("chime.html") == -1) {
	var agent = navigator.userAgent.toLowerCase();   
	
	if(	!(agent.indexOf("msie") > -1 && agent.indexOf("opera") == -1) && // !IE
			!(agent.indexOf("firefox") > - 1) && //!FF
			!(agent.indexOf("netscape/7.2") > -1) // !NC7.2
	)	{
			self.location.href = "chime.html";
	}
}


var ausfuehren = true;

try {
	var temp = parent.location.href;
}
catch (e) {
	ausfuehren = false;
}

if(ausfuehren) {
	var loc = document.location.href;
	//while(loc.indexOf("&") > -1) { loc = loc.replace("&", "andampsemicolon"); }

	if(parent.frames.length!=0) 	{
		if (!(parent.frames["menu"] && parent.location.host.indexOf("www.chemie-master.de") !=-1)) {
			document.location.href = "http://www.chemie-master.de/FrameHandler.php?loc=" + loc;
		}
	}
	else {
		document.location.href = "http://www.chemie-master.de/FrameHandler.php?loc=" + loc;
	}
}


