button1_a= new Image();
button1_a.src = "http://www.armaturen-versand.de/imagesglass/button_home.png";
button1_b= new Image();
button1_b.src = "http://www.armaturen-versand.de/imagesglass/button_home2.png";
button2_a= new Image();
button2_a.src = "http://www.armaturen-versand.de/imagesglass/button_armaturen.png";
button2_b= new Image();
button2_b.src = "http://www.armaturen-versand.de/imagesglass/button_armaturen2.png";
button3_a= new Image();
button3_a.src = "http://www.armaturen-versand.de/imagesglass/button_ersatzteile.png";
button3_b= new Image();
button3_b.src = "http://www.armaturen-versand.de/imagesglass/button_ersatzteile2.png";
button4_a= new Image();
button4_a.src = "http://www.armaturen-versand.de/imagesglass/button_warenkorb.png";
button4_b= new Image();
button4_b.src = "http://www.armaturen-versand.de/imagesglass/button_warenkorb2.png";
button5_a= new Image();
button5_a.src = "http://www.armaturen-versand.de/imagesglass/button_details.png";
button5_b= new Image();
button5_b.src = "http://www.armaturen-versand.de/imagesglass/button_details2.png";
button6_a= new Image();
button6_a.src = "http://www.armaturen-versand.de/imagesglass/button_addbasket.png";
button6_b= new Image();
button6_b.src = "http://www.armaturen-versand.de/imagesglass/button_addbasket2.png";

button7_a= new Image();
button7_a.src = "http://www.armaturen-versand.de/imagesglass/button175_dk.png";
button7_b= new Image();
button7_b.src = "http://www.armaturen-versand.de/imagesglass/button175_lt.png";


if (document.getElementById){
  document.write('<style type=\"text/css\">');
  document.write('.ttip{display: none;}');
  document.write('<\/style>');
}

function basket_back() {
  document.write('<font face=Arial size=1>');
  document.write('<a href=\"javascript:history.back();\">&lt;zurück</a>');
  document.write('</font><br>');
}


function showPage(NewPage,NewWidth,NewHeight) {
  if (!NewWidth) { NewWidth = 640; }
  if (!NewHeight) { NewHeight = 480; }
  Fenster1 = window.open(NewPage,'Info','width='+NewWidth+',height='+NewHeight+',scrollbars=yes,toolbar=no');
  Fenster1.resizeTo(NewWidth,NewHeight);
  Fenster1.focus();
}

function showFixedPage(NewPage,NewWidth,NewHeight) {
  if (!NewWidth) { NewWidth = 640; }
  if (!NewHeight) { NewHeight = 480; }
  Fenster1 = window.open(NewPage,'Info','width='+NewWidth+',height='+NewHeight+',scrollbars=no,toolbar=no,statusline=no');
  Fenster1.resizeTo(NewWidth,NewHeight);
  Fenster1.focus();
}


function showAngebot() {
  Fenster2 = window.open('http://www.armaturen-versand.de/angebot.html','Angebot','width=640,height=450,scrollbars=yes,toolbar=no');
  Fenster2.focus();
}


function showVK() {
  Fenster3 = window.open('http://www.armaturen-versand.de/cgi-bin/show.pl?versandkosten=druck','Versandkosten','width=760,height=480,scrollbars=yes,toolbar=1');
  Fenster3.focus();
}


function linkVK() {
  document.write('<font size=1 color=white>zuzügl. <a style=\"color: white; text-decoration: underline;\" href=\"javascript:showVK();\">Versandkosten</a></font>');
}


function showMWST() {
  document.write('<font size=1 color=white>inkl. 16% MwSt. zuzügl.  <a style=\"color: white; text-decoration: underline;\" href=\"javascript:showVK();\">Versandkosten</a></font>');
}


function showMWST2() {
  document.write('Alle Preise inkl. 16% MwSt. zuzügl.  <a style=\"color: #006699; text-decoration: underline;\" href=\"javascript:showVK();\">Versandkosten</a>');
}

function Bestellen(bestellung) {
  Fenster4 = window.open(bestellung, "Bestellwin", "width=800,height=600,left=100,top=50,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no");
  Fenster4.focus();
}


