//---------------------------------------------------------------
// Copyright 2002 by zeitwerk GmbH CH-Basel
//---------------------------------------------------------------

var bro;
var mac;
var pag;

if (navigator.appName == "Netscape") {
  if (parseInt(navigator.appVersion) >= 5 )		 { bro = 21; }
  else if (parseInt(navigator.appVersion) >= 4 ) { bro = 11; }
  else											 { bro = 1; }
}
else if (navigator.appName == "Microsoft Internet Explorer") {
  if (parseInt(navigator.appVersion) >= 5 )		 { bro = 22; }
  else if (parseInt(navigator.appVersion) >= 4 ) { bro = 12; }
  else											 { bro = 2; }
}
else if (navigator.appName == "Opera") {
  if (parseInt(navigator.appVersion) >= 5 )		 { bro = 23; }
  else if (parseInt(navigator.appVersion) >= 4 ) { bro = 13; }
  else											 { bro = 3; }
}
else											 { bro = 0; }

if (navigator.appVersion.indexOf('Mac') == -1)   { mac = false; } else { mac = false; }


//if(bro == 11)		{ document.write('<link href="http://www.zeitwerk.com/lay-ns4.css" rel=stylesheet>'); }
////else if(bro == 12){ document.write('<link href="http://www.zeitwerk.com/layout.css"  rel=stylesheet>'); }
//else				{ document.write('<link href="http://www.zeitwerk.com/lay-ms.css"  rel=stylesheet>'); }

if(bro == 11)		{ document.write('<link href="../lay-ns4.css" rel=stylesheet>'); }
else				{ document.write('<link href="../lay-ms.css"  rel=stylesheet>'); }

//---------------------------------------------------------------

function goPage()
{
  var pagInd, pagStr, args;
  args = goPage.arguments;
  pagInd = args[0];
  if(pagInd) { parent.location = pagInd; }
  document.menu.reset();
}

//---------------------------------------------------------------


//---------------------------------------------------------------

