/* <!-- $Id: default.js 1302 2008-09-22 11:16:58Z koloch $ --> */

    function showPrint(winType)
    {
    	pageref = winType;
	if (pageref.indexOf("?") == -1) {
		pageref += "?";
	} else {
		pageref += "&";
	}
	pageref += "print=true";
      var nwl = (screen.width-699)/2;
      var nwh = (screen.height-559)/2;
      showPrintWin=window.open(pageref, 'Druckversion', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=699,height=559,left='+nwl+',top='+nwh+'');
      showPrintWin.window.focus();
    }

    var lastDisplayedImg = "";
    
    function showImageDetail(imgID)
    {
    	if (lastDisplayedImg != null && lastDisplayedImg != "") {
    		hideImageDetail(lastDisplayedImg);
    	}
    	lastDisplayedImg = imgID;
      	document.getElementById("bilddb-detail-"+imgID).style.display = "block";
    }
    
    function hideImageDetail(imgID)
    {
    	lastDisplayedImg = "";
      	document.getElementById("bilddb-detail-"+imgID).style.display = "none";
    }
    
    var highlightedGlossarLink = 'glossar_index_link_a';
    
    function showGlossar() {
    		frames['glossar_iframe'].location.href = glossarPage;
        	document.getElementById("glossary-index-shadow").style.display = "block";
    }

    function hideGlossar() {
    	document.getElementById("glossary-index-shadow").style.display = "none";
    }

    function showGlossarPage(path, linkToHighlight) {
    	glossarPage = path;
    	document.getElementById(highlightedGlossarLink).className = "";
    	highlightedGlossarLink = linkToHighlight;
    	document.getElementById(highlightedGlossarLink).className = "sel";
    	document.getElementById("glossar_iframe").src = path;
    }

// make sure the last navpoint style is bold
function showLastNavPosition(pageRef) {
	element = document.getElementById(pageRef);
	if(element){
		element.style.fontWeight="bold";
	}
}