//###################################################
// (C) Copyright 11/2003 BMW Group
//###################################################

//Generic opentree function
function locateTree(treeID) {
	expandResult=parent.navi.document.stree.expand(treeID);
	if (!expandResult) {
		alert("Not found in tree");
	}
}


//Hide svg buttons for HTML
function hideButton() {
	parent.bottom.document.getElementById("svgbuttons").style.visibility = "hidden";					
	//set zoom mode to 1 for text
	parent.bottom.ihtm = 1;

}

//show SVG Buttons
function showButton() {
	parent.bottom.document.getElementById("svgbuttons").style.visibility = "visible";
	//set fontsize to 42 for printing - svg looses css in web env when printing
	var svgimg = parent.main.document.embeds[0].getSVGDocument();
	var svggroot = svgimg.getElementById("gid");
	svggroot.setAttribute("font-size", "42");
	svggroot.setAttribute("font-family", "'Arial','Arial Narrow','Arial Unicode MS'");	
}

//show correct model in wrapper
function showModel() {
	//get model from index.htm
	modelname = parent.vmodel;
	if ((modelname != null) && (modelname != "")) {
		document.write(modelname + " ");
	} else {
		document.write(" - WDS - ");
	}
}
