   picbase ="http://www.wedia-schweiz.ch/images/";
   butbase ="http://www.wedia-schweiz.ch/buttons/";
   docbase ="http://www.wedia-schweiz.ch/standorte/";
   pdfbase ="http://www.wedia-schweiz.ch/standorte/";

function MakeNames(typ)
 {
  zurueck_old = zurueck;
   bildort = '';
  if (typ=='p')
  {
   bildort = "spannposter/"+zurueck;
   zurueck = "sp_"+zurueck;
  }
  if (typ=='d')
  {
   bildort = "diaprojektion/"+zurueck;
   zurueck = "dp_"+zurueck;
  }
  name0   =zurueck+"_"+name;
  if (typ!='l')
  {
   namep   = pdfbase+zurueck+"_"+name+".pdf";
  }
  else
  {
   namep   ="nix";
  }

  name1   =bildort+"/"+name0 + "_1.jpg";
  name2   =bildort+"/"+name0 + "_2.jpg";
  name3   =bildort+"/"+name0 + "_map.jpg";
  name4   =bildort+"/"+name0 + ".ppt";
  name1big="grossesbild.php?id="+name1+"&stadt=Standortbild&detail="+ueberschrift;
  name2big="grossesbild.php?id="+name2+"&stadt=Standortbild&detail="+ueberschrift;
  name3big="grossesbild.php?id="+name3+"&stadt=Standortbild&detail="+ueberschrift;

  if (davor       !='nix') davor   = 'standorte.php?site=' + zurueck + '_' + davor  ;
  if (danach      !='nix') danach  = 'standorte.php?site=' + zurueck + '_' + danach ;

  if (zurueck_old =='nix')
  {
   if (typ=='p')
   {
    if (name=='map')
    {
     zurueck = "./../fr_sp_intro";
    }
    else
    {
     zurueck = "./../fr_sp_map";
    }
   }
   else
   {
    if (name=='map')
    {
     zurueck = "./../fr_dp_intro";
    }
    else
    {
     zurueck = "./../fr_dp_map";
    }
   }
  }
 }

 function ZweiFrames(URL1,Fr1Nummer,URL2,Fr2Nummer)
 {
  parent.frames[Fr1Nummer].location.href=URL1;
  parent.frames[Fr2Nummer].location.href=URL2;
 }
 function DreiFrames(URL1,Fr1Nummer,URL2,Fr2Nummer,URL3,Fr3Nummer)
 {
  parent.frames[Fr1Nummer].location.href=URL1;
  parent.frames[Fr2Nummer].location.href=URL2;
  parent.frames[Fr3Nummer].location.href=URL3;
 }

function backback()
  {
   top.location.href="http://www.wedia-schweiz.ch/dp_index.html";
  }

function NewWindow(url,breite)
  {
   BildFenster =
   window.open(url,"Standortfoto", "width="+breite+",height=600,resizable=no,dependent=yes");
   BildFenster.focus();
  }


