﻿function Show_Web_Page_Dialog(dialogWidth,dialogHeight,strPage,Form_Field,dialogLeft,dialogTop)
{
  if (window.showModalDialog)
  {
    Return_Value = window.showModalDialog(strPage,null,"status:no;help:no;dialogWidth=" + dialogWidth + ";dialogHeight=" + dialogHeight)
  }
  else
  {
    window.top.captureEvents (Event.CLICK|Event.FOCUS)
    window.top.onclick=IgnoreEvents
    window.top.onfocus=HandleFocus 
    winModalWindow = 
    window.open (strPage,"ModalChild",
       "dependent=yes,location=no,menubar=no,resizable=no,status=no,toolbar=no,width=" + dialogWidth + ",height=" + dialogHeight + ",left=" + dialogLeft + ",top=" + dialogTop)
    winModalWindow.focus()
  }
}

var MyURL = self.location.href;
if (MyURL.indexOf('?') > -1)
{
 MyURL = MyURL.substr(0,MyURL.indexOf('?'));
}
var FirstCut = MyURL.indexOf('/',8)+1;
MyURL = MyURL.substr(FirstCut);
var Categories = MyURL.split("/");
var NavChain ="";
var Categorie ="";
var MaxSlash = "";
if (Categories[0] == "Reddot5")
{
NavChain = '<a href="" class="blue">NavigationChain</a>';
}
else
{
	if (Categories[0] == "active" && (Categories[1] == "DE" || Categories[1] == "EN" || Categories[1] == "FR" || Categories[1] == "NL"))
	{
		Startcategorie = 2;
     		MaxSlash = Categories.length-3;
	}
	else
	{
		Startcategorie = 1;
     		MaxSlash = Categories.length-2;
	}
    for (var i=Startcategorie; i< Categories.length-1; i++)
    {
        Categorie = Categories[i];
        Categorie = Categorie.replace(/_ae_/g, "&auml;").replace(/_oe_/g, "&ouml;").replace(/_ue_/g, "&uuml;");
        Categorie = Categorie.replace(/_AE_/g, "&Auml;").replace(/_OE_/g, "&Ouml;").replace(/_UE_/g, "&Uuml;");
        Categorie = Categorie.replace(/_ag_/g, "&agrave;").replace(/_aa_/g, "&aacute;").replace(/_ac_/g, "&acirc;").replace(/_ar_/g, "&aring;");
        Categorie = Categorie.replace(/_eg_/g, "&egrave;").replace(/_ea_/g, "&eacute;").replace(/_ec_/g, "&ecirc;");
        Categorie = Categorie.replace(/_cc_/g, "&ccedil;").replace(/_ia_/g, "&iacute;").replace(/_ya_/g, "&yacute;");
        Categorie = Categorie.replace(/_ua_/g, "&uacute;").replace(/_ur_/g, "&#367;").replace(/_ed_/g, "&#283;");
        Categorie = Categorie.replace(/_cd_/g, "&#269;").replace(/_rd_/g, "&#345;").replace(/_sd_/g, "š");
		Categorie = Categorie.replace(/_zd_/g, "ž").replace(/_oa_/g, "&oacute;").replace(/_ob_/g, "ő");
		Categorie = Categorie.replace(/_ub_/g, "ű").replace(/_ap_/g, "'");
		Categorie = Categorie.replace(/_slash_/g, "&frasl;").replace(/_ss_/g, "&szlig;").replace(/_blank_/g, "&nbsp;").replace(/_qm_/g, "\"");
        Categorie = Categorie.replace(/_and_/g, "&amp;").replace(/_at_/g, "@").replace(/_bro_/g, "(").replace(/_brc_/g, ")");
		Categorie = Categorie.replace(/_aee_/g, "&aelig;").replace(/_AR_/g, "&Aring;").replace(/_oi_/g, "&oslash;").replace(/_OI_/g, "&Oslash;");
		Categorie = Categorie.replace(/_aar_/g, "&#261;").replace(/_la_/g, "&#322;").replace(/_eed_/g, "&#281;");
		Categorie = Categorie.replace(/_ee_/g, "&euml;");
		Categorie = Categorie.replace(/_nb_/g, "&ntilde;");
		Categorie = Categorie.replace(/_qmleft_/g, "&iquest;");		
		Categorie = Categorie.replace(/_qmright_/g, "?");		
		
        NavChain = NavChain + '<a href="';
          for (var z=1; z< MaxSlash ; z++)
          {
             NavChain = NavChain + "../";  
          }
        NavChain = NavChain + '" class="blue">' + Categorie + '</a>' + " > ";
        MaxSlash = MaxSlash -1;
    }
    if (NavChain != "")
        NavChain = NavChain.substr(0,NavChain.length-3);
}
document.writeln(NavChain);

function ph_glossar(word,view)
{
	var url = "";
	var url = "/active/libraries/phpscripts/functions/HARTMANN-Glossar/ph_glossar.phtml?Word="+word+"&view="+view;
	Show_Web_Page_Dialog('600px','455px',url,'','200','300');
}
function ph_designguide(word,language)
{
	var url = "";
	var url = "/active/libraries/phpscripts/functions/HARTMANN-DesignGuide/ph_designguide.phtml?Word="+word+"&Language="+language;
	Show_Web_Page_Dialog('600px','250px',url,'','200','300');
}