var temp_parent = "";
var temp_child = "";
function show2(parent, child) {
  if(temp_parent && temp_child) {
    document.getElementById(temp_parent).style.borderLeft = "5px transparent solid";
    document.getElementById(temp_child).style.display = "none";
  }
  document.getElementById(parent).style.borderLeft = "5px #562490 solid";
  document.getElementById(child).style.display = "block";
  temp_parent = parent;
  temp_child = child;
}

function show(parent, child) {
  //document.getElementById(parent).setAttribute('onmouseout', '');
  if(temp_parent) {
    document.getElementById(temp_parent).style.borderLeft = "5px transparent solid";
    //document.getElementById(temp_parent).setAttribute('onmouseover', "this.style.borderLeft = '5px #562490 solid'"); // geht im ie nicht
    //document.getElementById(temp_parent).setAttribute('onmouseout', "this.style.borderLeft = '5px #efefef solid'");
    //document.getElementById(temp_parent).onmouseout = function() { document.getElementById(temp_parent).style.borderLeft = "5px #efefef solid" };
    //document.getElementById(temp_parent).style.borderLeft = document.styleSheets.item(0).cssRules.item(6).style.borderLeft;
    //document.getElementById(temp_parent).style.borderLeft = inherit;
    //document.styleSheets.item(0).cssRules.item(8).style.borderLeft = "5px #562490 solid";
    //alert(document.styleSheets.item(0).cssRules.item(6).style.borderLeft);
    //alert(document.styleSheets.item(0).cssRules.item(1).selectorText)
    //a = document.styleSheets.item(0).cssRules.item(1).selectorText;
    //document.getElementById(temp_parent).style.hover = "border-left: 5px #562490 solid";
    //document.getElementById(temp_parent).style.hover.borderLeft = "5px #562490 solid;"
    //alert(document.getElementById(temp_parent));
    //document.getElementById(temp_parent).onmouseover = function() { alert("ff"); }; 
    }
  if(temp_child)
    document.getElementById(temp_child).style.display = "none";
  if(parent) {
    document.getElementById(parent).style.borderLeft = "5px #562490 solid";
    temp_parent = parent;
  }
  if(child) {
    document.getElementById(child).style.display = "block";
    temp_child = child;
  }
}

function openWindow(imglink, w, h) {
  imageWindow = window.open("", "", "height="+h+", width="+w+", menubar='no', toolbar='no', status='no'");
  imageWindow.document.open();
  with(imageWindow.document) {
    write('<html><head><title>Dingl Heiztechnik</title></head>');
    write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
    write('<img name="img1", src="' + imglink + '" width="'+w+'" height="'+h+'" alt="ALT" onclick="window.close();" style="cursor: pointer;">');
    write('</body></html>');
  }
  imageWindow.document.close();
}


/*function openWindow2(imglink,w,h) {
eigenschaften="left=20,top=20,screenX=20,screenY=20,width="+w+",height="+h+",menubar=no,toolbar=no,statusbar=0";
imageWindow=window.open("","",eigenschaften);
imageWindow.focus();
imageWindow.document.open();
with (imageWindow) {
  document.write("<html><head>");
  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
  document.write("function click() { window.close(); } ");
  document.write("document.onmousedown=click ");
  document.write('</scr' + 'ipt>');
  document.write("<title>klick to close</title></head>");
  document.write("<" + "body onblur='window.close()';");
  document.write("marginwidth='0' marginheight='0' leftmargin='0' topmargin='0'>");
  document.write("<img src='"+ imglink +"' border='0'>");
  document.write("</body></html>");
  imageWindow.document.close();
}

}*/