function MakeMainTable(TextUE,namep,zurueck,davor,danach)
  {
   document.write("<a name=\"Start\"></a>");
   document.write("<TABLE class=\"main\" border=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n  <TR>\n");
   document.write("    <TH class=\"sml1\"></TH>\n");
   document.write("    <TH class=\"sml1\"></TH>\n");
   document.write("    <TH class=\"sml2\"></TH>\n");
   document.write("    <TH class=\"main\"></TH>\n");
   document.write("    <TH class=\"pict\"></TH>\n");
   document.write("    <TH class=\"sml1\"></TH>\n");
   document.write("  </TR>\n  \n<TR class=\"black\">");
   document.write("    <TD class=\"black\" colspan=\"2\">&nbsp;</TD>");
   document.write("    <TD class=\"black\" colspan=\"2\">"+TextUE+"</TD><TD class=\"buttons\" colspan=\"2\">");

   if (namep!='nix')
   {
   document.write("<a href=\"javascript:PrintHelp()\"><img src=\""+butbase+"print.gif\" border=0 width=25 height=25 valign=middle ");
   document.write("alt=\"ausdrucken\"></a>");
   document.write("<a href=\""+pdfbase+name4+"\" target=\"_top\"><img src=\""+butbase+"pdf.gif\" border=0 width=25 height=25 ");
   document.write("alt=\"Bilder und PDF-Dateien herunterladen)\"></a>");
   }
   else
   {
   document.write("<img src=\""+butbase+"printx.gif\" border=0 width=25 height=25 ");
   document.write("alt=\"ausdrucken nicht vorgesehen\">");
   document.write("<img src=\""+butbase+"pdfx.gif\" border=0 width=25 height=25 ");
   document.write("alt=\"kein PDF-File verf&uuml;gbar\">");
   }

   if (zurueck == 'nix') zurueck = "../fr_dp_intro";
   document.write("<a href=\"standorte.php?site="+zurueck+"\"><img src=\""+butbase+"zurueck.gif\" border=0 width=25 height=25 ");
   document.write("alt=\"zur &Uuml;bersicht\"></a>");

   if (davor == "nix")
    {
     document.write("<img src=\""+butbase+"davorx.gif\" border=0 width=25 height=25 ");
     document.write("alt=\"zur&uuml;ckbl&auml;ttern nicht m&ouml;glich\">");
    }
    else
    {
     document.write("<a href=\""+davor+"\"><img src=\""+butbase+"davor.gif\" border=0 width=25 height=25 ");
     document.write("alt=\"zur&uuml;ckbl&auml;ttern\"></a>");
    }
   if (danach == "nix")
    {
     document.write("<img src=\""+butbase+"danachx.gif\" border=0 width=25 height=25 ");
     document.write("alt=\"vorbl&auml;ttern nicht m&ouml;glich\">");
    }
    else
    {
     document.write("<a href=\""+danach+"\"><img src=\""+butbase+"danach.gif\" border=0 width=25 height=25 ");
     document.write("alt=\"vorbl&auml;ttern\"></a>");
    }
   document.write("</TD></TR>\n");
 }

function PrintHelp()
  {
    var browser = navigator.appName.substr(0,8);
    var version = navigator.appVersion.substr(0,1);
    var genuegt = "nein";
    text =       'Wir empfehlen Ihnen das Dokument als PDF-File\n';
    text = text+ 'zu oeffnen und auszudrucken. Das ergibt auf jeden\n';
    text = text+ 'Fall die bestmoegliche Qualitaet!\n\n\n';

        text = text+ 'Die normale Druckfunktion Ihres Browsers kann\n';
        text = text+ 'die Seite leider nur unvollstaendig ausdrucken.\n';

    alert(text);
  }

function MakeMainText(TextBL)
  {
    document.write("  <TR class\"black\">\n    <TD class=\"black\" colspan=\"2\">&nbsp;</TD>");
    document.write("    <TD class=\"text\">&nbsp;</TD>");
    document.write("    <TD class=\"text\"><TABLE class=\"sub\">");
    document.write("<TR><TD class=\"text\"><p>"+TextBL);
    document.write("</p></TD></TR></TABLE></TD>");
    document.write("  </TR>");
  }

function MakeEmptyLinePict(TextBR,picturl,span,linkurl,sx,sy)
  {
    document.write("  <TR class\"black\">\n");
    document.write("    <TD class=\"black\">&nbsp;</TD>");
    document.write("    <TD class=\"black\" colspan=\"2\">&nbsp;</TD>");
    document.write("    <TD class=\"black\">"+TextBR+"</TD>");
    if (linkurl == 'ohne')
      {
        document.write("    <TD class=\"pict\" colspan=\"2\" rowspan=\""+span+"\"><img src=\""+picturl+"\" border=0 alt=\"leider keine Vergr&ouml;&szlig;erung verf&uuml;gbar\" width="+sx+" height="+sy+"></TD>");
      }
      else
      {
        document.write("    <TD class=\"pict\" colspan=\"2\" rowspan=\""+span+"\"><a href=\"#Start\" onclick=\"javascript:NewWindow('"+linkurl+"',"+sy*2+")\" onmouseover=\"window.status='Bild gross anzeigen';return true\"><img src=\""+picturl+"\" alt=\"Anklicken zum Vergr&ouml;&szlig;ern\" border=0 width=" +sx+ " height=" +sy+ "></a></TD>");
      }
    document.write("  </TR>");
  }


function MakeEmptyLine(pixel)
  {
    document.write("  <TR>\n");
    document.write("    <TD height=\""+pixel+"\" class=\"black\"colspan=\"2\">&nbsp;</TD>");
    document.write("    <TD colspan=\"2\">&nbsp;</TD></TR>");
  }

