var Info_PicName="";

function Details(DatName) {
  fenster = window.open(DatName, "Info",
        "width=780,height=550,scrollbars=yes,menubar=no,toolbar=no,location=no,statusbar=no,resizable=yes");
  fenster.focus();
  return;
}

function Details2(DatName) {
  fenster2 = window.open(DatName, "Details",
        "width=780,height=550,scrollbars=yes,menubar=no,toolbar=no,location=no,statusbar=no,resizable=yes");
  fenster2.focus();
  return;
}

function DetailsXY(DatName,x,y) {
  fensterXY = window.open(DatName, "Info",
        "width="+x+",height="+y+",scrollbars=yes,menubar=no,toolbar=no,location=no,statusbar=no,resizable=no");
  fensterXY.focus();
  return;
}

function DetailsKlein(DatName) {
  fensterklein = window.open(DatName, "Details2",
        "width=450,height=300,scrollbars=yes,menubar=no,toolbar=no,location=no,statusbar=no,resizable=no");
  fensterklein.focus();
  return;
}

function GetOIMG(source,Div,PicName)
{
  var ok;
  ok=false;
  for (i=0;i<oimg.length;i++) {
    if (oimg[i].src.search(source)>0) {
      if (document.getElementById("d_"+PicName).firstChild.lastChild)
           document.getElementById("d_"+PicName).firstChild.lastChild.setAttribute("src",oimg[i].src)
      else document.getElementById("d_"+PicName).firstChild.setAttribute("src",oimg[i].src);
      ok=true;
    }
  }
  if (ok != true) {
    if (document.getElementById("d_"+PicName).firstChild.lastChild)
         document.getElementById("d_"+PicName).firstChild.lastChild.setAttribute("src",source)
    else document.getElementById("d_"+PicName).firstChild.setAttribute("src",source);
  }
}

function PicPic(Div,PicNr,PicName,zusatz1,zusatz2)
{
  if (document.getElementById) {
    GetOIMG("images/"+PicName+zusatz2+zusatz1+".gif",Div,PicName);
  }
  else if(browser_IE()) {
    if (document.images[PicName])
    document.images[PicName].src="images/"+PicName+zusatz1+".gif";
  }
  else {
    document.layers[Div].document.images[PicNr].src="images/"+PicName+zusatz2+zusatz1+".gif";
  }
}

function DivSichtbar(Div)
{
  var sichtbar;
  sichtbar=false;
  if (document.getElementById) {
    if (document.getElementById(Div)) {
       if (document.getElementById(Div).style.visibility=="visible") sichtbar=true;
    }
  }
  else if(browser_IE()) {
    if (document.all[Div]) {
      if (document.all[Div].style.visibility="visible") sichtbar=true;
    }
  }
  else {
    if (document.layers[Div]) {
      if (document.layers[Div].visibility="show") sichtbar=true;
    }
  }
  return sichtbar;
}

function DivVis(Div,Vis)
{
  if (DivSichtbar(Div) != Vis) {
  if (document.getElementById) {
    if (document.getElementById(Div)) {
      if (Vis)
           document.getElementById(Div).style.visibility="visible";
      else document.getElementById(Div).style.visibility="hidden";
    }
  }
  else if(browser_IE()) {
    if (document.all[Div]) {
      if (Vis)
           document.all[Div].style.visibility="visible";
      else document.all[Div].style.visibility="hidden";
    }
  }
  else {
    if (document.layers[Div]) {
      if (Vis)
           document.layers[Div].visibility="show";
      else document.layers[Div].visibility="hide";
    }
  }
  }
}

