//by using favorites we have to reload with frameset
var locat=self.location.href;

// comment: d.dao 20.09.2002
var server_url = null;
var split_http = new Array();
if(locat.indexOf("/d/") != -1) split_http = locat.split("/d/");
else if (locat.indexOf("/e/") != -1 ) split_http = locat.split("/e/");
else if (locat.indexOf("/Templates/") != -1 ) split_http = locat.split("/Templates/"); //features template topic
else if (locat.indexOf("/newstool/") != -1 ) split_http = locat.split("/newstool/");
else if (locat.indexOf("/test/") != -1 ) split_http = locat.split("/test/"); //features test topic
else server_url = "http://www.bmwgroup.com"; 
server_url = split_http[0];
// end of comment

var split_param=new Array();
split_param=locat.split("?");

if (top.location.href == self.location.href) {
	if(locat.indexOf( "/newstool/" ) != -1 && locat.indexOf( ".jsp" ) != -1 ){
	//Sicherstellen der Paramerter&uuml;bergabe im Newstool k.Gregor 4.9.2002
	if(split_param[1]){
			window.location.href = server_url+"/"+site_lng+"/nav/index.html?"+split_param[0]+"?"+nav_pos+"?&"+split_param[split_param.length -1];
		}else{
			window.location.href = server_url+"/"+site_lng+"/nav/index.html?"+split_param[0]+"?"+nav_pos;
		}
	}else{	  
			window.location.href = server_url+"/"+site_lng+"/nav/index.html?"+self.location.href;
	}

} else {
   /* no style check since Relaunch 24.03.2004
	if (site_style == "main"){
		top.check_style("main");
	} else {
		top.check_style("new");
	}
	*/
}

var dotTrans = /*VIPURL*/"/bmwgroup_prod/common/images/dot_trans.gif";

if((location.href.indexOf("/finanzberichte/geschaeftsberichte/")!=-1 || location.href.indexOf("/sustainable_value_report_")!=-1) && location.href.indexOf(".shtml")!=-1) {
    document.write('<div id="layerIframeLevel2" style="position:absolute;left:0px;top:0px;visibility:hidden;z-index:1;"><\/div>');
    document.write('<div id="layerIframeLevel3" style="position:absolute;left:0px;top:0px;visibility:hidden;z-index:1;"><\/div>');
	document.write('<div id="layerNavLevel2" style="position:absolute;left:0px;top:0px;visibility:hidden;z-index:15;"><\/div>');
	document.write('<div id="layerNavLevel3left" style="position:absolute;left:0px;top:0px;visibility:hidden;z-index:14;"><\/div>');
	document.write('<div id="layerNavLevel3right" style="position:absolute;left:0px;top:0px;visibility:hidden;z-index:15;"><\/div>');
	document.write('<div id="blindLayer" style="position:absolute;top:0px;left:0px;visibility:hidden;z-index:11"><a href="#" onmouseover="resetBlindLayer()"><img src="'+dotTrans+'" width="970" height="400" border="0" id="moveOutTopNav" alt=""><\/a><\/div>');
		
}