function MakeGreyBarPict(TextBR,picturl,span,linkurl,sx,sy)
  {
    document.write("  <TR class\"grey\">\n");
    document.write("    <TD class=\"black\">&nbsp;</TD>");
    document.write("    <TD class=\"grey\" colspan=\"2\">&nbsp;</TD>");
    document.write("    <TD class=\"grey\" height=\"20\">"+TextBR+"</TD>");
    if (linkurl == 'ohne')
      {
        document.write("    <TD class=\"pict\" colspan=\"2\" rowspan=\""+span+"\"><img src=\""+picturl+"\" border=0 alt=\"leider keine Vergr&ouml;&szlig;erung verf&uuml;gbar\"></TD>");
      }
      else
      {
        document.write("    <TD class=\"pict\" colspan=\"2\" rowspan=\""+span+"\"><a href=\"#Start\" onclick=\"javascript:NewWindow('"+linkurl+"',600)\" onmouseover=\"window.status='Bild gross anzeigen';return true\"><img src=\""+picturl+"\" alt=\"Anklicken zum Vergr&ouml;&szlig;ern\" border=0></a></TD>");
        //document.write("    <TD class=\"pict\" colspan=\"2\" rowspan=\""+span+"\"><a href=\"#Start\" onclick=\"javascript:NewWindow('"+linkurl+"',600)\" onmouseover=\"window.status='Bild gross anzeigen';return true\"><img src=\""+picturl+"\" alt=\"Anklicken zum Vergr&ouml;&szlig;ern\" border=0 width=300 height=300></a></TD>");
      }
    document.write("  </TR>");
  }

function DMp(DM)
  {
     DM = DM * 1.95583
     DMt  = Math.floor(DM/1000);
     if (DMt == 0)
       {
         DMe = DM;
         text = 'DM&nbsp;&nbsp;&nbsp;'+DMe+',--';
       }
       else
       {
         DMe = '00'+(DM-(DMt*1000));
         DMe = DMe.substr(DMe.length-3,3);
         text = 'DM ';
         if (DMt < 10 ) text = text + '&nbsp;&nbsp;';
         text = text+ DMt+'.'+DMe+',--';
       }
     return text;
  }

function EURp(DM)
  {
     EUR  = Math.round(DM/0.010)/100;
     EURc = EUR - Math.floor(EUR);
     EURc = Math.round(EURc*100)+'00';
     EURc = EURc.substr(0,2);
     EUR  = Math.floor(EUR);
     EURt = Math.floor(EUR/1000);
     if (EURc == '00')
       {
	 EURc = '-';
       }
     if (EURt == 0)
       {
         EURe = EUR;
         text = ' CHF ';
	 if (EURe < 100 ) text = text + '&nbsp;&nbsp;';
         text = text+ EURe+','+EURc;
       }
       else
       {
         EURe = '00'+(EUR-(EURt*1000));
         EURe = EURe.substr(EURe.length-3,3);
         text = ' CHF ';
         text = text+ EURt+'.'+EURe+','+EURc;
       }
     return text;
  }


function MakeGreyBar(TextBR)
  {
    document.write("  <TR class\"grey\">\n");
    document.write("    <TD class=\"black\">&nbsp;</TD>");
    document.write("    <TD class=\"grey\" colspan=\"2\">&nbsp;</TD>");
    document.write("    <TD class=\"grey\" height=\"20\">"+TextBR+"</TD>");
    document.write("  </TR>");
  }

function MakePosterCosts(DM,bqm,zeitraum)
  {
     if (DM == 0)
       {
         text = '<li>Schaltpreis: auf Anfrage</li>';
       }
       else
       {
         text = '<li>'+EURp(DM)+zeitraum;
       }
     if (bqm < 100)
       {
         text = text+ ' / Beleuchtungspreis:';
         if (bqm == 0)
           {
             text = text+ ' inklusive!';
           }
           else
           {
	     if (bqm == 1)
	       {
		text = text + ' auf Anfrage';
	       }
	     else
	       {
                text = text+ ' '+EURp(bqm);
               }
	   }
         text = text + '</li>';
       }
     return text;
  }

function MakeProdCosts(DM)
  {
     if (DM == 0)
       {
         text = '<li>Produktionskosten: auf Anfrage</li>';
       }
       else
       {
         text = '<li>Produktionskosten:'+EURp(DM);
       }
       text = text + '</li>';
     return text;
  }

function MakeBHInfo(breite,hoehe)
  {
     text =       'Breite / H&ouml;he&nbsp&nbsp;'+breite+'m x '+hoehe+'m';
     return text;
  }