function ZeigeInfo()
{
  var Anf="<font color='#000000'><font size='1'><b>Inhalt:</b></font><div style='margin:5'>";
  if (window.document.all.d_infot) {
  if (window.document.all.d_infot.innerHTML) {
    window.document.all.d_infot.innerHTML="&nbsp;";
    window.document.all.d_infot.style.width=240;
    window.document.all.d_infot.style.backgroundColor = "#FFFFBF";
    if (Info_PicName=="firma") {
      window.document.all.d_infot.innerHTML=Anf+"Die beliebtesten Displaysysteme in Markenqualität <i><b>und</i></b> zu kleinen Preisen aus dem Hause <b>ARcomm</b>.<br> <br>Wir stellen uns vor.</font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=42;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=42;
      DivVis('d_infot',true);
    }
    if (Info_PicName=="kontakt") {
      window.document.all.d_infot.innerHTML=Anf+"Sie haben Fragen zu unserem Angebot oder möchten eine Bestellung aufgeben?<br><br>Unser Beratungsteam hilft Ihnen gern.</font></div>";
      window.document.all.d_info.style.left=290;
      window.document.all.d_info.style.top=42;
      window.document.all.d_infot.style.left=290+18;
      window.document.all.d_infot.style.top=42;
      DivVis('d_infot',true);
    }
    if (Info_PicName=="agb") {
      window.document.all.d_infot.innerHTML=Anf+"Das Kleingedruckte.</font></div>";
      window.document.all.d_info.style.left=410;
      window.document.all.d_info.style.top=42;
      window.document.all.d_infot.style.left=410+18;
      window.document.all.d_infot.style.top=42;
      window.document.all.d_infot.style.width=160;
      DivVis('d_infot',true);
    }
    if (Info_PicName=="displaydruck") {
      window.document.all.d_infot.innerHTML=Anf+"Für Ihre unterschiedlichen Ansprüche an die Gestaltung Ihrer Poster oder Grafikbahnen bieten wir Ihnen unseren Digitaldruck auf verschiedenen Medien und in unterschiedlichen Formaten an.<li>Indoor</li><li>Outdoor</li><li>Displaydruck</li><li>Posterdruck</li></font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=318+30;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=318-5+30;
      PicPic('d_info',0,'info',"","");
      DivVis('d_info',true);
      DivVis('d_infot',true);
    }
    if (Info_PicName=="aussenwerbung")  {
      window.document.all.d_infot.innerHTML=Anf+"Mit unseren extra-breiten Lösungsmittel- Druckmaschinen sind wir in der Lage, Ihre Aussenwerbung erfolgreich umzusetzen.<li>Plakatwerbung</li><li>Verkehrsmittel- Werbung</li><li>Leuchtwerbung</li><li>Transparente</li><li>Großflächenwerbung</li></font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=275+30;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=275-5+30;
      PicPic('d_info',0,'info',"","");
      DivVis('d_info',true);
      DivVis('d_infot',true);
    }
    if (Info_PicName=="bannerdisplays") {
      window.document.all.d_infot.innerHTML=Anf+"Bannerdisplays sind ideal geeignet für kleine Präsentationen. Sie haben ein sehr geringes Gewicht und sind schnell aufzubauen.<font face='Verdana' size='1'><li><b>aktuelle online-Angebote</b></li><li><b>Produktinformationen</b></li><li><b>Aufbauanleitungen</b></li><li><b>online - Preise</b></li></font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=149+30;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=149-5+30;
      PicPic('d_info',0,'info',"","");
      DivVis('d_info',true);
      DivVis('d_infot',true);
    }
    if (Info_PicName=="faltdisplays") {
      window.document.all.d_infot.innerHTML=Anf+"Für umfangreiche Präsentationen bieten wir Ihnen Faltdisplays unterschiedlicher Größen an. Trotz ihrer hohen Stabilität sind sie schnell aufbaubar.<font face='Verdana' size='1'><li><b>aktuelle online-Angebote</b></li><li><b>Produktinformationen</b></li><li><b>Aufbauanleitungen</b></li><li><b>online - Preise</b></li></font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=193+30;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=193-5+30;
      PicPic('d_info',0,'info',"","");
      DivVis('d_info',true);
      DivVis('d_infot',true);
    }
    if (Info_PicName=="moebel") {
      window.document.all.d_infot.innerHTML=Anf+"Wählen Sie unsere Messemöbel als Ergänzung zu Ihrer Messeausstattung oder als eigenständige Präsentationsmittel.<br>Unsere Möbel finden Sie auch im <b>Shop</b>.</font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=235+30;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=235-5+30;
      PicPic('d_info',0,'info',"","");
      DivVis('d_info',true);
      DivVis('d_infot',true);
    }
    if (Info_PicName=="anfrage_neu") {
      window.document.all.d_infot.innerHTML=Anf+"Haben Sie spezielle Fragen zu unseren Produkte, so nutzen Sie bitte unser Anfrageformular oder die oben befindliche Telefonnummer. <br>Auch <b>Bestellungen</b> nehmen wir über dieses Formular an.</font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=402+30;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=402-5+30;
      PicPic('d_info',0,'info',"","");
      DivVis('d_info',true);
      DivVis('d_infot',true);
    }
    if (Info_PicName=="shop") {
      window.document.all.d_infot.innerHTML=Anf+"Kaufen Sie schnell und übersichtlich in unserem online -Shop ein und profitieren Sie von unseren online- Preisen.</font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=445+30;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=445-5+30;
      PicPic('d_info',0,'info',"","");
      DivVis('d_info',true);
      DivVis('d_infot',true);
    }
    if (Info_PicName=="auftrag") {
      window.document.all.d_infot.innerHTML=Anf+"Verfolgen Sie hier die Bearbeitung Ihres <b>Auftrages</b> oder laden Sie hier das <b>3D-Modell</b> Ihres bestellten Displays herunter.</font></div>";
      window.document.all.d_info.style.left=180;
      window.document.all.d_info.style.top=484+30;
      window.document.all.d_infot.style.left=180+18;
      window.document.all.d_infot.style.top=484-5+30;
      PicPic('d_info',0,'info',"","");
      DivVis('d_info',true);
      DivVis('d_infot',true);
    }
  }
  }
}

