<!--/************************************************* (c) 2005 stadtkunst.ch design + code markus bucher - bildauschen.ch + claudebrauch.li*************************************************/// startList from alistapart.comstartList = function(){	if (document.all&&document.getElementById)	{		var 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;// ------------------------------------------------// EMAILfunction schreib(u, d) {	var l="\x6D\x61\x69";	l+="\x6C\x74\x6F\x3A"+u;	window.location=l+"\x40"+d;}function noSpam(user,domain){	window.location = "mailto:" + user + "@" + domain;	return false;}// UNBLURfunction unBlur(){	this.blur();}function addUnBlur(){	var links = document.getElementsByTagName('a');	for (var i=0; i<links.length; i++ ) {		links[i].onfocus = unBlur;	}}// ------------------------------------------------// Derived from the Bill Dortch code at http://www.hidaho.com/cookies/cookie.txtvar today = new Date();var expiry = new Date(today.getTime() + 24 * 60 * 60 * 1000);var expired = new Date(today.getTime() - 60 * 60 * 1000);var expiry_spez = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000);var count = GetCookie('FotoNr');	if (count == null) {	count = 1;}maxcount = 2;function next_img() {			document.images['img'].src = "img/intro/0" + eval(count) + ".jpg";			bild = new Image();			bild.src = "img/intro/0" + eval(count) + ".jpg";			bilder = new Image();			bilder.src = "img/intro/0" + eval(count) + ".jpg";			SetCookie("FotoNr", count, expiry);			}function countup() {	count++;	if (count > maxcount) {		count = 1;	}	next_img();}function countdown() {	count--;	if (count <= 0) {		count = 2;	}	next_img();}function getCookieVal (offset) {	var endstr = document.cookie.indexOf (";", offset);	if (endstr == -1) { endstr = document.cookie.length; }	return unescape(document.cookie.substring(offset, endstr));}function GetCookie (name) {	var arg = name + "=";	var alen = arg.length;	var clen = document.cookie.length;	var i = 0;	while (i < clen) {		var j = i + alen;		if (document.cookie.substring(i, j) == arg) {			return getCookieVal (j);			}		i = document.cookie.indexOf(" ", i) + 1;		if (i == 0) break; 		}	return null;}function DeleteCookie (name,path,domain) {	if (GetCookie(name)) {		document.cookie = name + "=" +		("; path=/") +		((domain) ? "; domain=" + domain : "") +		"; expires=Thu, 01-Jan-70 00:00:01 GMT";		}}function SetCookie (name,value,expires,path,domain,secure) {  document.cookie = name + "=" + escape (value) +    ((expires) ? "; expires=" + expires.toGMTString() : "") +    ("; path=/") +    ((domain) ? "; domain=" + domain : "") +    ((secure) ? "; secure" : "");}// EBENEN EIN-/AUSBLENDENfunction xGetElementById(e) {  if(typeof(e)!='string') return e;  if(document.getElementById) e=document.getElementById(e);  else if(document.all) e=document.all[e];  else e=null;  return e;}function xDef() {  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}  return true;}function xVisibility(e, bShow){  if(!(e=xGetElementById(e))) return;  if(e.style && xDef(e.style.visibility)) {    if (xDef(bShow)) e.style.visibility = bShow ? 'visible' : 'hidden';    return e.style.visibility;  }  return null; // or return an empty string ???}function xShow(e) {	xVisibility("a", 0);	xVisibility("b", 0);	xVisibility("c", 0);	xVisibility("d", 0);	xVisibility("e", 0);	xVisibility("f", 0);	xVisibility("g", 0);	xVisibility("h", 0);	xVisibility(e, 1);}function xHide(e) {	if (e == 'x')	{		xVisibility("a", 0);		xVisibility("b", 0);		xVisibility("c", 0);		xVisibility("d", 0);		xVisibility("f", 0);		xVisibility("g", 0);		xVisibility("h", 0);	}	else	{	xVisibility(e, 0);	}}function cShow(e) {	xVisibility(e, 1);}function cHide(e) {	xVisibility(e, 0);}function ShowHide(e) {	var x;	ele = xGetElementById(e);	x = document.getElementById(e).style.visibility;	if(x=="hidden"){	ele.style.visibility='visible';	}else if(x=="visible"){	ele.style.visibility='hidden';	}}function cHome() {	DeleteCookie('fotolayer');	SetCookie('fotolayer', 'aus', expired);}function cFoto() {	xHide('newsletter');	xHide('foto');	SetCookie('fotolayer', 'aus', expiry);}function FotoZeigen() {	DeleteCookie('fotolayer');	SetCookie('fotolayer', 'aus', expired);}function FotoWeg(Nr) {	xHide('foto'+ Nr);	SetCookie('fotolayer', 'aus', expiry);	SetCookie('fotonr', Nr, expiry);}function FotoNr(Nr) {	SetCookie('fotonr', Nr, expiry);}// EMAILfunction MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_changeProp(objName,x,theProp,theValue) { //v6.0  var obj = MM_findObj(objName);  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){    if (theValue == true || theValue == false)      eval("obj."+theProp+"="+theValue);    else eval("obj."+theProp+"='"+theValue+"'");  }}function decision(message, url){	if(confirm(message)) location.href = url;}function MM_setTextOfTextfield(objName,x,newText) { //v3.0  var obj = MM_findObj(objName); if (obj) obj.value = newText;}function setTextof(objName,x,newText) { //v3.0	var obj = MM_findObj(objName);//	if (obj) obj.value = newText;//	if (obj) if(obj.value == objName) { obj.value = newText; }	if (obj) if(obj.value == '' || obj.value == 'bitte E-Mail eintragen') { obj.value = newText; }}function setText(objName) {	var obj = MM_findObj(objName);	if (obj) if(obj.value == "") {	obj.value = ''; }}function CheckSenden() {value=document.forms[0].elements['newsemail'].value;if (value == "" || value == "" || value == "bitte E-Mail eintragen")	{        // alert("Bitte E-Mail eintragen");        document.forms[0].elements['newsemail'].value = "bitte E-Mail eintragen";    }    else	{		document.Formular.schicken.value='schicken';		document.Formular.submit();		return true;    }}function CheckEintragen() {	document.Eintrag.schicken.value='schicken';	document.Eintrag.submit();	return true;}function textLeer(objName,x,newText) { //v3.0	var obj = MM_findObj(objName);	if (objName=='kommentar_name')	{		test = 'Vor-/Nachname*';	}	else if (objName=='kommentar_ort')	{		test = 'Ort';	}	else if (objName=='kommentar_email')	{		test = 'E-Mail';	}	else if (objName=='kommentar_url')	{		test = 'Url';	}	else if (objName=='kommentar_titel')	{		test = 'Titel';	}	else if (objName=='kommentar_text')	{		test = 'Text*';	}	if (obj) if(obj.value == '' || obj.value == test || obj.value == 'Vor-/Nachname* - bitte eintragen' || obj.value == 'Text* - bitte eintragen') { obj.value = newText; }}function textCheck(objName) { //v3.0	var obj = MM_findObj(objName);	if (objName=='kommentar_name')	{		test = 'Vor-/Nachname*';	}	else if (objName=='kommentar_ort')	{		test = 'Ort';	}	else if (objName=='kommentar_email')	{		test = 'E-Mail';	}	else if (objName=='kommentar_url')	{		test = 'Url';	}	else if (objName=='kommentar_titel')	{		test = 'Titel';	}	else if (objName=='kommentar_text')	{		test = 'Text*';	}	if (obj) if(obj.value == '' || obj.value == test || obj.value == 'Vor-/Nachname* - bitte eintragen' || obj.value == 'Text* - bitte eintragen') { obj.value = test; }}function open_popup(src,size_w,size_h,win_id) {/*	// adapt window size for safari	if ( navigator.userAgent.toLowerCase().indexOf('safari') >= 0 ) {		size_w = size_w -2;		size_h = size_h -1;	}	top_x  = 10;	left_y = 5;*/	// top_x  = (screen.availHeight - size_h)/2;	// left_y = (screen.availWidth - size_w)/2;	top_x  = 10;	left_y = 10;	Popup=window.open(src,win_id,"width=" + size_w + ",height=" + size_h + ",top=" + top_x + ",left=" + left_y + ",toolbar=no,menubar=no,status=no,scrollbars=auto,resizable=yes");	Popup.focus();}function search(){	document.forms["search"].submit(); }function fokuss(){	document.search.string.focus();}//-->