/***************************
File generated by shrinker.ch
DateTime: 2011-07-13, 17:05:40
File list:
	* http://www.zoo.ch/jscript/global/loader.js
	* http://www.zoo.ch/jscript/global/global.js
	* http://www.zoo.ch/jscript/global/navigation/default.js
	* http://www.zoo.ch/jscript/global/form/default.js
	* http://www.zoo.ch/jscript/custom/include.js
*****************************/
cms3Loader=[];function firecms3Loader(){for(var c=0;c<cms3Loader.length;c++)cms3Loader[c]()}function addLoadEvent(c){window.onload=firecms3Loader;for(var d=false,e=0;e<cms3Loader.length;e++)if(cms3Loader[e]==c){d=true;break}if(!d)if(addLoadEvent.arguments.length>1&&addLoadEvent.arguments[1]=="top")if(navigator.appVersion.indexOf("MSIE 5.0")!=-1)cms3Loader=Array(c).concat(cms3Loader);else cms3Loader.unshift(c);else cms3Loader[cms3Loader.length]=c}var isOpen=null,isWindow=null;
function decryptData(c){var d=0,e="";c=unescape(c);for(var b=0;b<c.length;b++){d=c.charCodeAt(b);if(d>=8364)d=128;e+=String.fromCharCode(d-3)}return e}function sendData(c){if(c!="")location.href=decryptData(c)}function goTop(){var c=y=0;if(goTop.arguments.length>0)c=goTop.arguments[0];if(goTop.arguments.length>1)y=goTop.arguments[1];window.scrollTo(c,y)}
function open_image(c,d,e){isOpen!=null&&isOpen.close();isOpen=window.open("about:blank","","alwaysLowered=0,alwaysRaised=1,dependent=1,directories=0,hotkeys=0,location=0,menubar=0,resizable=0,screenX=1,screenY=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0");isOpen.resizeTo(d+30,e+55);isOpen.document.write('<HTML><HEAD><TITLE>CMS3® by backslash</TITLE></HEAD><BODY marginwidth="0" marginheight="0" rightmargin="10" leftmargin="10" bottommargin="10" topmargin="10">');isOpen.document.write('<TABLE border=0 cellspacing=0 cellpadding=0 width="100%" height="100%"><TR><TD width="100%" height="100%" align="center" valign="middle">');
isOpen.document.write('<IMG id="grafik" src="'+c.toString()+'" border=0 align="absmiddle">');isOpen.document.write("</TD></TR><TABLE></BODY></HTML>");isOpen.focus()}function open_window(c,d,e){isWindow!=null&&isWindow.close();isWindow=window.open(c,d,e);window.focus&&isWindow.focus()}function setKey(c){var d="";for(str=0;str<c.length;str++){d+=c.charCodeAt(str)+3;if(str!=c.length-1)d+=";"}return d}
function open_anchor(c){location.href=location.protocol+"//"+location.host+location.pathname+"#"+c.toString()}function modIframe(){return true}
function resizeIFrame(c){c=c.id;var d=0;try{if(resizeIFrame.arguments.length>1&&!isNaN(resizeIFrame.arguments[1]))d=resizeIFrame.arguments[1];if(document.getElementById&&document.getElementById(c).contentDocument){var e=document.getElementById(c),b=e.contentDocument?e.contentDocument:e.contentWindow?e.contentWindow.document:window.frames&&window.frames[c]?window.frames[c].document:e.document?e.document:null,h=b.body.scrollHeight?b.body.scrollHeight:b.body.offsetHeight;h+=d;e.style.height=h.toString()+
"px"}else if(document.all){document.frames(c);h=document.frames(c).document.body.scrollHeight;h+=16+d;document.getElementById(c).style.height=h.toString()+"px"}}catch(k){window.status=k.message}}function dspDiv(c,d){if(getE(c))getE(c).style.display=d}function hideDiv(c,d){for(var e=c.split(","),b=0;b<e.length;b++)document.getElementById(e[b])&&document.getElementById(e[b]).style.display=="block"&&setTimeout("dspDiv('"+e[b]+"','none')",d)}function setV(c,d){document.getElementById(c).value=d}
function getV(c){if(document.getElementById(c))return document.getElementById(c).value.toString()}function getE(c){if(document.getElementById(c))return document.getElementById(c)}function getOp(c){return document.getElementById(c).options[document.getElementById(c).selectedIndex].value.toString()}function listAppend(c,d){var e=",";if(listAppend.arguments.length>2)e=listAppend.arguments[2];return c==""?c=d:c+(e+d)}String.prototype.Trim=function(){return this.replace(/\s+$/,"").replace(/^\s+/,"")};
function getElementsByClassName(c){var d,e=[],b,h=0,k;if(document.all)d=document.all;else if(document.getElementsByTagName&&!document.all)d=document.getElementsByTagName("*");for(b=0;b<d.length;b++)if(d[b].className.indexOf(c)!=-1){k=","+d[b].className.split(" ").join(",")+",";if(k.indexOf(","+c+",")!=-1){e[h]=d[b];h++}}return e}
function resizeWindow(){document.images.length||(document.images[0]=document.layers[0].images[0]);var c=document.images[0].height,d=document.images[0].width;if(!(!c||window.doneAlready)){window.doneAlready=true;var e=window;e.resizeTo(d+200,c+200);var b=0,h=0,k=e.document.documentElement,g=e.document.body;if(e.innerWidth){b=e.innerWidth;h=e.innerHeight}else if(k&&k.clientWidth){b=k.clientWidth;h=k.clientHeight}else if(g&&g.clientWidth){b=g.clientWidth;h=g.clientHeight}if(window.opera&&!document.childNodes)b+=
16;g=k=0;var l=document.getElementById("lay_picture");if(typeof l!="undefined"){var m=c/h,o=d/b;if(m>1||o>1)if(m>o){g=16;l.style.overflowX="hidden";l.style.overflowY="scroll"}else{k=16;l.style.overflowX="scroll";l.style.overflowY="hidden"}}e.resizeTo(d=d+g+(d+200-b),c=c+k+(c+200-h));b=screen.availWidth?screen.availWidth:screen.width;h=screen.availHeight?screen.availHeight:screen.height;window.opera||e.moveTo(Math.round((b-d)/2),Math.round((h-c)/2))}}
function createCookie(c,d,e){if(e){var b=new Date;b.setTime(b.getTime()+e*864E5);e="; expires="+b.toGMTString()}else e="";document.cookie=c+"="+d+e+"; path=/"}function readCookie(c){c+="=";for(var d=document.cookie.split(";"),e=0;e<d.length;e++){for(var b=d[e];b.charAt(0)==" ";)b=b.substring(1,b.length);if(b.indexOf(c)==0)return b.substring(c.length,b.length)}return null}function eraseCookie(c){createCookie(c,"",-1)}function nOver(c){c.className+=" over "}
function nOut(c){c.className=c.className.replace("over","")}function createValueList(c,d){return findRoot("",c,d)}
function findRoot(c,d,e){var b=0;d=getE(d);for(n=0;n<d.parentNode.parentNode.attributes.length;n++)if(d.parentNode.parentNode.attributes[n].nodeName.toLowerCase()=="id"){b=d.parentNode.parentNode.attributes[n].nodeValue;if(c=="")c=b;else c+=","+b;if(e!="f"&&b!="afolder0")c+=","+findRoot(c,b)}if(e=="f"&&b!=0&&d.parentNode.parentNode.tagName.toLowerCase()=="ul")c+=","+findRoot(c,b,e);return c}
function nav_open(c,d,e){var b=false,h="normal",k=getE(c);if(nav_open.arguments.length>3){b=true;h=nav_open.arguments[4]}d&&nav_close(c,e,b);if(k.style.display!="none")k.style.display="none";else{if(b)typeof easing!="undefined"?sDown(k,h,easing):sDown(k,h);k.style.display=""}}function sDown(c,d){sDown.arguments.length>2?$(c).slideDown(d,sDown.arguments[2]):$(c).slideDown(d)}
function nav_close(c,d){var e=createValueList(c,d),b="",h,k=false;if(nav_close.arguments.length>2)k=nav_close.arguments[2];for(i=0;i<document.getElementsByTagName("ul").length;i++){h=document.getElementsByTagName("ul")[i];for(a=0;a<h.attributes.length;a++)if(h.style.display!="none"&&h.attributes[a].nodeName.toLowerCase()=="id"){b=h.attributes[a].nodeValue;if(b!=c&&b.substring(0,8)!="afolder0")if(b.substring(1,7)=="folder"||b.substring(0,3)=="fid")if(e!=""){if(e.indexOf(b)=="-1")if(k)$(h).slideUp("fast");
else h.style.display="none"}else if(k)$(h).slideUp("fast");else h.style.display="none"}}}
function setActive(c,d){var e=99,b="t";if(setActive.arguments.length>2)e=setActive.arguments[2];if(setActive.arguments.length>3)b=setActive.arguments[3];if(c){var h=c.split(",");for(f=0;f<h.length;f++)if(document.getElementById(b+h[f])){document.getElementById(b+h[f]).className+=" active ";if(h[f]!=d){document.getElementById("afolder"+h[f])&&dspDiv("afolder"+h[f],"block");document.getElementById("ffolder"+h[f])&&dspDiv("ffolder"+h[f],"block");if(document.getElementById("fid"+h[f])){var k=document.getElementById("fid"+
h[f]).className.replace(/nlevel/,"");k=k.replace(/ active/,"");k<=e?dspDiv("fid"+h[f],"block"):dspDiv("fid"+h[f],"none")}}}}}
function Validation(c){var d=true,e=0,b=0,h="",k=false;c=eval("document.thisForm_"+c.toString());var g=c.elements;if(g.length){for(b=0;b<g.length;b++)if(g[b].className.indexOf("formerror")!=-1)g[b].className=g[b].className.replace("formerror","");for(b=0;b<g.length;b++){if(g[b].CHECK=="1"||g[b].className.indexOf("required")!=-1||g[b].className.indexOf("validate")!=-1)if(g[b].value.Trim()==""){if(d&&g[b].className.indexOf("required")!=-1){e=b;k=true;if((g[b].alt!=""||g[b].getAttribute("alt")!=null)&&
(typeof g[b].alt!="undefined"||typeof g[b].getAttribute("alt")!="undefined")){h=g[b].alt;if(typeof h=="undefined"&&g[b].alt!="")h=g[b].getAttribute("alt")}else h="Eingabe erwartet";g[b].className+=" formerror";d=false}}else if(g[b].className.indexOf("isemail")!=-1){if(!isEmail(g[b].value)){if(d){e=b;k=true;h=g[b].alt!=""?g[b].alt:"E-Mail-Adresse ist nicht korrekt."}g[b].className+=" formerror";d=false}}else if(g[b].className.indexOf("isplz4")!=-1){if(!isPLZ4(g[b].value)){if(d){e=b;k=true;h=g[b].alt!=
""?g[b].alt:"4stellige PLZ erwartet."}g[b].className+=" formerror";d=false}}else if(g[b].className.indexOf("isplz5")!=-1){if(!isPLZ5(g[b].value)){if(d){e=b;k=true;h=g[b].alt!=""?g[b].alt:"5stellige PLZ erwartet."}g[b].className+=" formerror";d=false}}else if(g[b].className.indexOf("isnumber")!=-1){if(!isNumber(g[b].value)){if(d){e=b;k=true;h=g[b].alt!=""?g[b].alt:"Es sind nur numerische Werte erlaubt."}g[b].className+=" formerror";d=false}}else if(g[b].className.indexOf("iseurodatetime")!=-1){if(!isEuroDateTime(g[b].value)){if(d){e=
b;k=true;h=g[b].alt!=""?g[b].alt:"Die Datums und Zeitangabe ist nicht korrekt (Format: dd.mm.yyyy HH:mm)"}g[b].className+=" formerror";d=false}}else if(g[b].className.indexOf("iseurodate")!=-1){g[b].value=g[b].value.replace(/[\s\/\-]/g,".");if(!isEuroDate(g[b].value)){if(d){e=b;k=true;h=g[b].alt!=""?g[b].alt:"Das Datum ist nicht korrekt (Format: dd.mm.yyyy)"}g[b].className+=" formerror";d=false}}else if(g[b].className.indexOf("iseurotime")!=-1){g[b].value=g[b].value.replace(/[\s\.]/g,":");if(!isEuroTime(g[b].value)){if(d){e=
b;k=true;h=g[b].alt!=""?g[b].alt:"Die Zeit ist nicht korrekt (Format: HH:mm)"}g[b].className+=" formerror";d=false}}else if(g[b].className.indexOf("isahv")!=-1){g[b].value=g[b].value.replace(/[\s\/\-]/g,".");if(!isAHV(g[b].value)){if(d){e=b;k=true;h=g[b].alt!=""?g[b].alt:"Die AHV Nummer ist nicht korrekt (Format: XXX.XX.XXX.XXX)"}g[b].className+=" formerror";d=false}}else if(g[b].type=="checkbox"){var l=0,m=document.getElementsByName(g[b].name);for(j=0;j<m.length;j++)m[j].checked&&l++;if(!l){if(d){e=
b;h=g[b].alt!=""?g[b].alt:"Auswahl erwartet"}g[b].className+=" formerror";d=false}}else if(g[b].type=="radio"){l=0;m=document.getElementsByName(g[b].name);for(j=0;j<m.length;j++)m[j].checked&&l++;if(!l){if(d){e=b;h=g[b].alt!=""?g[b].alt:"Auswahl erwartet"}g[b].className+=" formerror";d=false}}if(g[b].type=="hidden"&&g[b].name!="rows"&&g[b].name!="security")g[b].disabled=false}if(document.getElementById("filefields")){l=getV("filefields").split(",");for(b=0;b<l.length;b++){m=getE(l[b]);if(!isAllowedAttachment(l[b])){d=
false;m.className+=" formerror";h=m.alt!=""?m.alt:"Nicht zugelassenes Dateiformat"}}}}if(d){if(c.action.indexOf("cfmail")!=-1)for(b=0;b<c.length;b++)if(g[b].type!="hidden"&&g[b].value!=""&&g[b].type!="submit")if(g[b].type.indexOf("select")!=-1)g[b][g[b].selectedIndex].value=setKey(g[b][g[b].selectedIndex].value);else g[b].value=setKey(g[b].value);return true}else{alert(h);k&&g[e].focus();return false}}
function isEmail(c){return RegExp("^(['_a-zA-Z0-9_!#$%&'*+/=?^`{}~|-]+(.['_a-zA-Z0-9_!#$%&'*+/=?^`{}~|-]+)*|[^\\\\\u0080-\u00ff\r\n\"]|\\\\[^\u0080-\u00ff])@([a-zA-Z0-9][a-zA-Z0-9._-]*.)*[a-zA-Z0-9][a-zA-Z0-9._-]*.[a-zA-Z]{2,5}$").test(c)}function isNumber(c){var d=true,e=c.match(/[^0-9,\.]/gi),b=c.match(/\./g);c=c.match(/,/g);if(e!=null)d=false;else if(b!=null&&b.length>1)d=false;else if(c!=null)d=false;else if(c!=null&&b!=null)d=false;return d}
function isEuroDate(c){var d=false,e=[0,31,28,31,30,31,30,31,31,30,31,30,31],b=[];if(c.match(/^\d{2}\.\d{2}\.\d{4}$/)){b=c.split(".");if(isLeapYear(b[2]))e[2]=29;if(b[1].indexOf("0")==0)b[1]=b[1].substr(1,1);if(b[1]>0&&b[1]<13&&b[0]>0&&b[0]<=e[b[1]])d=true}return d}function isEuroTime(c){var d=false,e=[];if(c.match(/^\d{2}\:\d{2}$/)){e=c.split(":");if(e[0].indexOf("0")==0)e[0]=e[0].substr(1,1);if(e[1].indexOf("0")==0)e[1]=e[1].substr(1,1);if(e[0]>=0&&e[0]<24&&e[1]>=0&&e[1]<60)d=true}return d}
function isEuroDateTime(c){var d=false,e=[];if(c.indexOf(" ")!=-1){e=c.split(" ");if(e.length==2)d=isEuroDate(e[0])&&isEuroTime(e[1])}return d}
function isAllowedAttachment(c){var d="exe,pif,bat,scr,lnk,com,hta,cpl,cab,msi,chm,cmd,hlp,inf,inf,vbs,vbe,vb,wsh,wsf,wsf,wsc,js,ani,ico,wmf,dll",e="",b=true;if(getE("deniedattachements"))d=getV("deniedattachements");d=d.split(",");if(getE("allowedattachements")){e=getV("allowedattachements");e.split(",");b=false}if(b)for(b=0;b<d.length;b++){if(getV(c).toLowerCase().indexOf("."+d[b].toString())!=-1)return false}else{for(b=0;b<e.length;b++)if(getV(aryFields[0])!=""||getV(aryFields[0]).toLowerCase().indexOf("."+
e[b].toString())!=-1)return true;return false}return true}function isLeapYear(c){return c%4==0&&(c%100!=0||c%400==0)}function isPLZ4(c){if(isNaN(c)==true||c.length!=4)return false;return true}function isPLZ5(c){if(isNaN(c)==true||c.length!=5)return false;return true}function isAHV(c){return isAHVOld(c)||isAHVNew(c)?true:false}
function isAHVOld(c){var d=[5,4,3,2,7,6,5,4,3,2],e=0,b=0,h=false;if(c.match(/^\d{3}\.\d{2}.\d{3}\.\d{3}$/)){c=c.replace(/\./g,"");for(e=0;e<10;e++)b+=c.substr(e,1)*d[e];e=11-b%11;if(e==11)e=0;if(e==c.substr(10,1))h=true}return h}function isAHVNew(){return false};