function showPic(NewPic,NewWidth,NewHeight) {
  if (NewWidth == 0) { NewWidth = parseInt(screen.availWidth*0.8); }
  if (NewHeight == 0) { NewHeight = parseInt(screen.availHeight*0.8); }
  
  NewHeight = NewHeight+30;
  PopPage = window.open('','Details','width='+NewWidth+',height='+NewHeight+',top=10,left=10');
  PopPage.resizeTo(NewWidth,NewHeight);
  PopPage.focus();
  PopPage.document.open();
  PopPage.document.writeln('<html><head>');
  PopPage.document.writeln('<title>Vergr&ouml;&szlig;erung</title>');
  PopPage.document.writeln('</head>');
  PopPage.document.writeln('<body bgcolor=\"white\">');
  PopPage.document.writeln('<center><table border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\"><tr>');
  PopPage.document.writeln('<td align=center valign=middle height=\"100%\" style=\"font-family: Arial,Helvetica,sans-serif; font-size: 9px;\">');
  PopPage.document.writeln('<img src=\"'+NewPic+'\" border=0><br><br>');
  PopPage.document.writeln('<a title=\"Fenster schlie&szlig;en\" href=\"javascript:window.close();\">Fenster schlie&szlig;en</a><br>');
  PopPage.document.writeln('</td></tr></table>');
  PopPage.document.writeln('</center></body></html>');
  PopPage.document.close();
  PopPage.focus();
}


function ShowDetails(PopGFX,NewWidth,NewHeight) {
  if (NewWidth == 0) { NewWidth = parseInt(screen.availWidth*0.8); }
  if (NewHeight == 0) { NewHeight = parseInt(screen.availHeight*0.8); }
  
  PopPage = window.open('','Details','width='+NewWidth+',height='+NewHeight+',top=10,left=10,scrollbars=1,');
  PopPage.focus();
  PopPage.document.open();
  PopPage.document.writeln('<html><head>');
  PopPage.document.writeln('<title>Detail-Skizze</title>');
  PopPage.document.writeln('</head>');
  PopPage.document.writeln('<body bgcolor=\"white\">');
  PopPage.document.writeln('<p align=right><font face=\"Arial,Helvetica,sans-serif\" size=1>');
  PopPage.document.writeln('<input type=\"button\" name=\"button\" value=\"Drucken\" onClick=\"javascript:self.print();\">');
  PopPage.document.writeln('</font></p>');
  PopPage.document.writeln('<center>');
  PopPage.document.writeln('<img src=\"'+PopGFX+'\" border=0>');
  PopPage.document.writeln('</center></body></html>');
  PopPage.document.close();
  PopPage.focus();
}


function ShowTip(obj){
  if(document.getElementById){
    var tip = document.getElementById(obj);
    if (tip.style.display != "block") {
      tip.style.display = "block";
      var cnt = 1;
      
      while (document.getElementById("z"+cnt)){
        if ("z"+cnt != obj) {
     	  document.getElementById("z"+cnt).style.display="none";
     	}
        cnt++;
      }

    } else {
      tip.style.display = "none";
    }
  }
}



function showIncludeArm() {
  document.getElementById("incLogosET").style.display="none";
  if ( document.getElementById("incLogosArm").style.display!="block" ) {
    document.getElementById("incLogosArm").style.display="block";
  } else {
    document.getElementById("incLogosArm").style.display="none";
	}
}

function showIncludeET() {
  document.getElementById("incLogosArm").style.display="none";

  if  (document.getElementById("incLogosET").style.display!="block") {
		document.getElementById("incLogosET").style.display="block";
	} else {
		document.getElementById("incLogosET").style.display="none";
	}
}

function hideIncludes() {
  document.getElementById("incLogosArm").style.display="none";
  document.getElementById("incLogosET").style.display="none";
} 



function klapptext(dasda) {
 if (document.getElementById(dasda).style.display!='block') {
  document.getElementById(dasda).style.display='block';
	document.getElementById(dasda+"link").innerHTML='schließen';
 }
 else {
  document.getElementById(dasda).style.display='none';
	document.getElementById(dasda+"link").innerHTML='mehr lesen';
 }
}

function klapplink(dada) {
	document.write("<a style='font-size: 7pt;' id='"+dada+"link' href=\"javascript:klapptext('"+dada+"')\">mehr lesen</a>");
}


