function cms_linkTo(s) { location.href=cms_decryptString(s, -3); } function cms_protect(s) { document.write(cms_decryptString(s, -3)); } function cms_decryptString(s,offset) { var dec=""; var len=s.length; for(var i=0; i < len; i++) { var n=s.charCodeAt(i); if (n >= 0x2B && n <= 0x3A) { dec+=cms_decryptCharcode(n, 0x2B, 0x3A, offset); } else if (n >= 0x40 && n <= 0x5A) { dec+=cms_decryptCharcode(n, 0x40, 0x5A, offset); } else if (n >= 0x61 && n <= 0x7A) { dec+=cms_decryptCharcode(n, 0x61, 0x7A, offset); } else { dec+=enc.charAt(i); } } return dec; } function cms_decryptCharcode(n,start,end,offset) { n=n+offset; if (offset > 0 && n > end) { n=start+(n-end-1); } else if (offset < 0 && n < start) { n=end-(start-n-1); } return String.fromCharCode(n); } function parseCookie(myCookie) { var myVariables = myCookie.split(";"); var returnvalue = new Array(); for(var i = 0; i <= myVariables.length; i++) { if (myVariables[i]) { thisValues = myVariables[i].split("="); thisVar = trim(thisValues[0].toLowerCase()); thisVal = trim(thisValues[1]); returnvalue[thisVar]= thisVal; } } return returnvalue; } function refreshFrames (pageId) { if (parent.frames.pageinfo && pageId > 0) { try { parent.frames.pageinfo.location.href="/admin/cms/modCms.cfm?action=pageinfo&page=" + pageId; parent.frames.footer.location.href="/cms/cmsAdmin/system/openEditModeElementFooter.cfm?page=" + pageId; } catch (e) {} } } function updateWMTT(e) { try { x=(document.all) ? window.event.x + document.documentElement.scrollLeft + document.getElementsByTagName("div")[1].scrollLeft: e.pageX; y=(document.all) ? window.event.y + document.documentElement.scrollTop + document.getElementsByTagName("div")[1].scrollTop: e.pageY; if (wmtt != null) { wmtt.style.left=(x - 150) + "px"; wmtt.style.top=(y + 20) + "px"; } } catch(e) { } } function showTT(id) { wmtt=document.getElementById(id); wmtt.style.display="block" } function hideTT() { wmtt.style.display="none"; } function cms_showpic(file,width,height,scrollbar) { var scroll = "no"; if(!cms_showpic.arguments[1]) { width=""; } if(!cms_showpic.arguments[2]) { height=""; } if(cms_showpic.arguments[1] || cms_showpic.arguments[2]) { scroll="yes"; } //Scrollbars "yes" OR "no" if(cms_showpic.arguments[3]) { var scroll = scrollbar; } //Bildgrösse bekannt lenWidth = width.replace(/\r/g, " "); lenHeight = height.replace(/\r/g, " "); //Bildpfad speichern path = "http://www.inm.ch/cms/cmsAdmin/modules/popup.cfm?picfile="+file; //Breite und Höhe wird übergeben, sofern vorhanden if (lenWidth != '' && lenHeight != '') { path = path+"&width="+width+"&height="+height; } var picwindow=window.open(path, "picwindow", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=yes,top=50,left=50"); picwindow.focus(); } function trim(item) { return item.replace(/^\s*(\b.*\b|)\s*$/, '$1'); } function isdate(datum) { date = trim(datum); if (date.length > 0) { if (date.search(/\d\d.\d\d.\d\d/) != -1 || date.search(/\d\d.\d\d.\d\d\d\d/) != -1 || date.search(/\d.\d.\d\d/) != -1 || date.search(/\d.\d.\d\d\d\d/) != -1 || date.search(/\d\d.\d.\d\d/) != -1 || date.search(/\d\d.\d.\d\d\d\d/) != -1 || date.search(/\d.\d\d.\d\d/) != -1 || date.search(/\d.\d\d.\d\d\d\d/) != -1) { aDate = date.split("."); iDay = 1 * aDate[0]; iMonth = 1 * aDate[1]; iYear = 1 * aDate[2]; sYear = "" + iYear; if (sYear.length != 4 && iYear >= 51 && iYear <= 99) { iYear = 1900 + iYear; } else if (sYear.length != 4 && iYear >= 0 && iYear <= 50) { iYear = 2000 + iYear; } else if (sYear.length != 4 && iYear > 99) { iDay = 99; iMonth = 99; } else if (sYear.length == 4 && iYear < 1951) { iDay = 99; iMonth = 99; } if (iYear == "2000") { isLeapyear = false; } else { leapyear = Math.ceil(iYear / 4); calc = 4 * leapyear; if (calc == iYear) { isLeapyear = true; } else { isLeapyear = false; } } iDayCount = 0; switch(iMonth) { case 1: iDayCount = 31; break; case 2: if (isLeapyear == true) { iDayCount = 29; } else { iDayCount = 28; } break; case 3: iDayCount = 31; break; case 4: iDayCount = 30; break; case 5: iDayCount = 31; break; case 6: iDayCount = 30; break; case 7: iDayCount = 31; break; case 8: iDayCount = 31; break; case 9: iDayCount = 30; break; case 10: iDayCount = 31; break; case 11: iDayCount = 30; break; case 12: iDayCount = 31; break; } if (iDay >= 1 && iDay <= iDayCount) { return true; } else { return false; } } else { return false; } } else { return false; } } function ismail(mail) { var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (filter.test(mail)) { return true; } else { return false; } } function cms_reload() { location.reload(); } function cms_popup(Ziel,Breite,Hoehe,Status,Toolbar,Location,Menu) { popup=window.open(Ziel,"PopUp","status=" + Status + ",toolbar=" + Toolbar + ",location=" + Location + ",menu=" + Menu + ",width=" + Breite + ",height=" + Hoehe + ",left=" + (screen.width - Breite) / 2 + ",top=" + (screen.height - Hoehe) / 2); popup.focus(); } function cm_bwcheck(){ this.ver=navigator.appVersion this.agent=navigator.userAgent.toLowerCase() this.dom=document.getElementById?1:0 this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) && window.opera this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) && window.opera this.ie5 = (this.agent.indexOf("msie 5")>-1 && !this.op5 && !this.op6) this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1) this.ie6 = (this.agent.indexOf("msie 6")>-1 && !this.op5 && !this.op6) this.ie4=(this.agent.indexOf("msie")>-1 && document.all &&!this.op5 &&!this.op6 &&!this.ie5&&!this.ie6) this.ie = (this.ie4 || this.ie5 || this.ie6) this.mac=(this.agent.indexOf("mac")>-1) this.ns6=(this.agent.indexOf("gecko")>-1 || window.sidebar) this.ns4=(!this.dom && document.layers)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6) this.usedom= this.ns6//Use dom creation this.reuse = this.ie||this.usedom //Reuse layers this.px=this.dom&&!this.op5?"px":"" return this } var bw=new cm_bwcheck(); window.onload= function(){externalLinks();} function externalLinks(){ if(!document.getElementsByTagName)return; var anchors= document.getElementsByTagName('a'); for(var i=0; i= 0; FlyLyr.on = 1; var ua = navigator.userAgent; FlyLyr.isOpera = ua.indexOf (' Opera ') >= 0; FlyLyr.isKonq = ua.indexOf (' Konqueror') >= 0; initFlyLyr (); initDelay (); d.write ('