function writeMenu(set)
{
  pag = set;

//  alert ("Sie haben den Browser " + bro + ", jawohl, und die Seite " + set + "\nFahren Sie einen Mac? " + mac);

  if(bro >= 12) {
    document.open("text/plain");
    document.write('<select class="inp1" name="page" onChange="goPage(document.menu.page.options[document.menu.page.selectedIndex].value)" width="140" style="width:140px">');
    document.writeln('<option value = "">------------------------</option>');
    document.writeln('<option value = "../info/index.html"');			if(set == "../info/index.html")	 			{ document.write(' selected'); } document.write('>H O M E / I N F O S</option>');
    document.writeln('<option value = "../info/sitemap.html"');			if(set == "../info/sitemap.html")			{ document.write(' selected'); } document.write('>Sitemap</option>');
    document.writeln('<option value = "../info/projekte.html"');		if(set == "../info/projekte.html")			{ document.write(' selected'); } document.write('>Projekte</option>');
    document.writeln('<option value = "../info/kontakt.html"');			if(set == "../info/kontakt.html")			{ document.write(' selected'); } document.write('>Kontakt</option>');
    document.writeln('<option value = "../info/impressum.html"');		if(set == "../info/impressum.html")			{ document.write(' selected'); } document.write('>Impressum</option>');
    document.writeln('<option value = "../info/privacy.html"');			if(set == "../info/privacy.html")			{ document.write(' selected'); } document.write('>Datenschutz</option>');
    document.writeln('<option value = "../info/agb.html"');				if(set == "../info/agb.html")				{ document.write(' selected'); } document.write('>AGB</option>');
    document.writeln('<option value = "../info/reseller.html"');		if(set == "../info/reseller.html")			{ document.write(' selected'); } document.write('>Reseller</option>');

    document.writeln('<option value = "">------------------------</option>');
    document.writeln('<option value = "../webdesign/index.html"');		if(set == "../webdesign/index.html")		{ document.write(' selected'); } document.write('>W E B D E S I G N</option>');
    document.writeln('<option value = "../webdesign/multimedia.html"');	if(set == "../webdesign/multimedia.html")	{ document.write(' selected'); } document.write('>Multimedia</option>');
    document.writeln('<option value = "../webdesign/flash.html"');		if(set == "../webdesign/flash.html")		{ document.write(' selected'); } document.write('>Flash</option>');
    document.writeln('<option value = "../webdesign/panoramen.html"');	if(set == "../webdesign/panoramen.html")	{ document.write(' selected'); } document.write('>Panoramen</option>');
    document.writeln('<option value = "../webdesign/dhtml.html"');		if(set == "../webdesign/dhtml.html")		{ document.write(' selected'); } document.write('>DHTML</option>');
    document.writeln('<option value = "../webdesign/navigation.html"');	if(set == "../webdesign/navigation.html")	{ document.write(' selected'); } document.write('>Navigation</option>');

    document.writeln('<option value = "">------------------------</option>');
    document.writeln('<option value = "../produkte/index.html"');  		if(set == "../produkte/index.html")		 	{ document.write(' selected'); } document.write('>P R O D U K T E</option>');
    document.writeln('<option value = "../24open/index.html"');			if(set == "../24open/index.html")	 		{ document.write(' selected'); } document.write('>24open.ch-Mietshops</option>');
    document.writeln('<option value = "../aktualizer/index.html"');		if(set == "../aktualizer/index.html") 		{ document.write(' selected'); } document.write('>Aktualizer</option>');
    document.writeln('<option value = "../produkte/applikationen.html"'); if(set == "../produkte/applikationen.html")	{ document.write(' selected'); } document.write('>Applikationen</option>');
    document.writeln('<option value = "../produkte/xml.html"');			if(set == "../produkte/xml.html")		 	{ document.write(' selected'); } document.write('>XML</option>');

    document.writeln('<option value = "">------------------------</option>');
    document.writeln('<option value = "../aktualizer/index.html"');		if(set == "../aktualizer/index.html")		{ document.write(' selected'); } document.write('>A K T U A L I Z E R</option>');
    document.writeln('<option value = "../aktualizer/funktionen.html"');if(set == "../aktualizer/funktionen.html")	{ document.write(' selected'); } document.write('>Funktionen</option>');
    document.writeln('<option value = "../aktualizer/angebot.html"');	if(set == "../aktualizer/angebot.html")		{ document.write(' selected'); } document.write('>Typen + Preise</option>');
    document.writeln('<option value = "../aktualizer/demo.html"');	    if(set == "../aktualizer/demo.html")		{ document.write(' selected'); } document.write('>Demo</option>');
    document.writeln('<option value = "https://ssl.24x.ch/cgi-bin/sign?art=3&ref=www.zeitwerk.com/aktualizer/index.html"'); document.write('>Anmeldung</option>');

    document.writeln('<option value = "">------------------------</option>');
    document.writeln('<option value = "../24open/index.html"');		if(set == "../24open/index.html")				{ document.write(' selected'); } document.write('>2 4 O P E N . C H</option>');
    document.writeln('<option value = "../24open/editor.html"');	if(set == "../24open/editor.html")				{ document.write(' selected'); } document.write('>Editor</option>');
    document.writeln('<option value = "../24open/angebote.html"');	if(set == "../24open/angebote.html")			{ document.write(' selected'); } document.write('>Typen + Preise</option>');
    document.writeln('<option value = "https://ssl.24x.ch/cgi-bin/sign?art=2&ref=www.zeitwerk.com/24open/index.html"'); document.write('>Anmeldung</option>');


    document.writeln('<option value = "">------------------------</option>');
    document.writeln('<option value = "../webspace/index.html"');		if(set == "../webspace/index.html")			{ document.write(' selected'); } document.write('>W E B S P A C E</option>');
    document.writeln('<option value = "../webspace/angebote.html"');	if(set == "../webspace/angebote.html")		{ document.write(' selected'); } document.write('>Webspace-Angebote</option>');
    document.writeln('<option value = "https://ssl.24x.ch/cgi-bin/sign?art=4&ref=www.zeitwerk.com/webspace/index.html"'); document.write('>Anmeldung</option>');

    document.writeln('<option value = "">------------------------</option>');
    document.writeln('<option value = "../support/index.html"');		if(set == "../support/index.html")			{ document.write(' selected'); } document.write('>S U P P O R T</option>');
    document.writeln('<option value = "../support/kis.html"');			if(set == "../support/kis.html")			{ document.write(' selected'); } document.write('>KIS</option>');
    document.writeln('<option value = "../support/ind-allgemein.html"');if(set == "../support/ind-allgemein.html")	{ document.write(' selected'); } document.write('>Allgemein</option>');
    document.writeln('<option value = "../support/ind-webspace.html"');	if(set == "../support/ind-webspace.html")	{ document.write(' selected'); } document.write('>Webspace</option>');
    document.writeln('<option value = "../support/ind-mietshop.html"');	if(set == "../support/ind-mietshop.html")	{ document.write(' selected'); } document.write('>Mietshops/24open.ch</option>');
    document.writeln('<option value = "../support/ind-aktualizer.html"'); if(set == "../support/ind-aktualizer.html") { document.write(' selected'); } document.write('>Aktualizer</option>');
    document.writeln('<option value = "../support/news.html"');			if(set == "../support/news.html")			{ document.write(' selected'); } document.write('>News</option>');
    document.writeln('<option value = "../support/downloads.html"');	if(set == "../support/downloads.html")		{ document.write(' selected'); } document.write('>Downloads</option>');
    document.writeln('<option value = "../support/links.html"');		if(set == "../support/links.html")			{ document.write(' selected'); } document.write('>Links</option>');
    document.writeln('<option value = "">------------------------</option>');
    document.write('</select>');
    document.close(); 
  }
//  else if(bro == 11) { document.write('<img src="../pic/bu7.gif" width="17" height="16">'); }
}

