<!--

//styleswitcher///////////////////////////////////////////////////////////
if(document.cookie.indexOf('style=1')>=0) document.write('<link rel="stylesheet" type="text/css" href="../css/standard+.css" />\n'); 
else if (document.cookie.indexOf('style=2')>=0) document.write('<link rel="stylesheet" type="text/css" href="../css/standard++.css" />\n'); 
else document.write('<link rel="stylesheet" type="text/css" href="../css/standard.css" />\n'); 

function auswahl (wahl) {
   var expdate = new Date();
   expdate.setTime(expdate.getTime() + (1000*3600*24*365));
   document.cookie = 'style=' + wahl + '; expires=' + expdate.toGMTString() + '; path=/';
   self.location = self.location;
}

//Aufruf

//<form action="">
//    <input type="button" value="Standarddesign" onClick="auswahl(0);">
//    <br>
//    <input type="button" value="Seriöses Design" onClick="auswahl(1);">
//    <br>
//    <input type="button" value="Buntes Design" onClick="auswahl(2);">
//  </form>


//Menuesteuerung///////////////////////////////////////////////////////////

<!--//--><![CDATA[//><!--
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

//--><!]]>

//highlight///////////////////////////////////////////////////////////
function high(which2)
{
theobject=which2;
which2.filters.alpha.opacity=25;
highlighting=setInterval("highlightit(theobject)",1)
}
function low(which2)
{
clearInterval(highlighting)
which2.filters.alpha.opacity=100
}
function highlightit(cur2)
{
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=2
else if (window.highlighting)
clearInterval(highlighting)
}



// Random hp image

function randomImg() {
        var thePics = new Array()

        thePics[1] = "electric.jpg"
        thePics[2] = "nantucket.jpg"
        thePics[3] = "firerings.jpg"
        thePics[4] = "ice.jpg"
        thePics[6] = "robot.jpg"
        thePics[7] = "stormy_sky.jpg"
        thePics[8] = "az_road.jpg"
        thePics[9] = "train_ride.jpg"
        thePics[10] = "wheat_field.jpg"
        thePics[11] = "birch.jpg"
        thePics[11] = "cactus.jpg"

        var rn = Math.floor(Math.random() * thePics.length)
        if (rn == 0) {
          rn = 1
        }
        document.write("<img src=\"/photos/hp/"+thePics[rn]+"\" width=\"194\" height=\"146\" border=\"0\" />")
}

// MT functions

function OpenTrackback (c) {
    window.open(c,
                    'trackback',
                    'width=480,height=480,scrollbars=yes,status=yes');
}

var HOST = 'www.u.com';

// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.

function setCookie (name, value, expires, path, domain, secure) {
    var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
    document.cookie = curCookie;
}

function getCookie (name) {
    var prefix = name + '=';
    var c = document.cookie;
    var nullstring = '';
    var cookieStartIndex = c.indexOf(prefix);
    if (cookieStartIndex == -1)
        return nullstring;
    var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
    if (cookieEndIndex == -1)
        cookieEndIndex = c.length;
    return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}

function deleteCookie (name, path, domain) {
    if (getCookie(name))
        document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}

function fixDate (date) {
    var base = new Date(0);
    var skew = base.getTime();
    if (skew > 0)
        date.setTime(date.getTime() - skew);
}

function rememberMe (f) {
    var now = new Date();
    fixDate(now);
    now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
    setCookie('mtcmtauth', f.author.value, now, '', HOST, '');
    setCookie('mtcmtmail', f.email.value, now, '', HOST, '');
    setCookie('mtcmthome', f.url.value, now, '', HOST, '');
}

function forgetMe (f) {
    deleteCookie('mtcmtmail', '', HOST);
    deleteCookie('mtcmthome', '', HOST);
    deleteCookie('mtcmtauth', '', HOST);
    f.email.value = '';
    f.author.value = '';
    f.url.value = '';
}


function chkFormular()
{
 if(document.Formular.Name.value == "")  {
   alert("Bitte geben Sie Ihren Namen ein!");
   document.Formular.Name.focus();
   return false;
  }
   if(document.Formular.Ort.value == "")  {
   alert("Bitte geben Sie Ihren Wohnort ein!");
   document.Formular.Ort.focus();
   return false;
  }
  if(document.Formular.Email.value == "") {
   alert("Bitte geben Sie Ihre E-Mail-Adresse ein!");
   document.Formular.Email.focus();
   return false;
  }
} 
  // Gesuch
  
function chkgesuch()
{
  if(document.gesuch.Name.value == "")  {
   alert("Bitte geben Sie Ihren Namen ein!");
   document.gesuch.Name.focus();
   return false;
  }
  if(document.gesuch.Vorname.value == "")  {
   alert("Bitte geben Sie Ihren Vornamen ein!");
   document.gesuch.Vorname.focus();
   return false;
  }
 
   if(document.gesuch.Strasse.value == "")  {
   alert("Bitte geben Sie Ihre Strasse ein!");
   document.gesuch.Strasse.focus();
   return false;
  }
  
  if(document.gesuch.Nr.value == "")  {
   alert("Bitte geben Sie Ihre Hausnummer ein!");
   document.gesuch.Nr.focus();
   return false;
  }
  if(document.gesuch.PLZ.value == "")  {
   alert("Bitte geben Sie Ihre Postleitzahl ein!");
   document.gesuch.PLZ.focus();
   return false;
  }
  
   if(document.gesuch.Ort.value == "")  {
   alert("Bitte geben Sie Ihren Wohnort ein!");
   document.gesuch.Ort.focus();
   return false;
  }
  if(document.gesuch.Telefon.value == "") {
   alert("Bitte geben Sie Ihre Telefonnummer ein!");
   document.gesuch.Telefon.focus();
   return false;
  }
  
  if(document.gesuch.Email.value == "") {
   alert("Bitte geben Sie Ihre E-Mail-Adresse ein!");
   document.gesuch.Email.focus();
   return false;
  }
  
  if(document.gesuch.Uhrenmarke.value == "") {
   alert("Bitte geben Sie eine Uhrenmarke ein!");
   document.gesuch.Uhrenmarke.focus();
   return false;
  }
  if(document.gesuch.Modell.value == "") {
   alert("Bitte geben Sie Uhren-Modell ein!");
   document.gesuch.Modell.focus();
   return false;
  }
  if(document.gesuch.Art.value == "") {
   alert("Bitte geben Sie die Art der Uhr ein!");
   document.gesuch.Art.focus();
   return false;
  }
  
  if(document.gesuch.checkbox.value == "") {
   alert("Bitte geben Sie Ihr Einverständnis zur Datenübermittlung!");
   document.gesuch.checkbox.focus();
   return false;
  }
  
  
}



//-->