function show_info(PicName1)
{
  Info_PicName=PicName1;
  ZeigeInfo();
}

function auf0(Div1,PicNr1,PicName1)
{
  istda=false;
  PicPic(Div1,PicNr1,PicName1,"r","");
  for (i=1;i<=20;i++) {
    if (document.getElementById(Div1+i)) {
      DivVis(Div1+i,true);
      istda=true;
    }
  }
  if (istda==false) { show_info(PicName1);}
}

function aufd0(Div1,PicNr1)
{
  if (document.getElementById(Div1+PicNr1)) {
    document.getElementById(Div1+PicNr1).style.backgroundColor='#FF0000';
    if (document.getElementById(Div1+PicNr1).firstChild) {
      document.getElementById(Div1+PicNr1).firstChild.style.backgroundColor='#FF0000';
      document.getElementById(Div1+PicNr1).firstChild.style.color='#FFFFFF';
      document.getElementById(Div1+PicNr1).firstChild.style.fontWeight='bold';
    }
  }
  for (i=1;i<=20;i++) {
    if (document.getElementById(Div1+i)) {
      DivVis(Div1+i,true);
    }
  }
}

function auf1(Div1,PicNr1,PicName1)
{
  PicPic(Div1,PicNr1,PicName1,"r","");
}

function hide_info()
{
  if (window.document.all.d_infot.innerHTML) {
    Info_PicName="";
    DivVis('d_info',false);
    DivVis('d_infot',false);
  }
}

function tores()
{
  hide_info();
}

function res0(Div1,PicNr1,PicName1)
{
  PicPic(Div1,PicNr1,PicName1,"","");
  tores();
  for (i=1;i<=20;i++) {
    if (document.getElementById(Div1+i)) {
      DivVis(Div1+i,false);
    }
  }
}

function resd0(Div1,PicNr1)
{
  if (document.getElementById(Div1+PicNr1)) {
    document.getElementById(Div1+PicNr1).style.backgroundColor='#E7F0F9';
    if (document.getElementById(Div1+PicNr1).firstChild) {
      document.getElementById(Div1+PicNr1).firstChild.style.backgroundColor='#E7F0F9';
      document.getElementById(Div1+PicNr1).firstChild.style.color='#000000';
      document.getElementById(Div1+PicNr1).firstChild.style.fontWeight='normal';
    }
  }
  for (i=1;i<=20;i++) {
    if (document.getElementById(Div1+i)) {
      DivVis(Div1+i,false);
    }
  }
}

function res1(Div1,PicNr1,PicName1)
{
  if (Info_PicName != PicName1)
  PicPic(Div1,PicNr1,PicName1,"","");
}