//---------------------------------------------------------------

//function Hilfe(helpUrl)
//{
//  var helpStr = "../hilfe/" + helpUrl;
//  HelpWin = window.open(helpStr, "helppan", "width=360,height=260,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no,directories=no");
//  if(HelpWin.name == 'helppan') { HelpWin.focus(); }
//}

//---------------------------------------------------------------

function technote(techId)
{
  var techStr = "../support/" + techId + "p.htm";
  TechWin = window.open(techStr, "zwtechpan", "width=360,height=260,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no,directories=no");
}

//---------------------------------------------------------------

function openPan(adresse)
{

 PanelWin = window.open("../bau/" + adresse + ".html", "panelwin","width=700,height=600,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no,location=no,directories=no");
 PanelWin.moveTo((screen.width/2)-200,(screen.height/2)-200); 
}

//---------------------------------------------------------------

function Panel(panUrl,panX,panY)
{
  var panStr;
  if(panX == "") { panX = 360; }
  if(panY == "") { panY = 360; }
  panStr = "width=" + panX + ",height=" + panY + ",resizable=no,scrollbars=no,toolbar=no,status=no,menubar=yes,location=no,directories=no";
  PanWin = window.open(panUrl, "zwpanel", panStr);
//  if(PanWin.name == 'zwpanel') { PanWin.focus(); }
}

//---------------------------------------------------------------

function BigPanel(helpUrl)
{
  BigWin = window.open(helpUrl, "bigpan", "width=640,height=400,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no,directories=no");
  if(BigWin.name == 'bigpan') { BigWin.focus(); }
}

//---------------------------------------------------------------

function checkFlash(swfURL, picURL, picB, picH, bgCOL, goURL, goTARGET)
{
  var plugin = 'Shockwave Flash';

  if ((navigator.plugins && navigator.plugins[plugin]) ||
      (navigator.appName.indexOf('Microsoft') != -1 &&
       navigator.appVersion.indexOf('Mac') == -1 &&
       navigator.appVersion.indexOf('3.1') == -1))
  {
    document.open("text/plain");
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=intro WIDTH=' + picB + ' HEIGHT=' + picH + '>');
    document.writeln('<param name=movie value="' + swfURL + '">');
    document.writeln('<param name="SCALE" value="noborder">');
    document.writeln('<param name="quality" value=high>');
    document.writeln('<param name="BGCOLOR" value="' + bgCOL + '">');
    document.writeln('<embed src="' + swfURL + '" quality="high" scale="noborder"  width=' + picB + ' height=' + picH + ' bgcolor="' + bgCOL + '" type="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
    document.write('</embed></object>'); 
    document.close(); 
  }
  else
  {
    if(goTARGET == "") { goTARGET="_this"; } 
    if(goURL) { document.writeln('<a href="' + goURL + '" target="' + goTARGET + '">'); }
    document.writeln('<img src="' + picURL + '" width="' + picB + '" height="' + picH + '" border="0">');
    if(goURL) { document.writeln('</a>'); }

  }
}

//---------------------------------------------------------------

function writeLink(urlA, urlB)
{
  var urlC = '<a href="mailto:' + urlA + '@' + urlB + '" class="page">' + urlA + '@' + urlB + '</a>';
  document.open("text/plain");
  document.write(urlC);
  document.close(); 
}

//---------------------------------------------------------------
//---------------------------------------------------------------