function MakeSlideCosts(W0112,W0612,Wexcl,Sexcl)
  {
     text =       '<b>Winter</b> (01.09-31.03)<br><br>';
     text = text+ '1 von 12 Dias:<br>6 von 12 Dias:<br>EXKLUSIV:<br><br><b>Sommer</b> (01.04-31.08.)<br><br>';
     text = text+ 'EXKLUSIV:</p></td><td class="zahl"><p>';
     text = text+ '<br><br>'+DMp(W0112)+'<br>'+DMp(W0612)+'<br>'+DMp(Wexcl)+'<br><br><br><br>'+DMp(Sexcl)+'<br></p></td><td class="zahl"><p>';
     text = text+ '<br><br>'+EURp(W0112)+EURp(W0612)+EURp(Wexcl)+'<br><br><br>'+EURp(Sexcl)+'<br>';

     return text;
  }

function MakeProjectionInfo(area,orientation)
  {
     if (orientation == 'h')
       {
         o = 'Hochformat'
         x = Math.round(10 * Math.sqrt(area*54/68)) /10;
         y = Math.round(10 * area / x) / 10;
       }
     if (orientation == 'b')
       {
         o = 'Hoch & Querformat'
         x = Math.round(10 * Math.sqrt(area*68/54)) /10;
         y = Math.round(10 * area / x) / 10;
       }
     if (orientation == 'q')
       {
         o = 'Querformat'
         x = Math.round(10 * Math.sqrt(area*68/54)) /10;
         y = Math.round(10 * area / x) / 10;
       }
     text =       'Bildgr&ouml;&szlig;e:<br>Bild:</p></td><td><p>ca. '+area+' m&sup2;<br>';
     /*&nbsp;&nbsp;('+x+'m *'+y+'m)*/

     text = text+ o+'</p></td>';
     return text;
  }

function belinfo(bqm)
  {
     text =       '</p><p>Beleuchtung '
       if (bqm > 0)
         {
          if (bqm >= 100)
             {
              text = text + 'nicht m&ouml;glich!';
             }
             else
             {
              text = text + 'm&ouml;glich!';
             }
         }
         else
         {
           text = text + 'inklusive!';
         }
     return text;
  }

function MakePOIList(data)
  {
    anzahl=data.length;
    text = '';
    if (anzahl>8)
       {
        text = text+'';
        for (i = 0; i <= 7; i++)
            {
               text = text+ '<li>'+data[i]+'</li>';
            }
        text = text+ '</p></td>\n<TD><p>';
        for (i = 8; i <= anzahl-1; i++)
            {
               text = text+ '<li>'+data[i]+'</li>';
            }
        text = text+ '';
       }
       else
       {
        text ='<lu>';
        for (i = 0; i <= anzahl-1; i++)
            {
               text = text+ '<li>'+data[i]+'</li>';
            }
        text = text+ '</lu>';
       }
     return text
  }

function MakeVerkehrsFrequenz(p,t)
  {
     if (t == "X")
       {
         text ='<br><br>';
       }
       else
       {
         text='Verkehrsfrequenz:<br>ca. '+p+' Personen pro Monat (<a href=\"javascript:InfoVerkehr(zeit)\">Info</a>)';
       }
     return text;
  }

function InfoVerkehr(t)
  {
     if (t == "T")
       {
         alert('Verkehrsfrequenz in Fahrtrichtung\ninnerhalb von 24 Stunden.\n\nFahrspurangaben in Fahrtrichtung');
       }
     if (t == "N")
       {
         alert('Verkehrsfrequenz in Fahrtrichtung\nwaehrend der Projektionszeiten.\n\nFahrspurangaben in Fahrtrichtung');
       }

  }
function MakeBuchbarStatus(b)
  {
     text = '<li>';
     if (b == 'A') text = text + 'Buchungsm&ouml;glichkeiten: auf Anfrage';
     if (b == 'D') text = text + 'buchbar in der Zeit vom 1.4. - 31.8.';
     if (b == 'S') text = text + 'buchbar ab sofort (Dauerstandort)';
     if (b.length > 1) text = text + 'Buchbar ' + b;
     text = text + '</li>';
     return text;
  }

function EndMainTable()
  {
   document.write("</TABLE>\n");

  }

