﻿$(document).ready(function(){var a=0;$(".contentLeft p img").each(function(){var b=$(this);var c=b.parents("p");if(c.children().length>1){if($(this).parent().parent().parent().parent().attr("class")=="roundBorderLeft"){c.css({"float":"left"})}else{b.css({"float":"left"});c.css({"padding-left":"10px",clear:"none"});b.clone().insertBefore(c);b.remove()}}else{if(checkIfElementContainsTextNodes(b.parent())||$(this).parent().parent().parent().parent().attr("class")=="roundBorderLeft"){c.css({"float":"left"})}else{b.css({"float":"left"});c.css({"padding-left":"10px",clear:"none"});b.clone().insertBefore(c);b.remove()}}a++});SyntaxHighlighter.all()});function checkIfElementContainsTextNodes(a){$(a).each(function(){for(var b=0;b<this.childNodes.length;b++){if(this.childNodes[b].nodeType==3){return true}}});return false}function ShowNewsletterSamples(a){}function Blind(c,e,f,g,a){var b;if(typeof(g)=="undefined"){g=true}var d=document.getElementById(c);if(g){if(d.offsetHeight<f){b=f}else{b=e}}else{if(d.offsetWidth<f){b=f}else{b=e}}AdjustSize(c,b,g,a)}var showHideElement=new Array();function showElement(b){var a=document.getElementById(b).getElementsByTagName("ul")[0];if(a){showHideElement[a.id]="show";window.setTimeout("doDisplay('"+a.id+"',true)",0)}}function hideElement(b){var a=document.getElementById(b).getElementsByTagName("ul")[0];if(a){showHideElement[a.id]="hide";window.setTimeout("doDisplay('"+a.id+"',false)",1)}}function doDisplay(b,a){if(a){if(showHideElement[b]=="show"){document.getElementById(b).style.display="block"}}else{if(showHideElement[b]=="hide"){document.getElementById(b).style.display="none"}}}function AdjustSize(f,e,h,b){if(typeof(h)==undefined){h=true}var g=document.getElementById(f);var a;if(typeof(b)!=undefined){a=document.getElementById(b)}var c=false;if(h){c=g.offsetHeight<e}else{c=g.offsetWidth<e}var d=-2;if(c){d=2}if(h){g.style.height=(g.offsetHeight+d)+"px";g.style.display="";if(a){a.style.height=(a.offsetHeight+(d*-1))+"px";if(a.style.height=="0px"){a.style.display="none"}}if((c&&g.offsetHeight<e)||(!c&&g.offsetHeight>e)){window.setTimeout("AdjustSize('"+f+"', "+e+", "+h+", '"+b+"')",1)}}else{g.style.width=(g.offsetWidth+d)+"px";g.style.display="";if(a){a.style.width=(a.offsetWidth+(d*-1))+"px";if(a.style.width=="0px"){a.style.display="none"}}if((c&&g.offsetHeight<e)||(!c&&g.offsetHeight>e)){window.setTimeout("AdjustSize('"+f+"', "+e+", "+h+", '"+b+"')",1)}}}var newsletterDefaultValue="";function initiateNewsletterForm(a){newsletterDefaultValue=document.getElementById(a).value;document.getElementById(a).className="inactiv"}function handleNewsletterForm(c,a){if(c!=null&&document.getElementById(c)!=null){if(a){if(document.getElementById(c).value==newsletterDefaultValue){document.getElementById(c).value="";document.getElementById(c).className=""}}else{if(document.getElementById(c).value==""){document.getElementById(c).value=newsletterDefaultValue;document.getElementById(c).className="inactiv"}}}}function RenderIndex(f){var d="";var e=document.getElementsByTagName("h2");for(var c=0;c<e.length;c++){var b="";if(c%2==0){b=' style="clear:left;"'}d+="<li"+b+'><a href="#edl'+c+'">'+e[c].innerHTML+"</a></li>";var a=document.createElement("a");a.setAttribute("name","edl"+c);a.setAttribute("id","edl"+c);e[c].parentNode.insertBefore(a,e[c])}document.getElementById(f).innerHTML='<ul class="indexList">'+d+'</ul><div class="clear" style="height:20px"></div>'}var tour={root_id:"ProductTour",root_animation_class:"tourActive",headline_id:"TourHeadline",button_id:"TourButton",indicator_id:"TourIndicator",canvas_id:"TourCanvas",canvas_inner_id:"TourInner",item_width:514,time_animation:600,items:null,index:0,offset:0,button_prev:null,button_next:null,indicator_items:null};tour.initiate=function(){getId(tour.root_id).className=tour.root_animation_class;tour.items=getId(tour.root_id).getElementsByTagName("li");if(tour.items.length>1){getId(tour.canvas_id).style.width=tour.item_width+"px";getId(tour.canvas_inner_id).style.width=(tour.item_width*tour.items.length)+"px";var b="";for(var a=0;a<tour.items.length;a++){tour.items[a].style.width=tour.item_width+"px";if(tour.items[a].getElementsByTagName("h2")[0]){b+='<a onmousedown="tour.go_to('+a+');"> <span>'+tour.items[a].getElementsByTagName("h2")[0].innerHTML+"</span></a>";tour.items[a].getElementsByTagName("h2")[0].style.display="none"}}getId(tour.indicator_id).innerHTML=b;tour.indicator_items=getId(tour.indicator_id).getElementsByTagName("a");getId(tour.indicator_id).style.marginLeft=parseInt((tour.items.length*20*(-1))/2)+"px";getId(tour.headline_id).innerHTML='<h2 class="flag">'+tour.items[tour.index].getElementsByTagName("h2")[0].innerHTML+"</h2>";getId(tour.button_id).innerHTML="";tour.button_prev=document.createElement("a");tour.button_prev.className="buttonPrev";tour.button_prev.innerHTML="<span>vorheriger</span>";tour.button_prev.onmousedown=function(){tour.click_prev()};tour.button_next=document.createElement("a");tour.button_next.className="buttonNext";tour.button_next.innerHTML="<span>nächster</span>";tour.button_next.onmousedown=function(){tour.click_next()};getId(tour.button_id).appendChild(tour.button_prev);getId(tour.button_id).appendChild(tour.button_next);tour.indicator_items[tour.index].className="current"}};tour.click_prev=function(){var a=tour.index-1;tour.go_to(a)};tour.click_next=function(){var a=tour.index+1;tour.go_to(a)};tour.go_to=function(a){if(!isNaN(parseInt(a))){if(a<0){a=tour.items.length-1}else{if(a>=tour.items.length){a=0}}if(a==0){tour.offset=0}else{tour.offset=tour.item_width*a*(-1)}tour.move_canvas_inner();getId(tour.headline_id).innerHTML='<h2 class="flag">'+tour.items[a].getElementsByTagName("h2")[0].innerHTML+"</h2>";tour.indicator_items[tour.index].className="";$("#pTSliderNav li").eq(tour.index).removeAttr("class");tour.index=a;tour.indicator_items[a].className="current";$("#pTSliderNav li").eq(tour.index).addClass("current")}};tour.move_canvas_inner=function(){$(getId(tour.canvas_inner_id)).animate({marginLeft:tour.offset+"px"},tour.time_animation,function(){})};function getId(a){return document.getElementById(a)}function initiateRoundBorder(a){if(navigator.userAgent.indexOf("MSIE 6.")>-1){}else{var h=document.getElementById(a);if(h){var c=h.getElementsByTagName("img");for(var b=0;b<c.length;b++){if(c[b].getAttribute("rel")!="noBorder"&&c[b].parentNode.getAttribute("rel")!="noBorder"&&c[b].parentNode.parentNode.getAttribute("rel")!="noBorder"&&c[b].parentNode.parentNode.parentNode.getAttribute("rel")!="noBorder"&&c[b].parentNode.parentNode.parentNode.parentNode.getAttribute("rel")!="noBorder"&&c[b].parentNode.parentNode.parentNode.parentNode.parentNode.getAttribute("rel")!="noBorder"&&c[b].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.getAttribute("rel")!="noBorder"&&c[b].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.getAttribute("rel")!="noBorder"&&c[b].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.getAttribute("rel")!="noBorder"){var g,f,e,d;g=document.createElement("div");f=document.createElement("div");e=document.createElement("div");d=document.createElement("div");var j=c[b];if(j.getAttribute("align")=="right"){g.className="roundBorderRight"}else{g.className="roundBorderLeft"}j.removeAttribute("align");c[b].parentNode.replaceChild(g,c[b]);d.appendChild(j);e.appendChild(d);f.appendChild(e);g.appendChild(f)}}}}}function checkForNewsletterExamples(e){var a=document.getElementsByTagName("a");var d=new Array();for(var c=0;c<a.length;c++){if(a[c].getAttribute("href")!=null){if(a[c].getAttribute("href").indexOf(e)>-1){d.push(a[c])}}}if(d.length>0){for(var b=0;b<d.length;b++){$(d[b].parentNode).load("/Includes/NewsletterExampleBanner.aspx #Coverflow",function(){iniateCoverflow();$("a[rel^='prettyPhoto']").prettyPhoto({theme:"mailworx"})})}}}function checkForFaceBookFanBox(e){var a=document.getElementsByTagName("a");var d=new Array();for(var c=0;c<a.length;c++){if(a[c].getAttribute("href")!=null){if(a[c].getAttribute("href").indexOf(e)>-1){d.push(a[c])}}}if(d.length>0){for(var b=0;b<d.length;b++){d[b].parentNode.innerHTML='<iframe src="http://www.facebook.com/plugins/likebox.php?id=344012702239&amp;width=218&amp;connections=0&amp;stream=false&amp;header=false&amp;height=62&amp;css=http://www.mailworx.info/App_Themes/facebook_fan_box.css" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:218px; height:62px;" allowTransparency="true"></iframe>'}}}function addTopAnchor(a){var d=document.getElementById("ctl00_pnlContent");if(d){var b=d.getElementsByTagName(a);if(b.length>0){for(var c=0;c<b.length;c++){if(c!=0&&b[c].className=="flag"){var e=document.createElement("a");b[c].appendChild(e);e=$(b[c]).find("a:first");e.html("<span>top</span>");e.attr("class","topAnchor");e.click(scrollToTop)}}}}}function createTop(a){if(!a){a=".topAnchorText"}var b=$(a);if(b.length>0){b.each(function(c,d){if($(d).attr("name")){$(d).click(function(){scrollToTop()}).removeAttr("href").html($(d).attr("name").replace("_"," "))}})}}function scrollToTop(){$("html, body").animate({scrollTop:"0px"},"slow")}function generateLinkButton(){var d="linkbutton";var b=document.getElementsByTagName("a");var e=null;if(b.length>0){for(var c=0;c<b.length;c++){if(b[c].className==d){var a=b[c].innerHTML;b[c].innerHTML='<span class="before">&nbsp;</span><span class="data"><span class="inner">'+a+'</span></span><span class="after">&nbsp;</span>'}}}}function ShowBackButton(){var a=window.history.length;var b=1;if($.browser.msie){b=0}if(a==b){if(document.getElementById("backLink")){document.getElementById("backLink").innerHTML=""}}};
