//CLIENT-side version
//
//server-side version over SERVER_NAME not implemented, reason see email conversation with captain meso
//2004-06-03
//
try{
var i=parent.document.URL.indexOf('?page');
if(i<0){

	var sDestination = "";
	var sTLD = window.location.host.toUpperCase();
	var i=sTLD.indexOf("WWW.");
	if(i>=0)//www. exists! Subdomains are not expected and not implemented!
		sTLD = sTLD.substring(i+4);

	switch(sTLD){
	case "DR-KINAST.COM":
		sDestination = "default.aspx?page=Dr.%20med.%20Christian%20Kinast";
		break;
	case "ENDOPROTHESE.DE":
	case "HUEFTE.DE":
		sDestination = "default.aspx?page=Hüftchirurgie";
		break;
	case "FUSSKLINIK.DE":
	case "FUSSSCHMERZ.DE":
		sDestination = "default.aspx?page=Fusschirurgie";
		break;
	case "HALLUX.DE":
		sDestination = "default.aspx?page=Fusschirurgie&amp;block=HALLUX%20RIGIDUS&amp;toolbar=subtable04";
		break;
	case "KNIESCHMERZ.DE":
		sDestination = "default.aspx?page=Kniegelenkchirurgie";
		break;
	case "SCHULTERSCHMERZ.DE":
		sDestination = "default.aspx?page=Schulter-Ellenbogen-Chirurgie";
		break;

	default:
		// sDestination already set
		break;
	}//endSWITCH

if(sDestination !="")		
	//window.location= "http://www."+sTLD+"/"+sDestination;				// this code uses the alias TLD
	window.location= "http://www.orthopaediepraxen.de/"+sDestination; 	// this code re-writes URL

else;
}//endOuterIF


}catch(e){
//NOP
}