function LastMod()
  {
   document.write("<div class=\"datum\">&copy; WEDIA visuelle Gro&szlig;fl&auml;chenwerbung GmbH / Stand: " + document.lastModified + "!</div>");
  }

  function WerteHolen(Bezeichner)
  {
   var Wert = "";
   if(document.cookie)
   {
    Wertstart = document.cookie.indexOf(Bezeichner) + Bezeichner.length + 1;
    Wertende = document.cookie.indexOf(Bezeichner+'x');
    if(Wertende == -1) Wertende = document.cookie.length;
    Wert = document.cookie.substring(Wertstart,Wertende);
   }
   return Wert;
  }

  function WerteSetzen(Bezeichner, Wert, Sekunden)
  {
   var jetzt = new Date();
   var Auszeit = new Date(jetzt.getTime() + (1000*Sekunden));
   document.cookie = Bezeichner+"="+Wert+Bezeichner+"x; expires="+Auszeit.toGMTString()+";";
  }

  function SearchDev()
  {
   var intN = document.suche.land.selectedIndex;
   var l = document.suche.land.options[intN].value;
   land=l;
   WerteSetzen('land' ,l,60);

   var intN = document.suche.stadt.selectedIndex;
   var s = document.suche.stadt.options[intN].value;
   stadt=s;
   WerteSetzen('stadt' ,s,60);

   var intN = document.suche.art.selectedIndex;
   var a = document.suche.art.options[intN].value;
   art=a;
   WerteSetzen('art' ,a,60);
   return true;
  }

function MakeSearchForm()
  {
   text ='';
   text = text + '</p></td></tr><tr><td><form name=\"suche\" onSubmit=\"return SearchDev()\">';
   text = text + '<select name=\"land\" size=1>';
   text = text + '<option selected value=\"*\"> Alle L&auml;nder';
   text = text + '<option          value=\"CH\"> Schweiz';
  text = text + '</select>';
   text = text + '</td><td class=\"text\">';
   text = text + '<select name=\"stadt\" size=1>';
   text = text + '<option selected value=\"*\"> Alle St&auml;dte';
   text = text + '<option          value=\"B\"> Basel';
   text = text + '<option          value=\"Z\"> Z&uuml;rich';
   text = text + '</select>';
   text = text + '</td><td class=\"text\">';
   text = text + '<select name=\"art\" size=1>';
   text = text + '<option selected value=\"*\"> Alle Arten';
   text = text + '<option          value=\"P\"> Poster';
   text = text + '<option          value=\"D\"> Dia';
   text = text + '</select>';
   text = text + '</td><td class=\"text\">';
   text = text + '<input type=submit value=\"Los!\">';
   text = text + '</form></td></tr><tr><td><p>';
   return text;
  }

/*   text = text + '<option          value=\"K\"> K&ouml;ln'; */

function introback()
{
  if (parent.logo.location.href == 'http://www.wedia-schweiz.ch/fr_sp_titel.html')
  {
   parent.logo.location.href = 'http://www.wedia-schweiz.ch/fr_sp_titelx.html';
  }
  if (parent.logo.location.href == 'http://www.wedia-schweiz.ch/fr_dp_titel.html')
  {
   parent.logo.location.href = 'http://www.wedia-schweiz.ch/fr_dp_titelx.html';
  }
  if (parent.logo.location.href == 'http://www.wedia-schweiz.ch/fr_ev_titel.html')
  {
   parent.logo.location.href = 'http://www.wedia-schweiz.ch/fr_ev_titelx.html';
  }

}


function jump(target)
{
 if (target=='news')
 {
  top.main.location.href='http://www.wedia-schweiz.ch/news/index.php';
  introback();
 }
 if (target=='eigentuemer')
 {
  top.main.location.href='http://www.wedia-schweiz.ch/fr_eigentuemer.html';
  introback();
 }
 if (target=='produktion')
 {
  top.main.location.href='http://www.wedia-schweiz.ch/technik/diaprojektion/fr_produktion.html';
  introback();
 }
 if (target=='partner')
 {
  top.main.location.href='http://www.wedia-schweiz.ch/partner/fr_partner.html';
  introback();
 }
 if (target=='lizenznehmer')
 {
  top.main.location.href='http://www.wedia-schweiz.ch/lizenznehmer/fr_lizenznehmer.html';
  introback();
 }
 if (target=='suche')
 {
  top.main.location.href='./standorte.php?site=fr_suche';
  introback();
 }
 if (target=='kontakt')
 {
  top.main.location.href='http://www.wedia-schweiz.ch/fr_kontakt.html';
  introback();
 }
 if (target=='download')
 {
  top.main.location.href='http://www.wedia-schweiz.ch/filebrowser/treeOfFiles.php';
  introback();
 }
 if (target=='ftp')
 {
  top.main.location.href='ftp://anonymous:gast@www.wedia-schweiz.ch/we/wedia-schweiz.ch';
  introback();
 }
}


