// Für Bookmarks
var addthis_pub = 'office@digital-invent.com';

function favoriten() {
if(navigator.appName.indexOf("Explorer") != -1)
{
window.document.write("<a href=\"#\"onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.seminarraum-miete.de');\">Diese Seite als Startseite</a><br />");
}
else
{
}
if(navigator.appName.indexOf("Explorer") != -1)
{
window.document.write("<a href=\"#\" onclick=\"javascript:window.external.AddFavorite('http://www.seminarraum-miete.de','Seminarräume - Schulungsräume zum Mieten')\">Diese Seite zu den Favoriten</a>");
}
else
{
}
}

function checkScreen()
{
var breite = screen.width;
if(breite>1280)
{
// alert ("Auflösung größer 1024");
window.document.write("<div style='width:1260px; overflow: hidden;'>");
}
else
{
// alert ("niedrige Auflösung");
window.document.write("<div>");
}
}
function checkScreenEnde()
{
window.document.write("</div>");
}

function neuesfenster(adresse,breite,hoehe,linktext) {
var nummerzufahl = 1 + 100*(Math.random());
var nummerzufahl2 = Math.round(nummerzufahl);
var fensteroeffnen = "<a href='#zzz' onClick=\"window.open('" + adresse + "', '" + nummerzufahl2 + "','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + breite + ",height=" + hoehe + ",left=10,top=10')\">" + linktext + "</a>";
window.document.writeln(fensteroeffnen);
}

function layer1() {
var layer1 = "<a href=\"#\" onclick=\"return hs.htmlExpand(this, { contentId: 'layer' } )\">";
window.document.writeln(layer1);}

function layer12() {
var layer12 = "<a href=\"#\" onclick=\"return hs.htmlExpand(this, { contentId: 'layer12' } )\">";
window.document.writeln(layer12);}

function layer13() {
var layer13 = "<a href=\"#\" onclick=\"return hs.htmlExpand(this, { contentId: 'layer13' } )\">";
window.document.writeln(layer13);}

function layer16() {
var layer16 = "<a href=\"#\" onclick=\"return hs.htmlExpand(this, { contentId: 'layer16' } )\">";
window.document.writeln(layer16);}

function layer14() {
var layer14 = "<a href=\"#\" onclick=\"return hs.htmlExpand(this, { contentId: 'layer14' } )\">";
window.document.writeln(layer14);}

function layer15() {
var layer15 = "<a href=\"#\" onclick=\"return hs.htmlExpand(this, { contentId: 'layer15' } )\">";
window.document.writeln(layer15);}

function layer2() {
var layer2 = "</a>";       
window.document.writeln(layer2);}

function iframe1(adresse,breite,hoehe,linktext) {
var iframe1 = "<a href=" + adresse + " onClick=\"return hs.htmlExpand(this, { contentId: 'layer1', objectType: 'iframe', objectWidth: " + breite + ", objectHeight: " + hoehe + "} )\" class=\"highslide\">" + linktext + "</a><div class=\"highslide-html-content\" id=\"layer1\" style=\"width: " + breite + "px\"><div class=\"highslide-move\" style=\"border: 0; height: 18px; padding: 2px; cursor: default\"><a href=\"#\" onClick=\"return hs.close(this)\" class=\"control\">Schlie&szlig;en (X)</a></div><div class=\"highslide-body\"></div></div>"
window.document.writeln(iframe1);}

function iframe2(adresse,breite,hoehe,linktext) {
var iframe2 = "<a href=" + adresse + " onClick=\"return hs.htmlExpand(this, { contentId: 'layer2', objectType: 'iframe', objectWidth: " + breite + ", objectHeight: " + hoehe + "} )\" class=\"highslide\">" + linktext + "</a><div class=\"highslide-html-content\" id=\"layer2\" style=\"width: " + breite + "px\"><div class=\"highslide-move\" style=\"border: 0; height: 18px; padding: 2px; cursor: default\"><a href=\"#\" onClick=\"return hs.close(this)\" class=\"control\">Schlie&szlig;en (X)</a></div><div class=\"highslide-body\"></div></div>"
window.document.writeln(iframe2);}

