//---------------------------------------------------------------
// 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="/zeitwerk/lay-ns4.css" rel=stylesheet>'); }
else				{ document.write('<link href="/zeitwerk/lay-ms.css"  rel=stylesheet>'); }

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

function goPage()
{
  var pagInd, pagStr, args;
  args = goPage.arguments;
  pagInd = args[0];
  if(pagInd) { parent.location = "http://www.zeitwerk.com" + pagInd.substr(2); }	// 24x...
  document.menu.reset();
}

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

function writeMenu(set)
{
  set = ".." + set.substr(11);	// 24x...

  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/pdf.html"');			if(set == "../produkte/pdf.html")			{ document.write(' selected'); } document.write('>PDF-Generatoren</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 = "../aktualizer/login.html"');	    if(set == "../aktualizer/login.html")		{ document.write(' selected'); } document.write('>Login</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/angebot.html"');	if(set == "../24open/angebot.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/angebot.html"');	if(set == "../webspace/angebot.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 technote(techId)
{
  var techStr = "../support/" + techId + "p.htm";
  TechWin = window.open(techStr, "zwtechpan", "width=500,height=360,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no,directories=no");
}

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

function rate(rateInd) {
  var rateStr = "http://www.zeitwerk.com/cgi-bin/rater?rate=" + rateInd + "&page=" + parent.location;
  RateWin = window.open(rateStr, "zwrate", "width=360,height=260,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no,directories=no");
}

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

function wrRater() {
  document.open("text/plain");

  document.writeln('<table border="0" cellspacing="1" width="140" cellpadding="0" bgcolor="#333333">');
  document.writeln('<tr><td bgcolor="#CCCCCC"><span class="mtits">&nbsp;<img src="../pic/bu1s.gif" width="16" height="8">IHRE BEWERTUNG: </span></td></tr>');
  document.writeln('<td bgcolor="#DDDDDD" align="center" width="100">');
  document.write('<a href="javascript:rate(2);"><img src="../pic/rat2.gif" width="16" height="16" border="0" alt="Sehr gut!"></a>');
  document.write('<img src="../pic/b.gif" width="10" height="10">');
  document.write('<a href="javascript:rate(1);"><img src="../pic/rat1.gif" width="16" height="16" alt="Mittelm&auml;ssig" border="0"></a>');
  document.write('<img src="../pic/b.gif" width="10" height="10">');
  document.write('<a href="javascript:rate(0);"><img src="../pic/rat0.gif" width="16" height="16" alt="Schlecht!" border="0"></a>');
  document.write('</td></tr></table><br><img src="../pic/b.gif" width="10" height="4">');

  document.close(); 
}

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

function openPan(purl)
{
  var techStr = "../panel/" + purl + ".html";
  var zwpWin = window.open(techStr, "zwp" + purl, "width=240,height=160,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no,location=no,directories=no");
}

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

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

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

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(); 
}

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