function test()
{
 alert('test');
}

function MakeDiaSite()
  {
  if ( parent.subnav )
  {
   parent.subnav.location.href = './fr_dp_subnav.html';
  }
  if (parent.logo && parent.logo.location.href != './fr_dp_titel.html')
  {
   parent.logo.location.href = './fr_dp_titel.html';
  }
  if (parent.nav1 && parent.nav1.location.href != './fr_dp_nav.html')
  {
   parent.nav1.location.href = './fr_dp_nav.html';
  }
  MakeNames('d');
  MakeMainTable(ueberschrift,namep,zurueck,davor,danach);
  MakeEmptyLine(15);
  MakeGreyBarPict('Standortinformation','kleinesbild.php?id=./standorte/'+name1+'&size=300&quality=50',7,name1big,300,300);
  MakeMainText(standortinfo);
  MakeMainText(MakeVerkehrsFrequenz(personen,zeit));

  besitzer = FindeBesitzer(zurueck,name);

  if (typeof besitzer == "string")
    {
     besitzer = besitzer;
    }
    else
    {
     besitzer = " ";
    }
  MakeMainText(besitzer);

  MakeGreyBar('Projektion');
  MakeEmptyLine(20);
  MakeMainText(MakeProjectionInfo(projektionsgroesse,projektionsformat));
  MakeEmptyLine(20);
  MakeGreyBarPict('Nettopreise','kleinesbild.php?id=./standorte/'+name2+'&size=300&quality=50',4,name2big,300,300);
  MakeMainText('Preise entnehmen Sie bitte der aktuellen Preisliste');
  MakeMainText('<br><br><br><br><br><br><br><br><br><br>');
/*  MakeMainText(MakeSlideCosts(netto_winter_1von12,netto_winter_6von12,netto_winter,netto_sommer)); */
/*  MakeMainText(AEText);*/
  MakeEmptyLine(50);
  if( umfeld.length > 0 )
  {
	document.write("<div class=\"page\"></div>");
	MakeGreyBarPict('Umfeldbeschreibung','kleinesbild.php?id=./standorte/'+name3+'&size=300&quality=50',4,name3big,300,300);
	MakeMainText('In unmittelbarer N&auml;he befinden sich:');
	MakeMainText(MakePOIList(umfeld));
	MakeEmptyLine(20);
  }
  else
  {
  	MakeGreyBarPict('Umgebungskarte','kleinesbild.php?id=./standorte/'+name3+'&size=300&quality=50',4,name3big,300,300);
	MakeEmptyLine(400);
  }
  EndMainTable();
  LastMod();
  }

