/***************************
File generated by shrinker.ch
DateTime: 2011-03-04, 15:01:03
*****************************/
/* JavaScript-Loader fuer cms3-Scripte */
cms3Loader = new Array();
function firecms3Loader(){for(var i=0; i<cms3Loader.length; i++){cms3Loader[i]();}}		
function addLoadEvent(newEvent){window.onload=firecms3Loader;var isExisting = false;for(var i =0; i<cms3Loader.length; i++){if(cms3Loader[i]==newEvent){isExisting = true;break;}}if(!isExisting){if(addLoadEvent.arguments.length>1&&addLoadEvent.arguments[1]=='top'){if(navigator.appVersion.indexOf("MSIE 5.0")!=-1){var tArray = new Array(newEvent);cms3Loader = tArray.concat(cms3Loader);}else{cms3Loader.unshift(newEvent);}}else{cms3Loader[cms3Loader.length] = newEvent;}}}
//global.js
var isOpen=null;var isWindow=null;function decryptData(m){var c=0;var r="";m=unescape(m);for(var i=0;i<m.length;i++){c=m.charCodeAt(i);if(c>=8364){c=128;}r+=String.fromCharCode(c-(3));}return r;}
function sendData(stream,option){if(stream!=''){location.href=decryptData(stream);}}
function goTop(){var x=y=0;if(goTop.arguments.length>0){x=goTop.arguments[0];}if(goTop.arguments.length>1){y=goTop.arguments[1];}window.scrollTo(x,y);}
function open_image(thisImg,thisX,thisY){if(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(thisX+30,thisY+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="'+thisImg.toString()+'" border=0 align="absmiddle">');isOpen.document.write('</TD></TR><TABLE></BODY></HTML>');isOpen.focus();}
function open_window(filename,title,param){if(isWindow!=null){isWindow.close();}isWindow=window.open(filename,title,param);if(window.focus){isWindow.focus()}}
function setKey(s){var beta='';for(str=0;str<s.length;str++){beta=beta+(s.charCodeAt(str)+3);if(str!=(s.length-1)){beta=beta+";";}}return beta;}
function open_anchor(a){location.href=location.protocol+'\/\/'+location.host+location.pathname+'#'+a.toString();}
function modIframe(newValue){return true;var modFollow=true;var cntIframe=0;var aryNoFix;if((document.getElementsByTagName('iframe')&&!document.all)||(document.all&&typeof(cms3allwayshideiframe)!="undefined")){for(i=0;i<document.getElementsByTagName('iframe').length;i++){if(typeof(stopIFrameFix)!='undefined'&&newValue=='none'){if(stopIFrameFix!=''){aryNoFix=stopIFrameFix.split(",");for(cntIframe=0;cntIframe<aryNoFix.length;cntIframe++){if(document.getElementsByTagName('iframe')[i].id==aryNoFix[cntIframe]){modFollow=false;break;}}}}if(modFollow){document.getElementsByTagName('iframe')[i].style.display=newValue;}modFollow=true;}}}
function resizeIFrame(obj){var aID=obj.id;var pixelAdd=0;try{if(resizeIFrame.arguments.length>1&&!isNaN(resizeIFrame.arguments[1])){pixelAdd=resizeIFrame.arguments[1]}
if(document.getElementById&&document.getElementById(aID).contentDocument){var objFrame=document.getElementById(aID);var objDoc=(objFrame.contentDocument)?objFrame.contentDocument:(objFrame.contentWindow)?objFrame.contentWindow.document:(window.frames&&window.frames[aID])?window.frames[aID].document:(objFrame.document)?objFrame.document:null;var h=(objDoc.body.scrollHeight?objDoc.body.scrollHeight:objDoc.body.offsetHeight);h+=pixelAdd;objFrame.style.height=h.toString()+'px';}
else if(document.all){var objFrame=document.frames(aID);var h=document.frames(aID).document.body.scrollHeight;h+=16+pixelAdd;document.getElementById(aID).style.height=h.toString()+'px';}}
catch(e){window.status=e.message;}}
function dspDiv(el,op){if(getE(el)){getE(el).style.display=op;}}
function hideDiv(la,delay){var divList=la.split(",");for(var i=0;i<divList.length;i++){if(document.getElementById(divList[i])){if(document.getElementById(divList[i]).style.display=="block"){setTimeout("dspDiv('"+divList[i]+"','none')",delay);}}}}
function setV(el,newValue){document.getElementById(el).value=newValue;}
function getV(el){if(document.getElementById(el)){return document.getElementById(el).value.toString();}}
function getE(el){if(document.getElementById(el)){return document.getElementById(el);}}
function getOp(el){return document.getElementById(el).options[document.getElementById(el).selectedIndex].value.toString();}
function listAppend(list,value){var delim=",";if(listAppend.arguments.length>2){delim=listAppend.arguments[2];}
return((list=="")?list=value:list+=delim+value);}
String.prototype.Trim=function(){return(this.replace(/\s+$/,"").replace(/^\s+/,""));};function getElementsByClassName(class_name){var all_obj,ret_obj=new Array(),i,j=0,teststr;if(document.all){all_obj=document.all;}
else if(document.getElementsByTagName&&!document.all){all_obj=document.getElementsByTagName("*");}
for(i=0;i<all_obj.length;i++){if(all_obj[i].className.indexOf(class_name)!=-1){teststr=","+all_obj[i].className.split(" ").join(",")+",";if(teststr.indexOf(","+class_name+",")!=-1){ret_obj[j]=all_obj[i];j++;}}}
return ret_obj;}
function resizeWindow(){if(!document.images.length){document.images[0]=document.layers[0].images[0];}
var oH=document.images[0].height,oW=document.images[0].width;if(!oH||window.doneAlready){return;}
window.doneAlready=true;var x=window;x.resizeTo(oW+200,oH+200);var myW=0,myH=0,d=x.document.documentElement,b=x.document.body;if(x.innerWidth){myW=x.innerWidth;myH=x.innerHeight;}
else if(d&&d.clientWidth){myW=d.clientWidth;myH=d.clientHeight;}
else if(b&&b.clientWidth){myW=b.clientWidth;myH=b.clientHeight;}
if(window.opera&&!document.childNodes){myW+=16;}
var scrollAddx=0;var scrollAddy=0;var e=document.getElementById('lay_picture');if(typeof e!='undefined'){var height_ratio=oH/myH;var width_ratio=oW/myW;if(height_ratio>1||width_ratio>1){if(height_ratio>width_ratio){scrollAddy=16;e.style.overflowX='hidden';e.style.overflowY='scroll';}
else{scrollAddx=16;e.style.overflowX='scroll';e.style.overflowY='hidden';}}}
x.resizeTo(oW=oW+scrollAddy+((oW+200)-myW),oH=oH+scrollAddx+((oH+200)-myH));var scW=screen.availWidth?screen.availWidth:screen.width;var scH=screen.availHeight?screen.availHeight:screen.height;if(!window.opera){x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2));}}
function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";}
function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;}
function eraseCookie(name){createCookie(name,"",-1);}
//navigation/default.js
function nOver(b){b.className+=" over "}function nOut(b){b.className=b.className.replace("over","")}function createValueList(b,e){var g="";return g=findRoot(g,b,e)}
function findRoot(b,e,g){var d=0;e=getE(e);for(n=0;n<e.parentNode.parentNode.attributes.length;n++)if(e.parentNode.parentNode.attributes[n].nodeName.toLowerCase()=="id"){d=e.parentNode.parentNode.attributes[n].nodeValue;if(b=="")b=d;else b+=","+d;if(g!="f"&&d!="afolder0")b+=","+findRoot(b,d)}if(g=="f"&&d!=0&&e.parentNode.parentNode.tagName.toLowerCase()=="ul")b+=","+findRoot(b,d,g);return b}
function nav_open(b,e,g){var d=false,c="normal",h=getE(b);if(nav_open.arguments.length>3){d=true;c=nav_open.arguments[4]}e&&nav_close(b,g,d);if(h.style.display!="none")h.style.display="none";else{if(d)typeof easing!="undefined"?sDown(h,c,easing):sDown(h,c);h.style.display=""}}function sDown(b,e){sDown.arguments.length>2?$(b).slideDown(e,sDown.arguments[2]):$(b).slideDown(e)}
function nav_close(b,e){var g=createValueList(b,e),d="",c,h=false;if(nav_close.arguments.length>2)h=nav_close.arguments[2];for(i=0;i<document.getElementsByTagName("ul").length;i++){c=document.getElementsByTagName("ul")[i];for(a=0;a<c.attributes.length;a++)if(c.style.display!="none"&&c.attributes[a].nodeName.toLowerCase()=="id"){d=c.attributes[a].nodeValue;if(d!=b&&d.substring(0,8)!="afolder0")if(d.substring(1,7)=="folder"||d.substring(0,3)=="fid")if(g!=""){if(g.indexOf(d)=="-1")if(h)$(c).slideUp("fast");
else c.style.display="none"}else if(h)$(c).slideUp("fast");else c.style.display="none"}}}
function setActive(b,e){var g=99,d="t";if(setActive.arguments.length>2)g=setActive.arguments[2];if(setActive.arguments.length>3)d=setActive.arguments[3];if(b){var c=b.split(",");for(f=0;f<c.length;f++)if(document.getElementById(d+c[f])){document.getElementById(d+c[f]).className+=" active ";if(c[f]!=e){document.getElementById("afolder"+c[f])&&dspDiv("afolder"+c[f],"block");document.getElementById("ffolder"+c[f])&&dspDiv("ffolder"+c[f],"block");if(document.getElementById("fid"+c[f])){var h=document.getElementById("fid"+
c[f]).className.replace(/nlevel/,"");h=h.replace(/ active/,"");h<=g?dspDiv("fid"+c[f],"block"):dspDiv("fid"+c[f],"none")}}}}};
//form/default.js
function Validation(f){var d=true,c=0,e="",g=false;f=eval("document.thisForm_"+f.toString());var b=f.elements;if(b.length){for(a=0;a<b.length;a++)if(b[a].className.indexOf("formerror")!=-1)b[a].className=b[a].className.replace("formerror","");for(a=0;a<b.length;a++){if(b[a].CHECK=="1"||b[a].className.indexOf("required")!=-1||b[a].className.indexOf("validate")!=-1)if(b[a].value.Trim()==""){if(d&&b[a].className.indexOf("required")!=-1){c=a;g=true;if((b[a].alt!=""||b[a].getAttribute("alt")!="")&&(typeof b[a].alt!=
"undefined"||typeof b[a].getAttribute("alt")!="undefined")){e=b[a].alt;if(typeof e=="undefined")e=b[a].getAttribute("alt")}else e="Eingabe erwartet";b[a].className+=" formerror";d=false}}else if(b[a].className.indexOf("isemail")!=-1){if(!isEmail(b[a].value)){if(d){c=a;g=true;e=b[a].alt!=""?b[a].alt:"E-Mail-Adresse ist nicht korrekt."}b[a].className+=" formerror";d=false}}else if(b[a].className.indexOf("isplz4")!=-1){if(!isPLZ4(b[a].value)){if(d){c=a;g=true;e=b[a].alt!=""?b[a].alt:"4stellige PLZ erwartet."}b[a].className+=
" formerror";d=false}}else if(b[a].className.indexOf("isplz5")!=-1){if(!isPLZ5(b[a].value)){if(d){c=a;g=true;e=b[a].alt!=""?b[a].alt:"5stellige PLZ erwartet."}b[a].className+=" formerror";d=false}}else if(b[a].className.indexOf("isnumber")!=-1){if(!isNumber(b[a].value)){if(d){c=a;g=true;e=b[a].alt!=""?b[a].alt:"Es sind nur numerische Werte erlaubt."}b[a].className+=" formerror";d=false}}else if(b[a].className.indexOf("iseurodatetime")!=-1){if(!isEuroDateTime(b[a].value)){if(d){c=a;g=true;e=b[a].alt!=
""?b[a].alt:"Die Datums und Zeitangabe ist nicht korrekt (Format: dd.mm.yyyy HH:mm)"}b[a].className+=" formerror";d=false}}else if(b[a].className.indexOf("iseurodate")!=-1){b[a].value=b[a].value.replace(/[\s\/\-]/g,".");if(!isEuroDate(b[a].value)){if(d){c=a;g=true;e=b[a].alt!=""?b[a].alt:"Das Datum ist nicht korrekt (Format: dd.mm.yyyy)"}b[a].className+=" formerror";d=false}}else if(b[a].className.indexOf("iseurotime")!=-1){b[a].value=b[a].value.replace(/[\s\.]/g,":");if(!isEuroTime(b[a].value)){if(d){c=
a;g=true;e=b[a].alt!=""?b[a].alt:"Die Zeit ist nicht korrekt (Format: HH:mm)"}b[a].className+=" formerror";d=false}}else if(b[a].className.indexOf("isahv")!=-1){b[a].value=b[a].value.replace(/[\s\/\-]/g,".");if(!isAHV(b[a].value)){if(d){c=a;g=true;e=b[a].alt!=""?b[a].alt:"Die AHV Nummer ist nicht korrekt (Format: XXX.XX.XXX.XXX)"}b[a].className+=" formerror";d=false}}else if(b[a].type=="checkbox"){var h=0,i=document.getElementsByName(b[a].name);for(j=0;j<i.length;j++)i[j].checked&&h++;if(!h){if(d){c=
a;e=b[a].alt!=""?b[a].alt:"Auswahl erwartet"}b[a].className+=" formerror";d=false}}else if(b[a].type=="radio"){h=0;i=document.getElementsByName(b[a].name);for(j=0;j<i.length;j++)i[j].checked&&h++;if(!h){if(d){c=a;e=b[a].alt!=""?b[a].alt:"Auswahl erwartet"}b[a].className+=" formerror";d=false}}if(b[a].type=="hidden"&&b[a].name!="rows"&&b[a].name!="security")b[a].disabled=false}if(document.getElementById("filefields")){h=getV("filefields").split(",");for(var a=0;a<h.length;a++){i=getE(h[a]);if(!isAllowedAttachment(h[a])){d=
false;i.className+=" formerror";e=i.alt!=""?i.alt:"Nicht zugelassenes Dateiformat"}}}}if(d){if(f.action.indexOf("cfmail")!=-1)for(a=0;a<f.length;a++)if(b[a].type!="hidden"&&b[a].value!=""&&b[a].type!="submit")if(b[a].type.indexOf("select")!=-1)b[a][b[a].selectedIndex].value=setKey(b[a][b[a].selectedIndex].value);else b[a].value=setKey(b[a].value);return true}else{alert(e);g&&b[c].focus();return false}}
function isEmail(f){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(f)}function isNumber(f){var d=true,c=f.match(/[^0-9,\.]/gi),e=f.match(/\./g);f=f.match(/,/g);if(c!=null)d=false;else if(e!=null&&e.length>1)d=false;else if(f!=null)d=false;else if(f!=null&&e!=null)d=false;return d}
function isEuroDate(f){var d=false,c=[0,31,28,31,30,31,30,31,31,30,31,30,31],e=[];if(f.match(/^\d{2}\.\d{2}\.\d{4}$/)){e=f.split(".");if(isLeapYear(e[2]))c[2]=29;if(e[1].indexOf("0")==0)e[1]=e[1].substr(1,1);if(e[1]>0&&e[1]<13&&e[0]>0&&e[0]<=c[e[1]])d=true}return d}function isEuroTime(f){var d=false,c=[];if(f.match(/^\d{2}\:\d{2}$/)){c=f.split(":");if(c[0].indexOf("0")==0)c[0]=c[0].substr(1,1);if(c[1].indexOf("0")==0)c[1]=c[1].substr(1,1);if(c[0]>=0&&c[0]<24&&c[1]>=0&&c[1]<60)d=true}return d}
function isEuroDateTime(f){var d=false,c=[];if(f.indexOf(" ")!=-1){c=f.split(" ");if(c.length==2)d=isEuroDate(c[0])&&isEuroTime(c[1])}return d}
function isAllowedAttachment(f){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",c="",e=true;if(getE("deniedattachements"))d=getV("deniedattachements");d=d.split(",");if(getE("allowedattachements")){c=getV("allowedattachements");c.split(",");e=false}if(e)for(e=0;e<d.length;e++){if(getV(f).toLowerCase().indexOf("."+d[e].toString())!=-1)return false}else{for(e=0;e<c.length;e++)if(getV(aryFields[0])!=""||getV(aryFields[0]).toLowerCase().indexOf("."+
c[e].toString())!=-1)return true;return false}return true}function isLeapYear(f){return f%4==0&&(f%100!=0||f%400==0)}function isPLZ4(f){if(isNaN(f)==true||f.length!=4)return false;return true}function isPLZ5(f){if(isNaN(f)==true||f.length!=5)return false;return true}function isAHV(f){return isAHVOld(f)||isAHVNew(f)?true:false}
function isAHVOld(f){var d=[5,4,3,2,7,6,5,4,3,2],c=0,e=false;c=-1;var g=0;if(f.match(/^\d{3}\.\d{2}.\d{3}\.\d{3}$/)){f=f.replace(/\./g,"");for(c=0;c<10;c++)g+=f.substr(c,1)*d[c];c=11-g%11;if(c==11)c=0;if(c==f.substr(10,1))e=true}return e}function isAHVNew(){return false};
//custom/include.js
/* custom js-code */
function szOver(b,a){dspDiv(b,"block");a.className+=" tempactive"}function szOut(b,a){dspDiv(b,"none");a.className=a.className.replace(/tempactive/,"")}function checkNoNews(){var b="block";if(getE("alert")){b=trim(getE("alert").innerHTML)=="<h2>Wichtige Mitteilung</h2>"?"none":"block";if(b=="block")if(getE("nonews"))if(getE("nonews").className=="topnews")b="none";getE("alert").style.display=b}}function trim(b,a){return ltrim(rtrim(b,a),a)}
function ltrim(b,a){a=a||"\\s";return b.replace(RegExp("^["+a+"]+","g"),"")}function rtrim(b,a){a=a||"\\s";return b.replace(RegExp("["+a+"]+$","g"),"")};
//custom/crossdomain.js
/*funktionen fuer crossdomain-navigation kanton schwyz | 2008 , backslash - artists of new media - www.backslash.ch*/
addLoadEvent(setCDLinks);addLoadEvent(setGoTop);addLoadEvent(activate2LevelNavLink);addLoadEvent(changeClass);window.onresize=setGoTop;function changeClass(){var a=getE("startbild");if(a){random_number=Math.ceil(Math.random()*7);a.className+=" zufall_"+random_number}}
function setCDLinks(){var a,b=document.getElementsByTagName("a"),c=false;if(typeof stopPopupDomainChange!="undefined")c=true;for(var d=0;d<b.length;d++){a=b[d].href.toLowerCase();if(a.indexOf("domainid=")!=-1)if(!c||c&&a.indexOf("window.open")==-1)for(var f=a.split("?")[1].split("&"),e=0;e<f.length;e++)if(f[e].indexOf("domainid=")!=-1)if(f[e]!="domainid=1")b[d].href=a.replace(f[e],"DomainID=1")}b=document.getElementsByTagName("iframe");var g;for(d=0;d<b.length;d++){a=b[d].src.toLowerCase();if(a.indexOf("domainid=")!=
-1){f=a.split("?")[1].split("&");for(e=0;e<f.length;e++)if(f[e].indexOf("domainid=")!=-1){c=f[e].split("=")[1];if(a.indexOf("xml_"+c)==-1){g=a.split("/");for(var h=0;h<g.length;h++)if(g[h].indexOf("xml_")!=-1)b[d].src=a.replace(g[h],"xml_"+c)}}}}}function setGoTop(){var a=getPSize(),b=150,c=getE("inhalt");if(c){if(c.offsetHeight)b+=c.offsetHeight;else if(c.style.pixelHeight)b+=c.style.pixelHeight;b<=a[1]?dspDiv("sprunglink","none"):dspDiv("sprunglink","")}}
function getPSize(){var a,b;a=window.innerHeight&&window.scrollMaxY?window.innerHeight+window.scrollMaxY:document.body.scrollHeight>document.body.offsetHeight?document.body.scrollHeight:document.body.offsetHeight;if(self.innerHeight)b=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)b=document.documentElement.clientHeight;else if(document.body)b=document.body.clientHeight;pageHeight=a<b?b:a;return[pageHeight,b]}
function activate2LevelNavLink(){if(getE("subnav_title"))for(var a=getE("subnav_title"),b=a.innerHTML,c=document.getElementsByTagName("a"),d=0;d<c.length;d++)if(c[d].innerHTML==b){a.innerHTML='<a href="'+c[d].href+'">'+c[d].innerHTML+"</a>";break}};