function iframe3(adresse,breite,hoehe,linktext) {
var iframe3 = "<a href=" + adresse + " onClick=\"return hs.htmlExpand(this, { contentId: 'layer3', objectType: 'iframe', objectWidth: " + breite + ", objectHeight: " + hoehe + "} )\" class=\"highslide\">" + linktext + "</a><div class=\"highslide-html-content\" id=\"layer3\" style=\"width: " + breite + "px\"><div class=\"highslide-move\" style=\"border: 0; height: 18px; padding: 2px; cursor: default\"><a href=\"#\" onClick=\"return hs.close(this)\" class=\"control\">Schlie&szlig;en (X)</a></div><div class=\"highslide-body\"></div></div>"
window.document.writeln(iframe3);}

function iframe4(adresse,breite,hoehe,linktext) {
var iframe4 = "<a href=" + adresse + " onClick=\"return hs.htmlExpand(this, { contentId: 'layer4', objectType: 'iframe', objectWidth: " + breite + ", objectHeight: " + hoehe + "} )\" class=\"highslide\">" + linktext + "</a><div class=\"highslide-html-content\" id=\"layer4\" style=\"width: " + breite + "px\"><div class=\"highslide-move\" style=\"border: 0; height: 18px; padding: 2px; cursor: default\"><a href=\"#\" onClick=\"return hs.close(this)\" class=\"control\">Schlie&szlig;en (X)</a></div><div class=\"highslide-body\"></div></div>"
window.document.writeln(iframe4);}

function iframe5(adresse,breite,hoehe,linktext) {
var iframe5 = "<a href=" + adresse + " onClick=\"return hs.htmlExpand(this, { contentId: 'layer5', objectType: 'iframe', objectWidth: " + breite + ", objectHeight: " + hoehe + "} )\" class=\"highslide\">" + linktext + "</a><div class=\"highslide-html-content\" id=\"layer5\" style=\"width: " + breite + "px\"><div class=\"highslide-move\" style=\"border: 0; height: 18px; padding: 2px; cursor: default\"><a href=\"#\" onClick=\"return hs.close(this)\" class=\"control\">Schlie&szlig;en (X)</a></div><div class=\"highslide-body\"></div></div>"
window.document.writeln(iframe5);}

function iframe6(adresse,breite,hoehe,linktext) {
var iframe6 = "<a href=" + adresse + " onClick=\"return hs.htmlExpand(this, { contentId: 'layer6', objectType: 'iframe', objectWidth: " + breite + ", objectHeight: " + hoehe + "} )\" class=\"highslide\">" + linktext + "</a><div class=\"highslide-html-content\" id=\"layer6\" style=\"width: " + breite + "px\"><div class=\"highslide-move\" style=\"border: 0; height: 18px; padding: 2px; cursor: default\"><a href=\"#\" onClick=\"return hs.close(this)\" class=\"control\">Schlie&szlig;en (X)</a></div><div class=\"highslide-body\"></div></div>"
window.document.writeln(iframe6);}

function iframe7(adresse,breite,hoehe,linktext) {
var iframe7 = "<a href=" + adresse + " onClick=\"return hs.htmlExpand(this, { contentId: 'layer7', objectType: 'iframe', objectWidth: " + breite + ", objectHeight: " + hoehe + "} )\" class=\"highslide\">" + linktext + "</a><div class=\"highslide-html-content\" id=\"layer7\" style=\"width: " + breite + "px\"><div class=\"highslide-move\" style=\"border: 0; height: 18px; padding: 2px; cursor: default\"><a href=\"#\" onClick=\"return hs.close(this)\" class=\"control\">Schlie&szlig;en (X)</a></div><div class=\"highslide-body\"></div></div>"
window.document.writeln(iframe7);}

function writeParents2(val,tree,link,style,sep) {
   if (!tree) tree = catTree;
   var curNode;
   curNode = catTree.getNode(val,"ukatnr");
   if (!curNode) {
      if (WARN_CATEGORY_NOT_FOUND) {
         //alert("Node "+val+" not found!");
         return;
      }
      else {
         window.document.write(DEFAULT_PARENT_NAME);
      }
   }

// alert(curNode.userObject.name);
   var catString = "";
   if (!style) style = "cat-link";  
   if (!sep) sep = " / ";
   while (curNode.parent) {
      if (!curNode.userObject) continue;
      var tmp = catString;
      if (link)
         catString="<a href='" + replaceForUrl(curNode.userObject.name) + "," + curNode.userObject.ukatnr + ".html' class='"+style+"'>"+curNode.userObject.name+"</a>";
      else
         catString=curNode.userObject.name;
      if (tmp) catString = catString+sep+tmp;
         curNode = curNode.parent;
   }
   window.document.write(catString);
}