function MakePosterSite()
  {
  if ( parent.subnav )
  {
   parent.subnav.location.href = './fr_sp_subnav.html';
  }
  if (parent.logo && parent.logo.location.href != './fr_sp_titel.html')
  {
   parent.logo.location.href = './fr_sp_titel.html';
  }
  if (parent.nav1 && parent.nav1.location.href != './fr_sp_nav.html')
  {
   parent.nav1.location.href = './fr_sp_nav.html';
  }
  MakeNames('p');
  MakeMainTable(ueberschrift,namep,zurueck,davor,danach);
  MakeEmptyLine(15);
  MakeGreyBarPict('Standortinformation','kleinesbild.php?id=./standorte/'+name1+'&size=300&quality=50',6,name1big,300,300);
  MakeMainText(standortinfo+belinfo(beleuchtung_qm));
  MakeGreyBar('Format und Standzeit');
  MakeMainText('<li>'+MakeBHInfo(posterbreite,posterhoehe)+'</li>');
  MakeMainText(MakeBuchbarStatus(buchbar));
  MakeEmptyLine(40);
  MakeGreyBarPict('Schaltpreise & Zusatzinformationen','kleinesbild.php?id=./standorte/'+name2+'&size=300&quality=50',7,name2big,300,300);
  preisliste = '';
  if (netto > 0)
    {
      preisliste = preisliste + MakePosterCosts(netto,beleuchtung_qm,' f&uuml;r 4 Wochen');
    }
  if (netto1 > 0)
    {
      preisliste = preisliste + MakePosterCosts(netto1,beleuchtung_qm,' f&uuml;r 2 Wochen');
    }
  if (netto2 > 0)
    {
      preisliste = preisliste + MakePosterCosts(netto2,beleuchtung_qm,' pro Dekade');
    }
  MakeMainText(preisliste);
  MakeMainText(MakeProdCosts(produktion));
  MakeMainText('<i>'+besonderes+'</i>');
  if (beleuchtung_qm>0 && beleuchtung_qm<99)
  {
   MakeMainText(AEText);
  }
  else
  {
   MakeEmptyLine(35);
  }
  besitzer = FindeBesitzer(zurueck,name);

  MakeMainText(besitzer);
  MakeEmptyLine(20);
  document.write("<div class=\"page\"></div>");
  if( umfeld.length )
  {
	MakeGreyBarPict('Umfeldbeschreibung','kleinesbild.php?id=./standorte/'+name3+'&size=300&quality=50',4,name3big,300,300);
	MakeMainText('In unmittelbarer N&auml;he befinden sich:');
	MakeMainText(MakePOIList(umfeld));
	MakeEmptyLine(15);
  }
  else
  {
  	MakeGreyBarPict('Umgebungskarte','kleinesbild.php?id=./standorte/'+name3+'&size=300&quality=50',4,name3big,300,300);
	MakeEmptyLine(400);
  }
  EndMainTable();
  LastMod();
  }

function MakeListSite(bild,land,stadt,art,neu,tage,firma)
{
  if (art=='P') xtemp='p';
  if (art=='D') xtemp='d';
  if (art=='p') xtemp='p';
  if (art=='d') xtemp='d';
  MakeNames(xtemp);
  namep='nix';
  MakeMainTable(ueberschrift,namep,zurueck,davor,danach);
  MakeEmptyLine(15);
  if (art=='p' || art=='d')
  {
   ueberschriftg = 'Standorte';
  }
  else
  {
   ueberschriftg = 'Standorte';
  }
  if (bild == 'ohne')
  {
   MakeGreyBar(ueberschriftg,3);
  }
  else
  {
  MakeGreyBarPict(ueberschriftg,bild,3,'ohne',400,400);
  }
  MakeMainText(MakeList(land,stadt,art,neu,tage,firma));
  MakeEmptyLine(15);
  EndMainTable();
}

function MakeListSite2(bild,land,stadt,art,neu,tage,firma)
{
  if (art=='P') xtemp='p';
  if (art=='D') xtemp='d';
  if (art=='p') xtemp='p';
  if (art=='d') xtemp='d';
  MakeNames(xtemp);
  namep='nix';
  MakeMainTable(ueberschrift,namep,zurueck,davor,danach);
  MakeEmptyLine(15);
  if (art=='p' || art=='d')
  {
   ueberschriftg = 'Standorte';
  }
  else
  {
   ueberschriftg = 'Standorte';
  }
  if (bild == 'ohne')
  {
   MakeGreyBar(ueberschriftg,3);
  }
  else
  {
  MakeGreyBarPict(ueberschriftg,bild,3,'ohne',400,400);
  }
  MakeMainText(MakeList2(land,stadt,art,neu,tage,firma));
  MakeEmptyLine(15);
  EndMainTable();
}

function MakeSearchSite(bild)
{
  MakeNames('l');
  MakeMainTable(ueberschrift,namep,zurueck,davor,danach);
  MakeEmptyLine(15);
  if (bild == 'ohne')
  {
   MakeGreyBar('Suchkriterien',3);
  }
  else
  {
  MakeGreyBarPict('Suchkriterien',name1,3,name1big);
  }
  MakeMainText(MakeSearchForm());
  land='*';
  stadt='*';
  art='*';
  temp=WerteHolen('land')
  if (temp.length>0) land=temp;
  temp=WerteHolen('stadt')
  if (temp.length>0) stadt=temp;
  temp=WerteHolen('art')
  if (temp.length>0) art=temp;
  neu=90;
  tage=0;
  firma='*';
  MakeGreyBar('Ergebnis:',3);
  MakeMainText(MakeList(land,stadt,art,neu,tage,firma));
  MakeEmptyLine(15);
  EndMainTable();
}
