var is_ie;var is_ie7;var is_ie8;var is_ie9;var is_ieAfter8;var is_mac;var is_safari;var is_mac_ie;var is_gecko;var is_mac_moz;var browser;initContains(window);if(document.all){try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}}function imgPreloader(a){for(i=0;i<a.length;i++){var b=new Image();b.src=a[i]}}function getTime(c,b,a){if(window.timer){if(!a){report(timer.getTime(c,b))}else{alert(timer.getTime(c,b))}}}function in_array(a,c){l=a.length;for(var b=0;b<l;b++){if(a[b]==c){return c}}}function replaceIEFlashObjects(){return;agt=navigator.userAgent.toLowerCase();if(document.all){o=document.getElementsByTagName("object");for(i=0;i<o.length;i++){o[i].outerHTML=o[i].outerHTML.replace("wait=1","wait=0")}}}function initContains(a){if(!document.all){a.HTMLElement.prototype.contains=function(b){if(b==null){return false}if(b==this){return true}else{return this.contains(b.parentNode)}}}}function getWindowWidth(a){if(a==undefined){a=window}if(a.innerWidth){return a.innerWidth}else{if(a.document.documentElement&&a.document.documentElement.clientWidth){return a.document.documentElement.clientWidth}return a.document.body.offsetWidth}}function getWindowHeight(a){if(a==undefined){a=window}if(a.innerHeight){return a.innerHeight}else{if(a.document.documentElement&&a.document.documentElement.clientHeight){return a.document.documentElement.clientHeight}return a.document.body.offsetHeight}}function source(a){if(a){a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;")}return"<i>"+a+"</i>"}function stopEvent(a){if(document.all){a.cancelBubble=true;a.returnValue=false}else{a.stopPropagation();a.preventDefault()}}function stripslashes(a){return(a+"").replace(/\0/g,"0").replace(/\\([\\'"])/g,"$1")}function addslashes(a){return(a+"").replace(/([\\"'])/g,"\\$1").replace(/\0/g,"\\0")}function printFromInside(){this.focus();self.print();return false}function showLoadingTime(){if(parent&&parent.writeLoadingTime){parent.writeLoadingTime(document.location.href)}else{}}function openDialog(a){url=a.url;if(!a.h){h=100}else{h=a.h}if(!a.w){w=100}else{w=a.w}if(!a.t){t=100}else{t=a.t}if(!a.left){left=100}else{left=a.left}if(!a.resize){resize=0}else{resize=a.resize}if(!a.status){status=0}else{status=a.status}if(!a.scrollen){scrollen=0}else{scrollen=a.scrollen}if(!a.edge){edge="raised"}else{edge=a.edge}if(!a.loc){loc=0}else{loc=a.loc}myDialogArguments=a.args;if(a.windowmode=="inline"){window["cargowindow_"+window.cwCounter]=new cargowindowObj({url:url,width:w,height:h,left:l,top:t,cwCounter:window.cwCounter})}else{aktueldialogEditor=window.open(url,"","menuebar = 0, width="+(w-6)+", height="+(h-26)+", left="+left+", top="+t+",status="+status+", toolbar=0, scrollbars="+scrollen+", resizable="+resize+", location="+loc+",fullscreen = 0")}}function clapWindow(b,a,c){if(!window.fensterhoehe_start){if(document.all){fensterhoehe_start=document.body.clientHeight+29}else{fensterhoehe_start=window.outerHeight}}c=90;if(!document.getElementById(b)){return}klappbereich=document.getElementById(b);if(document.all){fensterbreite=document.body.clientWidth+8}else{fensterbreite=window.outerWidth}if(klappbereich.style.display=="none"){klappbereich.style.display="inline";document.getElementById("img_"+b).src="/cms/images/icon_klapppfeildown.gif";if(document.all){window.resizeTo(fensterbreite,a)}else{window.outerHeight=a+c}}else{klappbereich.style.display="none";document.getElementById("img_"+b).src="/cms/images/icon_klapppfeilup.gif";if(document.all){window.resizeTo(fensterbreite,fensterhoehe_start)}else{window.outerHeight=fensterhoehe_start}}}function getAsQuerystring(a){inputArr=document[a].getElementsByTagName("input");selectArr=document[a].getElementsByTagName("select");textareaArr=document[a].getElementsByTagName("textarea");str="";for(i=0;i<inputArr.length;i++){input=inputArr[i];if(input.type=="checkbox"){if(input.checked){str+="&"+input.name+"="+input.value}}else{if(input.type=="radio"){if(input.checked){str+="&"+input.name+"="+input.value}}else{str+="&"+input.name+"="+input.value}}}for(i=0;i<selectArr.length;i++){str+="&"+selectArr[i].name+"="+selectArr[i].value}for(i=0;i<textareaArr.length;i++){val=textareaArr[i].value;val=val.replace("'","'");str+="&"+textareaArr[i].name+"="+val}return str}function report(d,a,c){var b;d+="\n";d=d.replace(/\n+/g,"<br/>");d=d.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;");if(document.getElementById("infodiv")){document.getElementById("infodiv").style.display="block";document.getElementById("infodiv").style.textAlign="left"}else{div=document.createElement("div");div.id="infodiv";b="z-index:1000000; background:#FFFF00; position:absolute; font-family:verdana; font-size:9px;";b+="width:600px;";b+="overflow:auto;";b+="white-space: nowrap;";b+="left:0px;";b+="top:0px;";div.style.cssText=b;document.body.insertBefore(div,document.body.firstChild);document.getElementById("infodiv").innerHTML+="<input type=\"button\" value=\"h\" onclick=\"var h=this.parentNode.style.height; if(h=='100%') {this.parentNode.style.height='30px'} else {this.parentNode.style.height='100%'};\">";document.getElementById("infodiv").innerHTML+='<input type="button" value="range" onclick="editor.analyseRange()">';document.getElementById("infodiv").innerHTML+='<input type="button" value="clear" onclick="report(\'\',1)">';document.getElementById("infodiv").innerHTML+='<input type="button" value="cleanNode()" onclick="editor.cleanNodeTest(editor.editableRootElement,\'\',0)">';document.getElementById("infodiv").innerHTML+='<div id="infodivInner"></div>'}if(a){document.getElementById("infodivInner").innerHTML=""}document.getElementById("infodivInner").innerHTML+=(" "+d)}function posinfo(a){var b="position: "+a.style.position+"\noffsetWidth: "+a.offsetWidth+"\noffsetHeight: "+a.offsetHeight+"\nstyle.width : "+a.style.width+"\nstyle.height: "+a.style.height+"\nabsLeft: "+absLeft(a)+"\nabsTop: "+absTop(a)+"\ndisplay: "+a.style.display+"\nparentNode: "+a.parentNode.nodeName+" id: "+a.parentNode.id+" class: "+a.parentNode.className+"\n";return b}function elementinfo(b){var a;if(!b){return}if(b.getAttribute){a=b.getAttribute("name")}var c="\nelementinfo:"+b.nodeName+"\n"+(b.innerHTML?"\t<i>"+source(b.innerHTML)+"</i>\n":"")+(b.nodeValue?"\t<i>{"+b.nodeValue+"}</i>\n":"")+(b.id?"\tid:"+b.id+"\n":"")+(b.className?"\tclass:"+b.className+"\n":"")+(a?"\tname:"+a+"\n":"")+(b.style&&b.style.cssText?"\tcss:"+b.style.cssText+"\n":"")+"";return c}var changedFieldsObj={};function listChanges(a){changedFieldsObj.fieldname=1}function windowInfo(){this.getOuterWidth=function(){if(is_ie){return document.body.clientWidth}else{return window.outerWidth}};this.getOuterHeigth=function(){if(is_ie){return document.body.clientHeight}else{return window.outerHeight}}}function getBorderWidth(e){if(document.all){var c=parseInt(e.currentStyle.borderWidth)}else{var a=parseInt(window.getComputedStyle(e,"").getPropertyValue("width"));var b=e.offsetWidth;var d=parseInt(window.getComputedStyle(e,"").getPropertyValue("padding-left"));var f=parseInt(window.getComputedStyle(e,"").getPropertyValue("padding-right"));var c=(b-a-d-f)/2}return c}function getCSSStyle(a,b){if(window.getComputedStyle){attributVal=window.getComputedStyle(a,"").getPropertyValue(b)}else{if(a.currentStyle){attributVal=a.currentStyle[b]}}if(b.indexOf("borderWidth")!=-1){attributVal=getBorderWidth(a)}else{if(b.indexOf("border-width")!=-1){attributVal=getBorderWidth(a)}}return attributVal}function cargoWindow(c,d,a,b){if(c=="importcsv"){F2=window.open("/cms/popups/uploadcsv.php?"+d,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=1000,height=500,left=10,top=10")}else{F2=window.open(a+d,"",b)}}function selectAll(b,a,c){if(!c){c="edit"}flength=document[c].elements.length;for(i=0;i<flength;i++){if(document[c].elements[i].name&&document[c].elements[i].name.indexOf(b)!=-1){document[c].elements[i].checked=a}}moreCheckboxAction(b,a,"selectAll")}function moreCheckboxAction(idStr,onOff,mode){idstrArr=idStr.split("__");viewname=idstrArr[1];functionName=viewname+"_"+mode+"_checkBoxAction";if(window[functionName]){eval(functionName+"("+onOff+")")}}function btn_Set(b,a){b.className=a}function btn_hover(a){a.className="btn_hover"}function btn_out(a){a.className="btn"}function btn_down(a){a.className="btn_active"}function btn_up(a){a.className="btn"}function btntop_hover(a){a.className="btntop_hover"}function btntop_out(a){a.className="btntop"}function btntop_down(a){a.className="btntop_active"}function btntop_up(a){a.className="btntop"}function btnhell_hover(a){a.className="btnhell_hover"}function btnhell_out(a){a.className="btnhell"}function btnhell_down(a){a.className="btnhell_active"}function btnhell_up(a){a.className="btnhell"}function activateHighlightRowOnClick(c,f,d){var e=getElementsByClassNameM(c,"tr","row");var a=e.length;for(var b=0;b<a;b++){tr=e[b];prevCol=getCSSStyle(tr,"background-color");if(!prevCol){prevCol="transparent"}registerEventListeners(tr,"click",function(){highlightRow("click",this,d,prevCol)},false);registerEventListeners(tr,"mouseover",function(){highlightRow("over",this,f,prevCol,d)},false);registerEventListeners(tr,"mouseout",function(){highlightRow("out",this,prevCol,f,d)},false)}}function highlightRow(e,d,a,b,c){if(d.style&&d.style.backgroundColor==c){return}if(d.style&&d.style.backgroundColor!=a){d.style.backgroundColor=a}else{if(e!="out"){d.style.backgroundColor=b}}}function checkbrowser(){var a="";var b=navigator.userAgent.toLowerCase();is_ie=((b.indexOf("msie")!=-1)&&(b.indexOf("opera")==-1));is_ie7=(b.indexOf("msie 7")!=-1);is_ie6=(b.indexOf("msie 6")!=-1);is_ie8=(b.indexOf("msie 8")!=-1);is_ie9=(b.indexOf("msie 9")!=-1);is_ie10=(b.indexOf("msie 10")!=-1);is_opera=(b.indexOf("opera")!=-1);is_mac=(b.indexOf("mac")!=-1);is_safari=(b.indexOf("safari")!=-1);is_mac_ie=(is_ie&&is_mac);is_win_ie=(is_ie&&!is_mac);is_gecko=(navigator.product=="Gecko");is_mac_not_moz=(!is_gecko&&is_mac);is_mac_moz=(is_gecko&&is_mac);if(is_ie10||is_ie9){is_ieAfter8=1}if(a){alert("userAgent: "+b+"\nis_ie: "+is_ie+"\nis_ie6: "+is_ie6+"\nis_ie7: "+is_ie7+"\nis_ie8: "+is_ie8+"\nis_opera: "+is_opera+"\nis_gecko: "+is_gecko+"\nis_mac: "+is_mac)}}function openNewWindow(c,a,b){window.open(c,a,b)}function addevent(a,c,b){if(a){if(is_ie){a.attachEvent("on"+c,b)}else{a.addEventListener(c,b,true)}}else{if(is_ie){attachEvent("on"+c,b)}else{addEventListener(c,b,true)}}}function registerEventListenersObj(c,g,e,a,d,b){if(document.addEventListener){c.addEventListener(g,function(f){e[d](f,c,b)},a)}else{c.attachEvent("on"+g,function(){e[d](event,c,b)})}}function registerEventListeners(b,c,d,a){if(document.addEventListener){b.addEventListener(c,d,a)}else{b.attachEvent("on"+c,d)}}function registerEventListenersWithPars(element,eventtype,listener,captures,pars){if(document.addEventListener){element.addEventListener(eventtype,function(){eval(listener)},true)}else{element.attachEvent("on"+eventtype,function(){eval(listener)})}}function addClassName(a,b){if(!a){return}if(!a.className.match(new RegExp("(^|\\s)"+b+"(\\s|$)"))){a.className+=" "+b}}function removeClassName(a,b){a.className=a.className.replace(new RegExp(" ?"+b),"")}function replaceClassName(a,c,b){if(!a.className.match(new RegExp("(^|\\s)"+c+"(\\s|$)"))){a.className+=" "+b}else{a.className=a.className.replace(c,b)}}function hasClassName(a,b){if(!a.className){return false}if(a.className==b||a.className.match(new RegExp("(^|\\s)"+b+"(\\s|$)"))){return true}}function absLeft(a){return(a.offsetParent)?a.offsetLeft+absLeft(a.offsetParent):a.offsetLeft}function absTop(a){return(a.offsetParent)?a.offsetTop+absTop(a.offsetParent):a.offsetTop}function absHeight(a){return(a.offsetParent)?a.offsetHeight+absHeight(a.offsetParent):a.offsetHeight}function getSize(a){return{left:absLeft(a),top:absTop(a),width:a.offsetWidth,height:a.offsetHeight}}function findeNodeIndex(c,a){if(!c||!c.parentNode){return}var b=0;for(i=0;i<c.parentNode.childNodes.length;i++){var d=c.parentNode.childNodes[i];if(a){if(d.nodeType!=a){b++}}else{b=i}if(c.parentNode.childNodes[i]==c){return b}}}function getElementsByClassNameM(e,a,d){if(!a){a="*"}var b=(e||document.body).getElementsByTagName(a);var g=[],j;if(b){l=b.length;for(var c=0;c<l;c++){j=b[c];var f=new RegExp("( "+d+"$)|(^"+d+" )|( "+d+" )");if(j.className.match(new RegExp("(^|\\s)"+d+"(\\s|$)"))){g.push(j)}}}return g}function findParentWidthClassName(a,b){if(a.nodeName.toLowerCase()!="html"){return(hasClassName(a,b))?a:findParentWidthClassName(a.parentNode,b)}}function findParentElementByNodeName(a,b){if(a.nodeName.toLowerCase()!="html"){return(a.nodeName.toLowerCase()==b.toLowerCase())?a:findParentElementByNodeName(a.parentNode,b)}}function getQueryStr(){queryStr=window.location.search;queryStr=queryStr.replace(/\?/,"");return queryStr}function parseQueryStr(a,b){queryVarObj={};if(!a){a=window.location.search;a=a.replace(/\?/,"")}if(a){if(a.indexOf("?")!=-1){qsArr=a.split("?");a=qsArr[1]}qsParts=a.split("&");if(!b){queryVarObj.querystring=a}for(i=0;i<qsParts.length;i++){varArr=qsParts[i].split("=");if(varArr[0]){queryVarObj[varArr[0]]=varArr[1]}}}return queryVarObj}function str2Obj(str){if(str==""){obj={}}else{eval("var obj = "+str)}return obj}function obj2Str(b,a){var d="";var c;if(a==1){a="\t"}else{if(a){a+="\t"}}for(c in b){var e=typeof(b[c]);if(b[c] instanceof Array){if(d){d+=",\n"+a}d+=('"'+c+'": '+array2Str(b[c],a))}else{if(e=="string"){if(d){d+=",\n"+a}d+=('"'+c+'": "'+b[c]+'"')}else{if(e=="number"){if(d){d+=",\n"+a}d+=('"'+c+'": '+b[c])}else{if(e=="boolean"){if(d){d+=",\n"+a}d+=('"'+c+'": '+b[c])}else{if(e=="object"){if(d){d+=",\n"+a}d+=('"'+c+'": \n'+obj2Str(b[c],a))}}}}}}return"\n"+a+"{"+d+"}"}function array2Str(c,b){var f="";var a=c.length;if(b){b+="\t"}for(var d=0;d<a;d++){var e=c[d];var g=typeof(e);if(e instanceof Array){if(f){f+=",\n"+b}f+=array2Str(e,b)}else{if(g=="object"){if(f){f+=",\n"+b}f+=(obj2Str(e,b))}else{if(g=="string"){if(f){f+=",\n"+b}f+=b+('"'+e+'"')}else{if(g=="number"){if(f){f+=",\n"+b}f+=b+e}else{if(g=="boolean"){if(f){f+=",\n"+b}f+=b+e}}}}}}f="["+f+"]";return f}function sO(a,c,b){return showObject(a,c,b)}function showObject(b,e,c){var d,a="";for(d in b){if(e){if(c&&typeof(b[d])=="object"){a+=(d+": \n"+showObject(b[d]))}else{if(typeof(b[d])=="object"&&!b[d].nodeName){a+=(d+": \n"+showObject(b[d]))}else{a+=(d+": "+b[d]+"\n")}}}else{a+=(d+": "+b[d]+"\n")}}return a}function getOuterHTML(a){divtemp=document.createElement("div");divtemp.appendChild(a.cloneNode(true));return divtemp.innerHTML}function findNextSibling(a,b){while(a.nextSibling){a=a.nextSibling;if(a.nodeName.toLowerCase()==b){return a}}}function findPreviousSibling(a,b){while(a.previousSibling){a=a.nextSibling;if(a.nodeName.toLowerCase()==b){return a}}}function modifyQueryStr(f){var d="";if(d){report("modifyQueryStr in: "+f)}if(f.indexOf("?")!=-1){var b=f.split("?")}if(b&&b[0]){var c=b[0];var f=b[1]}qsArrInput={};b=f.split("&");var a=b.length;for(i=0;i<a;i++){keyValStr=b[i];if(keyValStr){keyValArr=keyValStr.split("=");qsArrInput[keyValArr[0]]=keyValArr[1]}}newQueryStr="";for(key in qsArrInput){if(key){var e=qsArrInput[key];if(e){newQueryStr?newQueryStr+=("&"+key+"="+e):newQueryStr+=(key+"="+e)}else{newQueryStr?newQueryStr+=("&"+key):newQueryStr+=(key)}}}if(c){resStr=c+"?"+newQueryStr}else{resStr=newQueryStr}if(d){report("modifyQueryStr out: "+newQueryStr)}return resStr}function modifyQueryString(g,f,j,a){sq="";if(sq){report("\nmodifyQueryString Input: \nqs: "+g+"\nuseWindwowQs: "+f+"\nvarNameOrArray: "+j+"\nvarValue: "+a+"\n")}var e="";var c="";var b="";var d=0;if(g.indexOf("?")!=-1){qsArr=g.split("?");b=qsArr[0];g=qsArr[1];d=1}if(f){g=getQueryStr()}else{if(!f&&!j){return g}}g=g.replace(" ","");if(g=="&"||g=="?"||g=="?&"){g=""}if(sq){report("qs nach getQueryStr: "+g)}qsArr2=g.split("&");len=qsArr2.length;qsArrInput={};qsArrtemp={};for(i=0;i<len;i++){keyValStr=qsArr2[i];if(keyValStr){keyValArr=keyValStr.split("=");qsArrInput[keyValArr[0]]=keyValArr[1]}}if(sq){report("qsArrInput: "+showObject(qsArrInput))}if(typeof(j)=="string"){qsArrtemp[j.replace("&","")]=a}else{qsArrtemp=j}if(sq){report("varValue: "+a)}if(a&&(a.indexOf("=")!=-1||a.indexOf("&")!=-1)){qsArrtemp=parseQueryStr(a,"withoutFullQueryStr");if(sq){report("qsArrtemp: "+showObject(qsArrtemp))}}for(var k in qsArrtemp){qsArrInput[k]=qsArrtemp[k]}if(sq){report("qsArrInput: "+showObject(qsArrInput))}for(k in qsArrInput){if(k){val=qsArrInput[k];if(val=="none"){continue}if(val){e?e+=("&"+k+"="+val):e+=(k+"="+val)}else{e?e+=("&"+k):e+=(k)}}}if(b||f||d){c=b;if(e){c+=("?"+e)}}else{if(e){c+="&"+e}}if(sq){report("modifyQueryString output "+c)}return c}function findFirstElementChildNode(b){for(var a=0;a<b.childNodes.length;a++){if(b.childNodes[a].nodeType!=3){return b.childNodes[a]}}}function switchViewEditMode(d,k){if(k=="row"){tr=findParentElementByNodeName(d,"tr");L=tr.childNodes.length;for(var j=0;j<L;j++){if(tr.childNodes[j].nodeName.toLowerCase()=="td"){td=tr.childNodes[j];if(td.className.indexOf("view_b_")!=-1){continue}if(td.className.indexOf("t_spacer")!=-1){continue}if(td.childNodes[0]){var m=td.childNodes[0];if(m.childNodes[0]){var c=findFirstElementChildNode(m);if(c){var g=c.nodeName.toLowerCase();var b=c.getAttribute("name");report("nN: "+g+" name: "+b+"\n");if(!b){continue}if(g=="textarea"||g=="input"||g=="select"){continue}var f=document.createElement("textarea");a=document.getElementById("linebreakDummy");if(!a){var a=document.createElement("div");document.body.appendChild(a);a.id="linebreakDummy"}a.style.width=c.offsetWidth;a.className=c.className;a.style.position="absolute";a.style.whiteSpace="normal";a.style.border="1px solid green";a.style.padding="3px";a.style.left="-100000px";c.parentNode.appendChild(a);var e=c.innerHTML;e=e.replace(/\n/gi,"xxx<br/>");a.innerHTML=e;lbdOffsetHeight=a.offsetHeight;a.innerHTML="";f.value=c.innerHTML;f.style.border="1px solid red";f.style.padding="2px";f.style.height=lbdOffsetHeight+"px";f.name=b;m.removeChild(c);m.appendChild(f)}}}}}}}function thisMovie(a){if(navigator.appName.indexOf("Microsoft")!=-1){return document.getElementById(a)}else{return document[a]}}function radioVal(a){for(var b=0;b<a.length;b++){if(a[b].checked){return a[b].value}}return false}function menuVal(b){var a=new Array();var e=0;for(var d=0;d<b.options.length;d++){if(b.options[d].selected){a[e]=(b.options[d].value);e++}}return a};
