var wload;var is_ie;var is_gecko;var is_mac_moz;var browser;var mchar="@";var mstr="mailto";var aktueldialog;var myMouseDownOnGriff;var LayerPosObj={side_service:0,side_serviceHOut:-272,top_service:0,top_serviceVOut:-123,FloatingEditorLayer:0,FloatingEditorLayerHOut:-420};var dragobj=null;var refobj=null;var FloatingEditorXpos=null;var FloatingEditorYpos=null;var ServiceXpos=null;var ServiceYpos=null;var clickPageTarget;var moveableEditLayer=0;var editorObj={};var editorObjTextareaName;var aktueldialogEditor;var tim=0;var getCSSStyleCascade_val;var F2;checkbrowser();window.onmousedown=dialogcheck;document.onmousedown=startdragIt;document.onmousemove=dragIt;document.onmouseup=stopdragIt;function setReiterGroup(b,a){if(document.getElementById("r0")){for(i=0;i<rgroup.length;i++){r=rgroup[i];if(b==r){document.getElementById(r).style.zIndex=20;document.getElementById("lichtkante_"+r).bgColor="#FFFFFF";document.getElementById("seitel_"+r).src=ir_aktiv_l.src;document.getElementById("seiter_"+r).src=ir_aktiv_r.src;document.getElementById("flaeche_"+r).bgColor="#EEEEEE"}else{document.getElementById("seitel_"+r).src=ir_iaktiv_l.src;document.getElementById("seiter_"+r).src=ir_iaktiv_r.src;document.getElementById(r).style.zIndex=0;document.getElementById("flaeche_"+r).bgColor="#BBBBBB";document.getElementById("lichtkante_"+r).bgColor="#CCCCCC"}}if(a!="noaction"){if(b=="r1"){window.setTimeout("pagePreview('preview')",10)}if(b=="r2"){window.setTimeout("pagePreview('design')",10)}}}}function getStartWindowSize(){if(is_ie){fensterhoehe_start=document.body.clientHeight+29}else{fensterhoehe_start=window.outerHeight}if(is_ie){fensterbreite=document.body.clientWidth+8}else{fensterbreite=window.outerWidth}}function goClickPageTarget(){document.location.href=clickPageTarget}function cancelBubbling(a){if(is_ie){window.event.cancelBubble=1}if((is_gecko)&&(!is_safari)){a.stopPropagation()}}function resizeWindow(b,a){if(is_ie){window.resizeTo(b,a)}else{window.outerHeight=a}}function showElement(b,a,c){c=90;if(!document.getElementById(b)){return}klappbereich=document.getElementById(b);if(is_ie){fensterbreite=document.body.clientWidth+8}else{fensterbreite=window.outerWidth}if(klappbereich.style.display=="none"){if(is_ie){klappbereich.style.display="inline"}else{klappbereich.style.display="inline"}document.getElementById("img_"+b).src="../images/icon_klapppfeildown.gif";if(is_ie){window.resizeTo(fensterbreite,a)}else{window.outerHeight=a+c}}else{klappbereich.style.display="none";document.getElementById("img_"+b).src="../images/icon_klapppfeilup.gif";if(is_ie){window.resizeTo(fensterbreite,fensterhoehe_start)}else{window.outerHeight=fensterhoehe_start}}}function setEditLayerHeigth(){editLayerHeigth=document.getElementById("maintable").offsetHeight;document.getElementById("img_dist_top_service").style.height=editLayerHeigth;if(is_ie){document.getElementById("editlayer_dummy").style.height=editLayerHeigth}if(document.edit.switch_service.value=="top_service"){document.edit.editlayerheighttop.value=editLayerHeigth}else{document.edit.editlayerheightside.value=editLayerHeigth}}function getScrollTop(){if(!is_ie){myScrollTop=window.scrollY}if(is_ie){myScrollTop=document.body.scrollTop}return myScrollTop}function checkforOpenWindows(){if((wload)&&(!wload.closed)){wload.focus()}}function initEditmode(){if(document.edit.show_all_fields.value==1){activate_all_fields(1)}}function addEditmodePadding(){elArr=document.getElementsByTagName("div");elArrlength=elArr.length;for(i=0;i<elArrlength;i++){el=elArr[i];pL=parseInt(el.style.paddingLeft);if(!pL){pL=0}el.style.paddingLeft=(pL+10)+"px"}}function readPositions(){FloatingEditorLayerWidth=434;FloatingEditorLayerHeight=106;xyArr=document.edit.ecargopos.value.split("x");FloatingEditorXpos=xyArr[0];FloatingEditorYpos=xyArr[1];if(document.edit.ecargosize.value){xyArr=document.edit.ecargosize.value.split("x");FloatingEditorLayerWidth=xyArr[0];FloatingEditorLayerHeight=xyArr[1]}if(is_ie){bodyHeight=document.clientHeight;bodyWidth=document.clientWidth}else{bodyWidth=window.innerWidth;bodyHeight=window.innerHeight}if(FloatingEditorXpos>(bodyWidth-FloatingEditorLayerWidth)){FloatingEditorXpos=bodyWidth-FloatingEditorLayerWidth}if(FloatingEditorYpos>(bodyHeight-FloatingEditorLayerHeight)){FloatingEditorYpos=bodyHeight-FloatingEditorLayerHeight}}function writePositions(){thispos=parseInt(FloatingEditorXpos)+"x"+parseInt(FloatingEditorYpos);document.edit.ecargopos.value=thispos;if(window.save_editor_position){save_editor_position(thispos)}}function pagePreview(a){if(a=="preview"){hide_Vmarker(0);deactivate_all_fields();switch_icm_visiblity("none","preview")}else{hide_Vmarker(1);switch_icm_visiblity("inline");activate_all_fields(document.edit.show_all_fields.value)}}function switch_icm_visiblity(b,a){allDivsArr=document.getElementsByTagName("div");allDivsArrLength=allDivsArr.length;for(i=0;i<allDivsArrLength;i++){myDiv=allDivsArr[i];if(((myDiv.id.indexOf("icm_")!=-1||hasClassName(myDiv,"icm_")))||(a&&myDiv.id.indexOf("icmp_")!=-1)){if(allDivsArr[i].style.display=="none"){myVis="inline"}else{myVis="none"}if(b){myVis=b}myDiv.style.display=myVis}}document.edit.icm_visiblity.value=myVis}function activate_all_fields(b,a){newstate=0;aktuelstate=document.edit.show_all_fields.value;if(aktuelstate==0){newstate=1}if(b){newstate=b}if(newstate==1){if(a!="preview"){document.edit.show_all_fields.value=1}allSpansArr=document.getElementsByTagName("div");allSpanslength=allSpansArr.length;for(i=0;i<allSpanslength;i++){myspan_id=allSpansArr[i].id;if(myspan_id.indexOf("elife_")!=-1){myspan_feldname=myspan_id.substr(6,100);switchEditMode(myspan_feldname,"all")}}return}if(newstate==0){deactivate_all_fields();if(a!="preview"){document.edit.show_all_fields.value=0}}}function scfover(a){return}function scfout(a){}function fieldActivate(a){a.style.paddingLeft=0;a.style.paddingTop=0;a.style.paddingRight=0;a.style.paddingBottom=0;a.style.border="1px solid";a.style.borderColor="#BBBBBB #FFFFFF #FFFFFF #BBBBBB"}function fieldDeActivate(a){return;a.style.paddingTop="1px";a.style.paddingRight="1px";a.style.paddingBottom="1px";a.style.borderLeft="1px solid #BBBBBB"}function switchEditMode(a,c){el=document.getElementById("elife_"+a);field=document.getElementById(a);life_field=document.getElementById("life_"+a);infospan=document.getElementById("infospan_"+a);infotext=infospan.innerHTML;if(c!="all"){if(el.style.display=="none"){deactivate_all_fields()}if(!editorObj[field.id]){if(document.edit.editorTextareabyUser){document.edit.editorTextareabyUser.value=""}}}field.name=field.id;if(!is_ie){field.style.fontFamily=getCSSStyle(life_field,"font-family");field.style.fontWeight=getCSSStyle(life_field,"font-weight");field.style.fontSize=getCSSStyle(life_field,"font-size");field.style.lineHeight=getCSSStyle(life_field,"line-height");if(!field.style.color){field.style.color=getCSSStyle(life_field,"color")}}else{field.style.fontSize=getCSSStyle(life_field,"fontSize");field.style.fontFamily=getCSSStyle(life_field,"fontFamily");field.style.fontWeight=getCSSStyle(life_field,"fontWeight");field.style.color=getCSSStyle(life_field,"color")}fieldActivate(field,"click");if(!field.style.backgroundColor){field.style.backgroundColor="#F8F8F8"}lifeWidth=life_field.style.width;if((field.style.width=="")&&((field.cols==33)||(field.size==33))){if((infotext.indexOf("l")!=-1)&&(lifeWidth=="100%")){lifeWidth="80%"}field.style.width=lifeWidth}lifeHeight="";if((field.style.height=="")&&(field.rows==33)){lifeHeight=life_field.offsetHeight+"";if(lifeHeight.indexOf("%")!=-1){lifeHeight=parseInt(lifeHeight)+"%"}else{lifeHeight=parseInt(lifeHeight);if(lifeHeight<=0){lifeHeight=14}lifeHeight+="px"}}if(lifeHeight){field.style.height=lifeHeight}if(is_ie){field.style.marginTop="-1px";field.style.marginBottom="-1px"}field.style.overflow="hidden";if(editorObj[field.id]&&editorObj[field.id].isFloatingEditor==0){}else{if(life_field){life_field.style.display="none"}if(editorObj[field.id]){el.style.display="block"}else{el.style.display="inline"}}if(c!="all"){if((fadeEditorbuttons)&&editorObj[editorObjTextareaName]){editorObj[editorObjTextareaName].switchButtonModeFade(editorObjTextareaName)}fadeEditorbuttons=1;try{field.focus()}catch(b){}}}function deactivate_all_fields(){allSpansArr=document.getElementsByTagName("div");allSpanslength=allSpansArr.length;for(i=0;i<allSpanslength;i++){mySpan=allSpansArr[i];mySpanEditId=mySpan.id;if(mySpanEditId.indexOf("elife_")!=-1){if(mySpan.style.display!="none"){mySpanId=mySpanEditId.substr(1,mySpanEditId.length);myFieldId=mySpanId.substr(5,mySpanId.length);is_editorfield=0;if(editorObj[myFieldId]){myVal=getContentForField();is_editorfield=1}else{myVal=document.getElementById(myFieldId).value;myVal=myVal.replace(/\n/gi,"<br>")}mySpan.style.display="none";myLifeSpan=document.getElementById(mySpanId);fieldDeActivate(myLifeSpan);showImage=0;infospan=document.getElementById("infospan_"+mySpanId);if(infospan){infospanText=infospan.innerHTML;if(infospanText.indexOf("/")!=-1){showImage=1}}if((!is_editorfield)&&showImage&&(myVal.match(/^[a-zA-Z0-9-_]+\.(jpg)|(jpeg)|(gif)|(png)$/))){if(document.getElementById("img_"+mySpanId)){CeImagePath=infospan.innerHTML;document.getElementById("img_"+mySpanId).src=CeImagePath+myVal;myLifeSpan.style.display="none"}}else{if(myVal==""){myVal="&nbsp;"}myLifeSpan.innerHTML=myVal;if(mySpanId.indexOf("bild")!=-1){myLifeSpan.style.display="none"}myLifeSpan.style.display="block"}}}}}function hide_Vmarker(a){allSpansArr=document.getElementsByTagName("div");allSpanslength=allSpansArr.length;for(i=0;i<allSpanslength;i++){mySpan=allSpansArr[i];mySpanEditId=mySpan.id;if(mySpanEditId.indexOf("life_")!=-1){if(a==0){mySpan.style.borderLeftWidth=0}else{mySpan.style.borderLeftWidth=1}}}}function test(){alert("test")}function submitWarn(b,a){if(confirm(b)==true){a.submit()}}function submitform(a){a.submit()}function submitsprachauswahl(a){document.selectversion.submit()}function fensterauf(b,c,a){if(b=="kmicrosite"){(a.indexOf("emode=1")!=-1)?res="yes":res="no";F2=window.open(a,"microsite","toolbar=no,location=no,menubar=no,statusbar=no,scrollbars=no,resizable="+res+",width=798,height=560,left=0,top=0")}if(b=="edituserrigths"){F2=window.open("userrights.php?"+c,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=700,left=10,top=10")}if(b=="PDFgen"){F2=window.open("/cms/pdf_generation/pdfgen.php?"+c+"&r="+document.location.href,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=480,height=720,left=0,top=0")}if(b=="email"){F2=window.open("/cms/email.php?"+c,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=500,left=0,top=0")}if(b=="productfeatures"){F2=window.open("/cms/productfeatures.php?"+c,"","toolbar=no,location=no,menubar=no,scrollbars=no,resizable=yes,width=520,height=280,left=0,top=0")}if(b=="productfeatures_icon_only"){F2=window.open("/cms/productfeatures.php?"+c,"","toolbar=no,location=no,menubar=no,scrollbars=no,resizable=yes,width=260,height=280,left=0,top=0")}if(b=="formgenerator"){F2=window.open("/cms/mod/formgenerator/formgenerator.php?"+c,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600,left=0,top=0")}if(b=="compareproducts"){F2=window.open(a+c,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=1024,height=810,left=0,top=0")}if(b=="productform"){F2=window.open(a+c,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=800,left=0,top=0")}if(b=="cleaningagents_details"){F2=window.open(a+c,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=800,left=0,top=0")}if(b=="appadvisor"){F2=window.open(a+c,"","toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,status=no,width=794,height=560,left=20,top=20")}if(b=="pumpadvisor"){F2=window.open(a+c,"","toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,status=no,width=794,height=560,left=20,top=20")}if(b=="html2pdf"){F2=window.open(a+c,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400,left=20,top=20")}if(b=="productoutput"){F2=window.open(a+c,"","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=800,left=0,top=0")}if(b=="printtemplate"){F2=window.open("/cms/popups/printtemplate.php?"+c,"","toolbar=no,location=no,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=1024,left=0,top=0")}}function openNewWindow(c,a,b){window.open(c,a,b)}function Dfensterauf(c,a,b){F2=window.open(c,"download","toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=340,height=160,left=-10,top=-10")}function FlashMovie(a,f,b,k,g,j,c,m,e){wmode="transparent";if(is_mac_moz){wmode="transparent"}document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+g+",0,0,0' width='"+b+"' height='"+k+"' id='"+f+"'>");document.write("<param name='movie' value='"+a+"' />");document.write("<param name='FlashVars' value='"+e+"'>");document.write("<param name='quality' value='"+j+"' />");document.write("<param name='menu' value='"+c+"' />");document.write("<param name='bgcolor' value='"+m+"' />");document.write("<param name='wmode' value='"+wmode+"'/>");document.write("<embed src='"+a+"' swLiveConnect='true' menu='"+c+"' wmode='"+wmode+"' FlashVars='"+e+"' quality='"+j+"' bgcolor='"+m+"' width='"+b+"' height='"+k+"' name='"+f+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");document.write("</object>")}function popup(c,a,b){F2=window.open(c,"download","toolbar=no,location=no,menubar=no,scrollbars=no,resizable=yes,width="+a+",height="+b+",left=-10,top=-10")}function popupLayer(k,e,u,v,c){if(!c){c={}}var q=0;if(document.compatMode=="CSS1Compat"||c.usePopupLayerObj){var a=new popupLayerObj(k,e,u,v,c);return}if(!e){e=796}if(!u){u=600}if(window.is_editmode){return}if(!v){v="K&Auml;RCHER"}if(!window.popupLayer_text_close){var b="&nbsp;&nbsp;&nbsp;"}else{var b=window.popupLayer_text_close}var y,m,p,n,g,x;if(c){c.popupImgPos?y=c.popupImgPos:y=0;c.popupImgArr?m=c.popupImgArr:m="";c.text_pdf?p=c.text_pdf:p="";c.text_print?n=c.text_print:n="";c.scrolling?g=c.scrolling:g="no";c.onclose?x=c.onclose:x="";c.function_print?function_print=c.function_print:function_print="window.print();"}if(m){popupImgNum=m.length}if(q){alert("getWindowHeight():"+getWindowHeight()+"\ndocument.body.offsetHeight:"+document.body.offsetHeight+"\ndocument.body.scrollHeight:"+document.body.scrollHeight+"\ndocument.body.scrollTop:"+document.body.scrollTop+"\nlayerContentTop: "+this.layerContentTop+"\n")}popupLayerElement=document.getElementById("popupLayer");if(!popupLayerElement){zIndex=1000;layerTrans=27;popupLayerTransImg="popupLayerTrans.png";layerHeight=document.body.clientHeight;if(document.body.scrollHeight>layerHeight){layerHeight=document.body.scrollHeight}layerWidth=document.body.clientWidth;if(document.body.scrollWidth>layerWidth){layerWidth=document.body.scrollWidth}layerHeight+="px";layerWidth+="px";layerTop=0;layerPosition="absolute";popupLayerDimmer=document.createElement("div");popupLayerDimmer.id="popupLayerDimmer";if(document.all){popupLayerDimmer.style.cssText="z-index:"+zIndex+"; background-color:black; position:"+layerPosition+"; left:0; top:"+layerTop+"; width: "+layerWidth+"; height:"+layerHeight+"; filter: alpha(opacity = "+layerTrans+");-moz-opacity: 0."+layerTrans+"; opacity: 0."+layerTrans+";"}else{popupLayerDimmer.style.cssText="z-index:"+zIndex+"; background-image:url(/cms/images/"+popupLayerTransImg+"); position:"+layerPosition+"; left:0; top:"+layerTop+"; width: "+layerWidth+"; height:"+layerHeight+";"}document.body.appendChild(popupLayerDimmer);popupLayerElement=document.createElement("div");popupLayerElement.id="popupLayerElement";popupLayerElement.className="popuplayer";popupLayerElement.style.cssText="z-index:"+zIndex+"; position:absolute; left:0; top:0; width:100%; height:100%;";document.body.appendChild(popupLayerElement);registerEventListeners(popupLayerElement,"click",function(){popupLayerClose(x)},0);var j=document.createElement("div");var s=getWindowHeight()/2+document.body.scrollTop-20;registerEventListeners(j,"click",function(A){A.cancelBubble=true},0);var f='<table class="popuplayerFrame" border="0" width="100%" height="100%" cellpadding="0" cellspacing="0"><tr><td height="100%" width="90%" valign="top" id="popuplayer_content_td" class="content_td">';f+='<div class="titlebar"><div class="title">'+v+"</div>";f+='<div class="button_close" style="" onclick="popupLayerClose(\''+x+"')\">"+b+"&nbsp;</div>";if(p){f+='<div class="button_pdf" onclick="">'+p+"</div>"}if(n){f+='<div class="button_print" onclick="'+function_print+'">'+n+"</div>"}f+="</div>";f+="{popupcontent}";f+='</td><td class="rt"></td></tr>';f+='<tr><td class="lb"></td><td class="rb"></td></tr></table>';if(k.match(/.swf$/)){j.style.cssText="z-index:"+zIndex+"; position:absolute; left:50%; top:"+s+"; width:"+(e+10)+"px; height:"+(u+10)+"px; margin-top:-"+u/2+"px; margin-left:-"+e/2+"px;";flashCode='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+e+'" height="'+u+'" id="backgroundSound" align="">';flashCode+='<param name="movie" value="'+k+'">';flashCode+='<param name="quality" value="high">';flashCode+='<param name="bgcolor" value="#FFFFFF">';flashCode+='<param name="wmode" value="transparent">';flashCode+='<embed id="backgroundSound" wmode="transparent" src="'+k+'" quality="high" bgcolor="#FFFFFF"  width="'+e+'px" height="'+u+'px" name="backgroundSound" align="" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer"></embed>';flashCode+="</object>";j.innerHTML=f.replace("{popupcontent}",flashCode);popupLayerElement.appendChild(j)}else{if(k.match(/(.(jpg)|(gif)|(png))$/)){j.style.cssText="z-index:"+zIndex+"; position:absolute; left:50%; top:"+s+"px; width:"+(e+10)+"px; height:"+(u+10)+"px; border:0px solid red; margin-top:-"+u/2+"px; margin-left:-"+e/2+"px;";var o='<img id="popupImage" src="'+k+'" width="'+e+'px" height="'+u+'px">';j.innerHTML=f.replace("{popupcontent}",o);popupLayerElement.appendChild(j)}else{if(document.getElementById(k)){j.style.cssText="z-index:"+zIndex+"; position:absolute; left:50%; top:"+s+"px; width:"+(e+10)+"px; height:"+(u+10)+"px; border:0px solid red; margin-top:-"+u/2+"px; margin-left:-"+e/2+"px;";j.innerHTML=f;popupLayerElement.appendChild(j);j.innerHTML=f.replace("{popupcontent}","");popupLayerElement.appendChild(j);document.getElementById("popuplayer_content_td").appendChild(document.getElementById(k));document.getElementById(k).style.display="block"}else{var z=0;if(document.all){z=2}j.style.cssText="z-index:"+zIndex+"; position:absolute; left:50%; top:"+s+"px; width:"+(e+10)+"px; height:"+(u+10)+"px; border:0px solid red; margin-top:-"+u/2+"px; margin-left:-"+e/2+"px;";var o='<iframe frameborder="0" width="'+(e)+'px" height="'+(u)+'px" scrolling="'+g+'" src="'+k+'"></iframe>';j.innerHTML=f.replace("{popupcontent}",o);popupLayerElement.appendChild(j)}}}if(m){arrowLeft=document.createElement("img");arrowRight=document.createElement("img");arrowLeft.style.cssText="z-index:100; cursor:pointer; border:0px solid red; position:absolute; left:10px; top:"+(u-30)+"px;";arrowRight.style.cssText="z-index:100; cursor:pointer; border:0px solid red; position:absolute; left:"+(e-30)+"px; top:"+(u-34)+"px;";arrowLeft.src="/cms/templates/karcher/images/arrow_popuplayer_left.gif";arrowRight.src="/cms/templates/karcher/images/arrow_popuplayer_right.gif";j.appendChild(arrowLeft);j.appendChild(arrowRight);registerEventListeners(arrowLeft,"click",function(A){y--;if(y<0){y=popupImgNum-1}document.getElementById("popupImage").src=m[y];A.cancelBubble=true},0);registerEventListeners(arrowRight,"click",function(A){y++;if(y==popupImgNum){y=0}document.getElementById("popupImage").src=m[y];A.cancelBubble=true},0)}}}function popupLayerClose(a){document.body.removeChild(document.getElementById("popupLayerDimmer"));document.body.removeChild(document.getElementById("popupLayerElement"));if(a=="back"){window.history.back()}}function popupLayerResize(){var j=document.getElementById("popupLayerDimmer");if(j){var e=document.getElementById("firstContainer");if(!e){e=document.body}var c=0;var g=e.scrollWidth;var b=e.scrollHeight;var f=getWindowWidth();var a=getWindowHeight();if(b<=a){b=a}else{c=(document.all?20:15)}if(g<=f){g=f}document.getElementById("popupLayerDimmer").style.height=b+"px";document.getElementById("popupLayerDimmer").style.width=g-c+"px"}}var lastColor="#FFFFFF";var lastObj;function roll(a,b){if(lastObj){lastObj.bgColor=lastColor}lastColor=a.bgColor;a.bgColor=b;lastObj=a}function rollback(a){a.bgColor=lastColor}function rollclass(a,b){a.className=b}function rollImg(a,b){document[a].src=b.src}function rollImgBg(b,e,c,a){document.getElementById(b).src=e.src;document.getElementById(c).bgColor=a}function activateInputField(a){myobj=document.getElementById(a);d=myobj.disabled;if(d==1){myobj.disabled=0}else{myobj.disabled=1}}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.l){l=100}else{l=a.l}if(!a.resize){resize="no"}else{resize=a.resize}if(!a.menubar){menubar="no"}else{menubar=a.menubar}if(!a.status){status="no"}else{status=a.status}if(!a.scrollen){scrollen="no"}else{scrollen=a.scrollen}if(!a.edge){edge="raised"}else{edge=a.edge}if(!a.loc){loc="no"}else{loc=a.loc}if(!a.modus){modus="modeless"}else{modus=a.modus}myDialogArguments=a.args;_features="toolbar=no,status="+status+",location="+loc+",menubar="+menubar+",scrollbars="+scrollen+",resizable="+resize+",width="+(w-12)+",height="+(h-26)+",left="+l+",top="+t;if(a.windowmode=="inline"){window["cargowindow_"+window.cwCounter]=new cargowindowObj({url:url,width:w,height:h,left:l,top:t,cwCounter:window.cwCounter})}else{aktueldialog=window.open(url,"",_features)}return aktueldialog}function dialogcheck(){if((aktueldialogEditor)&&(aktueldialogEditor.focus)){aktueldialogEditor.focus()}if((wload)&&(!wload.closed)){if((aktueldialog)&&(aktueldialog.focus)){aktueldialog.focus()}}}function switch_service_direction(){if(document.edit.switch_service.value=="top_service"){document.edit.switch_service.value="side_service"}else{document.edit.switch_service.value="top_service"}document.edit.submit()}function startdragIt(a){if(window.toggleTicker){toggleTicker()}MouseUpMenue=0;checkforOpenWindows();a=(a)?a:event;dragobj=(a.target)?a.target:a.srcElement;refobj=null;if(dragobj){el=dragobj.id;switch(el){case"FloatingEditorGriff":dragobj=document.getElementById("FloatingEditorLayer");refobj=document.getElementById("FloatingEditorLayer");if(is_mac_moz){moveDummy=document.getElementById("moveDummy");FloatingEditorLayer=document.getElementById("FloatingEditorLayer");FloatingEditorTable=document.getElementById("FloatingEditorTable");moveDummy.style.display="block";moveDummy.style.width=FloatingEditorTable.offsetWidth+"px";moveDummy.style.height=FloatingEditorTable.offsetHeight+"px";moveDummy.style.left=FloatingEditorLayer.offsetLeft+"px";moveDummy.style.top=FloatingEditorLayer.offsetTop+"px";dragobj=moveDummy}break}if(refobj){OffsetLeft=parseInt(refobj.offsetLeft);OffsetTop=parseInt(refobj.offsetTop);dragdistLeft=parseInt(a.clientX)-OffsetLeft;dragdistTop=parseInt(a.clientY)-OffsetTop}if(refobj){return false}}}function dragIt(a){a=(a)?a:event;if((dragobj)&&(refobj)){thisposH=(a.clientX-dragdistLeft)+"px";thisposV=(a.clientY-dragdistTop)+"px";dragobj.style.left=thisposH;dragobj.style.top=thisposV;FloatingEditorXpos=thisposH;FloatingEditorYpos=thisposV}}function stopdragIt(a){if(window.M_out){M_out()}if(window.checkforOpenWindows){checkforOpenWindows()}if((dragobj)&&(refobj)){if((is_mac_moz)&&(dragobj.id=="moveDummy")){moveDummy=document.getElementById("moveDummy");moveDummy.style.display="none";FloatingEditorLayer=document.getElementById("FloatingEditorLayer");FloatingEditorLayer.style.left=moveDummy.style.left;FloatingEditorLayer.style.top=moveDummy.style.top}if(window.writePositions){writePositions()}}dragobj=null;refobj=null}function ismaxlength(b){var a=b.getAttribute?parseInt(b.getAttribute("maxlength")):"";if(b.getAttribute&&b.value.length>a){b.value=b.value.substring(0,a)}}function adjustTextareaHeight(b,a){if(parseInt(a.style.height)!=parseInt(a.scrollHeight)){a.overflow;a.style.height=parseInt((a.scrollHeight)+2)+"px"}}function readCSSRule(c,g){var f;var b=document.styleSheets.item(document.styleSheets.length-2);if(b.rules){f=b.rules}if(b.cssRules){f=b.cssRules}var e=f.length;for(var a=0;a<e;a++){if(f.item(a).selectorText==("."+c)){return f.item(a).style[g]}}}function switchLangTabs(b,c,a){allLangTabs=document.getElementsByTagName("div");allLangTabsL=allLangTabs.length;for(i=0;i<allLangTabsL;i++){thisTab=allLangTabs[i];if(thisTab.id.indexOf("langTab_"+b+"_"+c+"_bar")!=-1){if(thisTab.id=="langTab_"+b+"_"+c+"_bar_"+a){thisTab.style.position="";thisTab.style.top="0px"}else{thisTab.style.position="absolute";thisTab.style.top="-100000px"}}}}function switchLangTabsVersionSettings(f){var a=getElementsByClassNameM(document,"table","langsettingstable");for(var b=0;b<a.length;b++){var e=a[b];var c=document.getElementById(a[b].id+"_tab");if(e.id.indexOf("settingstable_"+f+"_table")!=-1){e.style.position="relative";e.style.top="0";c.className="settings_lang_tab_active"}else{e.style.position="absolute";e.style.top="-100000px";c.className="settings_lang_tab_inactive"}}document.form_edit_page.activeLanguage.value=f}function synchronizeInputElement(a){thisNodeName=a.nodeName;val=a.value;id2=a.getAttribute("id2");id2Stamm=id2.split("_synchonize_")[0];if(thisNodeName.toLowerCase()=="select"){allEl=document.getElementsByTagName("select");allElLength=allEl.length;for(i=0;i<allElLength;i++){thisel=allEl[i];if(thisel.getAttribute("id2")&&(thisel.getAttribute("id2").indexOf(id2Stamm)!=-1)){thisel.value=val}}}if(thisNodeName.toLowerCase()=="input"){allEl=document.getElementsByTagName("input");allElLength=allEl.length;for(i=0;i<allElLength;i++){thisel=allEl[i];if(thisel.getAttribute("id2")&&(thisel.getAttribute("id2").indexOf(id2Stamm)!=-1)){thisel.value=val}}}}function createDealerSessionSaveLinks(f){if(document.all||navigator.userAgent.toLowerCase().indexOf("safari")!=-1){allLinksArr=document.getElementsByTagName("a");L=allLinksArr.length;for(var e=0;e<L;e++){var b=allLinksArr[e];var c=b.getAttribute("href");if(c){if(c.indexOf("avascript")!=-1){continue}if(c.indexOf("?")!=-1){c+="&PHPSESSID="+f}else{c+="?PHPSESSID="+f}b.setAttribute("href",c)}}}}function cdromToolToggleTextbox(b,a){if(a=="alternCont"){if(document.getElementById("alt["+b+"]").checked==true){document.getElementById("box["+b+"]").style.display="block";document.getElementById("barr["+b+"]").checked=false}else{document.getElementById("box["+b+"]").style.display="none"}}else{if(a=="hide"){if(document.getElementById("barr["+b+"]").checked==true){document.getElementById("box["+b+"]").style.display="none";document.getElementById("alt["+b+"]").checked=false}}}}function save_cdrom_form(f,c,j,e){var b=getHTMLVarsForAjax("all",c);var g="";if(e==0){var a=function(m,k){document.getElementById(j).innerHTML=k}}else{var a=function(m,k){document.location.reload()}}g=new ajax("/cms/mod/cdrom/a_target.php",a,"post",0,b+"&func="+f,j)}function open_cdrom_preview(a){window.open(a,"funky")}function markInPage(p,g){sq=0;targetNodesArr=g.split(",");for(var n=0;n<targetNodesArr.length;n++){var s=targetNodesArr[n];elArr=document.getElementsByTagName(s);if(elArr){var q=elArr.length;if(sq){report("Length: "+s+": "+q)}for(var m=0;m<q;m++){var e=elArr[m];var j="";var c=e.getAttribute("href");var a=e.getAttribute("src");var b=e.getAttribute("name");if(c&&c.indexOf(p)!=-1){j=1;if(sq){report("found str: "+p+" in:"+e.nodeName)}}if(a&&a.indexOf(p)!=-1){j=1;if(sq){report("found str: "+p+" in:"+e.nodeName)}}if(b&&b.indexOf(p)!=-1){j=1;if(sq){report("found str: "+p+" in:"+e.nodeName)}}if(j){var u=document.createElement("div");var f=-8;var v=-60;u.style.cssText="position:relative; left:"+f+"px; top:"+v+"px; width:0px; height:0px; z-index:10000; border:0px solid blue";var o='<div class="htmlmarker" style="position:absolute">';o+='<div class="htmlmarker_text">'+p+"</div>";o+="</div>";u.innerHTML=o;e.parentNode.insertBefore(u,e)}}}}};
