var str;
var bUseByline;
var changed = false;

function AddProduct(site, product, byline, page)
{
   str += "<option value='" + site + page + "'>" + product;
   if (bUseByLine) str += " - " + byline;
}

function AddNCHSwiftProduct(product, byline, page)
{
   AddProduct("http://www.nch.com.au/", product, byline, page);
}

function AddNCHSoftwareProduct(product, byline, page)
{
   AddProduct("http://www.nchsoftware.com/", product, byline, page);
}

function SetProductList(divid, usebyline)
{
   str;
   bUseByLine = usebyline;
   str = "<select id='selectcat' onchange='selectChanged();' onclick='changed = true;' onkeydown='selectKeyed(event);' ";
   if (!bUseByLine) { str += " style='width: 260px;'";}
   str += "><option selected>Produkt wählen";
   AddNCHSwiftProduct("Axon", "Virtuelle Büro-Telefonanlage", "pbx/de/index.html");
   AddNCHSoftwareProduct("Barillo", "Barcode-Generierung", "barcode/de/index.html");
   AddNCHSoftwareProduct("Bolt PDF", "PDF-Drucker", "pdfprinter/de/index.html");
   AddNCHSoftwareProduct("BroadCam", "Videostreaming", "broadcam/de/index.html");
   AddNCHSwiftProduct("BroadWave", "Audiostreaming", "streaming/de/index.html");
   AddNCHSoftwareProduct("CardWorks", "Visitenkartensoftware", "businesscard/de/index.html");
   AddNCHSoftwareProduct("Classic FTP", "FTP-Uploader", "classic/de/index.html");
   AddNCHSoftwareProduct("Copper", "Point-of-Sale-System", "point-of-sale/de/index.html");
   AddNCHSwiftProduct("Crescendo", "Notensatzeditor", "notation/de/index.html");
   AddNCHSoftwareProduct("Debut", "Videorekorder", "capture/de/index.html");
   AddNCHSoftwareProduct("DesktopNow", "Remotezugriff auf Computer", "remotedesktop/de/index.html");
   AddNCHSwiftProduct("DialDictate", "Diktate via Telefon", "dialdictate/de/index.html");
   AddNCHSoftwareProduct("Disketch", "CD-Beschriftungssoftware", "cdlabeler/de/index.html");
   AddNCHSoftwareProduct("Doxillion", "Dokumentkonverter", "documentconvert/de/index.html")
   AddNCHSoftwareProduct("Express Accounts", "Buchhaltung leicht gemacht", "accounting/de/index.html");
   AddNCHSwiftProduct("Express Burn", "CD-/DVD-/Blu-Ray-Brenner", "burn/de/index.html");
   AddNCHSwiftProduct("Express Delegate", "Diktatverwaltung", "delegate/de/index.html");
   AddNCHSwiftProduct("Express Dictate", "Diktatrekorder", "express/de/index.html");
   AddNCHSoftwareProduct("Express Invoice", "Fakturasoftware", "invoice/de/index.html");
   AddNCHSwiftProduct("Express Rip", "CD-Ripper", "rip/de/index.html");
   AddNCHSwiftProduct("Express Scribe", "Transkriptionssoftware", "scribe/de/index.html");
   AddNCHSwiftProduct("Express Talk", "VoIP-Softphone", "talk/de/index.html");
   AddNCHSoftwareProduct("Express Zip", "Datei-Komprimierungssoftware", "zip/de/index.html");
   AddNCHSoftwareProduct("EyeLine", "Videoüberwachungssoftware", "surveillance/de/index.html");
   AddNCHSwiftProduct("FastFox", "Auto-Texterweiterung", "fastfox/de/index.html");
   AddNCHSoftwareProduct("FileFort", "Sicherungssoftware", "backup/de/index.html");
   AddNCHSoftwareProduct("FlexiServer", "Mitarbeiterverwaltung", "flexi/index.html");
   AddNCHSoftwareProduct("Fling", "Automatischer FTP-Uploader", "fling/de/index.html");
   AddNCHSwiftProduct("Golden Records", "Vinyl auf CD Konverter", "golden/de/index.html");
   AddNCHSoftwareProduct("GoldenVideos", "VHS auf DVD Konverter", "goldenvideos/de/index.html");
   AddNCHSoftwareProduct("HourGuard", "Stundennachweise erstellen", "timesheet/de/index.html");
   AddNCHSwiftProduct("I-Producer2", "Warteschleifenansagen erstellen", "iproducer/de/index.html");
   AddNCHSwiftProduct("IMS", "Warteschleifenansagen-Player", "ims/de/index.html");
   AddNCHSoftwareProduct("Inventoria", "Bestandssoftware", "inventory/de/index.html");
   AddNCHSwiftProduct("IVM", "Anrufverwaltung", "ivm/de/index.html");
   AddNCHSoftwareProduct("KeyBlaze", "Tippbegleitung", "typingtutor/de/index.html");
   AddNCHSoftwareProduct("Lightning PDF", "PDF-Drucker", "pdfprinter/de/index.html");
   AddNCHSoftwareProduct("MEO", "Ver-/Entschlüsselungssoftware ", "encrypt/de/index.html");
   AddNCHSwiftProduct("MixPad", "Audiodatei-Mixer", "mixpad/de/index.html");
   AddNCHSwiftProduct("MSRS", "Gerichts- und Konferenzrekorder", "msrs/de/index.html");
   AddNCHSoftwareProduct("Orion", "Dateiwiederherstellung", "data-recovery/de/index.html");
   AddNCHSwiftProduct("Pedable", "Fußpedalsoftware", "footpedal/index.html");
   AddNCHSoftwareProduct("PhotoPad", "Fotoeditor", "photoeditor/de/index.html");
   AddNCHSoftwareProduct("PhotoStage", "Diashow-Creator", "slideshow/de/index.html");
   AddNCHSwiftProduct("PitchPerfect", "Gitarrenstimmer", "tuner/de/index.html");
   AddNCHSoftwareProduct("Pixillion", "Bilddatei-Konverter", "imageconverter/de/index.html");
   AddNCHSwiftProduct("Pocket Dictate", "Diktatsystem für Pocket PC", "pocket/index.html");
   AddNCHSoftwareProduct("Prism", "Videodatei-Konverter", "prism/de/index.html");
   AddNCHSwiftProduct("Quorum", "Telefonkonferenz-Software", "conference/de/index.html");
   AddNCHSwiftProduct("RecordPad", "Audiorekorder", "recordpad/de/index.html");
   AddNCHSoftwareProduct("Reflect", "CRM Kundenbeziehungssoftware", "crm/de/index.html");
   AddNCHSwiftProduct("SoundTap", "Audiostream-Rekorder", "soundtap/de/index.html");
   AddNCHSwiftProduct("Stamp", "ID3-Tageditor", "tageditor/de/index.html");
   AddNCHSwiftProduct("Switch", "Audiodatei-Konverter", "switch/de/index.html");
   AddNCHSwiftProduct("TempoPerfect", "Taktmesser-Software", "metronome/de/index.html");
   AddNCHSwiftProduct("Tone Generator", "Audiotestton-Generator", "tonegen/de/index.html");
   AddNCHSwiftProduct("TRx", "Einzelanschluss-Telefonrekorder", "trx/de/index.html");
   AddNCHSwiftProduct("TwelveKeys", "Transpositionsassistent", "twelvekeys/de/index.html");
   AddNCHSoftwareProduct("VideoPad", "Video-Bearbeitungssoftware", "videopad/de/index.html");
   AddNCHSwiftProduct("Verbose", "Text-zu-Sprache Konverter", "verbose/de/index.html");
   AddNCHSoftwareProduct("Verity", "Software zur Kinderkontrolle", "childmonitoring/de/index.html");
   AddNCHSoftwareProduct("Voxal", "Sprachwandler", "voicechanger/index.html");
   AddNCHSwiftProduct("VRS", "Mehrkanal-Sprachrekorder", "vrs/de/index.html");
   AddNCHSoftwareProduct("Warp", "PC-Beschleuniger", "registry-cleaner/de/index.html");
   AddNCHSwiftProduct("WavePad", "Audio-Bearbeitungssoftware", "wavepad/de/index.html");
   AddNCHSwiftProduct("Web Dictate", "Diktate via Internet", "webdictate/de/index.html");
   AddNCHSwiftProduct("Zulu", "DJ-Software", "dj/de/index.html");

   str += "</select>";
   document.getElementById(divid).innerHTML = str;
}

function selectChanged()
{
   if ((navigator.userAgent.indexOf("Safari") != -1) || changed) window.location = document.getElementById('selectcat').value;
}

function selectKeyed(e)
{
   var theEvent = e ? e : event;
   if (theEvent.keyCode == '13') {
      changed = true;
      selectChanged();
   } else changed = false;
}
