//###############################################################
//# WebEdit.js                                                  #
//#                                                             #
//# Author       : MoreNet                                      #
//# Date Created : 04 Aug 2007                                  #
//# Description  : This javascript file contains the functions  #
//#                that control the WebEdit login and the code  #
//#                that is responsible for importing any further#
//#                javascript files based on the current login  #
//#                state of the user.                           #
//###############################################################

//###############################
//# Declarations                #
//###############################
var _mstrWebEditURL = '/WebEdit/'; //Note: Always end this var with a / char
var _mintEscCount = 0;
var _mstrLoginBox = '';
var _mobjActiveLink;
var _mobjActiveImage;
var _mstrStyleSheets = '';
var _mstrActiveContentBlock = '';
var _mstrActiveTag = null;
var _mstrActiveSelection = null;

//###############################
//# Event Hooks                 #
//###############################
window.document.onkeyup = _icb_KeyDown; // Monitors key presses to check for Escape x 3

//###############################
//# Functions                   #
//###############################
function _icb_GetActiveLink()
{
  return _mobjActiveLink;
}
function _icb_GetActiveImage()
{
  return _mobjActiveImage; 
}

function _icb_DesignMode(pstrId)
{
  document.getElementById(pstrId).contentWindow.document.designMode = 'On';  
}

function _icb_EnableFrame(pstrId)
{

  var strHTML    = mfGetStyleSheets();
  var strContent = document.getElementById('_icb_' + pstrId + '_defaultcontent').value;

  //unescape any chars that we have had to escape for js reasons and also set any src locations  
  strContent = ICB_ReplaceString(strContent, '|~|~|', '\'');
  strContent = ICB_ReplaceString(strContent, '&&lltt;;', '&lt;');
  strContent = ICB_ReplaceString(strContent, '&&ggtt;;', '&gt;');
  strContent = ICB_ReplaceString(strContent, 'src="/', 'src="' + window.location.protocol + '//' + window.location.host + '/');    
     
  //Set the innerHTML content of the iframe to be the style sheets from the parent + the content html
  strHTML += strContent
      
  document.getElementById(pstrId).contentWindow.document.body.innerHTML = strHTML;
  
  //Transfer the initialised default content into the original content field so that we can track changes  
  document.getElementById('_icb_' + pstrId.toLowerCase() + '_originalcontent').value = document.getElementById(pstrId).contentWindow.document.body.innerHTML;
  
  //If this is a stand alone toolbar then record the current content of the editor in the _icb_<EditorId>_content field so that when the form is posted back
  //we know what the content was
  if (document.getElementById('_icb_' + pstrId.toLowerCase() + '_toolbar') != null && document.getElementById('_icb_' + pstrId.toLowerCase() + '_content'))
    document.getElementById('_icb_' + pstrId.toLowerCase() + '_content').value = document.getElementById('_icb_' + pstrId.toLowerCase() + '_originalcontent').value;
 
  //Turn it into edit mode
  document.getElementById(pstrId).contentWindow.document.body.style.margin = '0px';
  document.getElementById(pstrId).contentWindow.document.body.style.padding = '0px';  
  
  if (navigator.appName == 'Netscape')  
  {
    setTimeout('_icb_DesignMode(\'' + pstrId + '\')', 1000);
  }
  else
  {
    document.getElementById(pstrId).contentWindow.document.designMode = 'On';  
    document.getElementById(pstrId).contentWindow.document.execCommand('styleWithCSS', false, false);
  }

  //Enable the event handlers that will track chnages to the html
  document.getElementById(pstrId).contentWindow.addEventListener('keydown',_icb_DocChange, true);
  document.getElementById(pstrId).contentWindow.addEventListener('keyup',_icb_DocChange, true);
  document.getElementById(pstrId).contentWindow.addEventListener('mouseup',_icb_DocChange, true);     
  document.getElementById(pstrId).contentWindow.addEventListener('click',_icb_OnClick, true);     

  //Re-size it based on it's content  
  setTimeout('_icb_ResizeFrame("' + pstrId + '")', 100);  
}

function _icb_ResizeFrame(pstrId, blnCodeView)
{

  //only need to resize the frame if the the current content block is NOT a stand alone editor as they have set heights
  if (document.getElementById('_icb_' + pstrId.toLowerCase() + '_toolbar') == null)
  {
    var blnSetHeight = false;  
    var intAddHeight = 0;
    
    if (blnCodeView)
      intAddHeight = 50;    
    
    if (document.getElementById(pstrId).height != 0)
    {    
      document.getElementById(pstrId).parentNode.style.height = document.getElementById(pstrId).height + 'px';
      blnSetHeight = true;    
    }  
    document.getElementById(pstrId).height=0;

    document.getElementById(pstrId).height=document.getElementById(pstrId).contentWindow.document.body.scrollHeight + intAddHeight;
    document.getElementById(pstrId).parentNode.style.height = '';
  }
}

function _icb_OnClick(e)
{
  _mstrActiveTag       = e.explicitOriginalTarget.parentNode;
  _mstrActiveSelection = e.explicitOriginalTarget;
}

function _icb_DocChange(e)
{
  var strId = '';
    
  //If the user is pasting information into a content block store the default behaviour and call our own clean paste
  if ((e.ctrlKey && e.keyCode == e.DOM_VK_V) || (e.shiftKey && e.keyCode == e.DOM_VK_INSERT)) 
  { 
    if (navigator.appName == 'Netscape')
      ICB_Undo();
    else
      e.preventDefault();            
    strId = this.frameElement.id;
    setTimeout('ICB_OnAfterPaste(\'' + strId + '\')', 1);        
    return false;    
  }
  var strContent = '';
  
  _mstrActiveContentBlock = this.frameElement.id;      

  if (e != null && e.explicitOriginalTarget != null && e.explicitOriginalTarget.tagName.toLowerCase() == 'img')  
    ICB_RecordActiveImage(e.explicitOriginalTarget);
  else 
    ICB_RecordActiveImage(null);
 

  //If the user has deleted everything from the content block, including the style sheet elements, then add them
  //back in again (They can do this by selecting all and pressing the delete button) 
  _icb_ReInstateStyleSheets();
  
  _icb_ResizeFrame(this.frameElement.id); 

  //If this is a stand alone toolbar then record the current content of the editor in the _icb_<EditorId>_content field so that when the form is posted back
  //we know what the content was
  if (document.getElementById('_icb_' + _mstrActiveContentBlock.toLowerCase() + '_toolbar') != null)
    document.getElementById('_icb_' + _mstrActiveContentBlock.toLowerCase() + '_content').value = ICB_ValidateXHTML(this.frameElement.contentWindow.document.body.innerHTML);
}

function _icb_ReInstateStyleSheets()
{

  //If the active content block does not include the style sheets at the top add them now
  if (document.getElementById(_mstrActiveContentBlock).contentWindow.document.body.innerHTML.indexOf('<!--linkstart-->') == -1 || document.getElementById(_mstrActiveContentBlock).contentWindow.document.body.innerHTML.indexOf('link rel') == -1)
  { 
    strContent = document.getElementById(_mstrActiveContentBlock).contentWindow.document.body.innerHTML;    
    document.getElementById(_mstrActiveContentBlock).contentWindow.document.body.innerHTML = mfGetStyleSheets() + strContent;
       
    if (navigator.appName != 'Netscape')  
      document.getElementById(_mstrActiveContentBlock).blur();    
    
  }   
  _icb_ResizeFrame(_mstrActiveContentBlock);
}

function _icb_GetScriptLocation()
{
  var intLoop     = 0;
  var strLocation = '';
  
  for (intLoop = 0; intLoop < document.getElementsByTagName('script').length; intLoop ++)
  {
    strLocation = document.getElementsByTagName('script')[intLoop].src;
    if (strLocation.toLowerCase().indexOf('js/webedit.js') != -1)
    {            
      strLocation = strLocation.substring(0, strLocation.toLowerCase().indexOf('js/webedit.js'))
      if (strLocation == '')
      {
        strLocation = window.location.href.toLowerCase().replace('http://', '').replace('https://', '');
        
        if (strLocation.indexOf('/') != -1)
          strLocation = strLocation.substring(strLocation.indexOf('/'));

        if (strLocation.lastIndexOf('/') != -1)
          strLocation = strLocation.substring(0, strLocation.lastIndexOf('/') + 1);          
      }
      break;
    }
  }  
  _mstrWebEditURL = strLocation;
}

function mfImportStyleSheets()
{
  var intLoop       = 0;
  var strLink       = '';
  var strHRef       = '';
  var intPos        = 0;
  var strWindowHref = '';
  
  for (intLoop = 0; intLoop < document.getElementsByTagName('link').length; intLoop ++)
  {          
    if (document.getElementsByTagName('link')[intLoop].rel.toLowerCase() == 'stylesheet')
    { 
    
      //extract the location of the style sheet         
      strHRef = document.getElementsByTagName('link')[intLoop].href;
    
      //if the style sheet location is not root relative then attempt to work out where it is by taking into account
      //the location of the containing page      
      if (strHRef.substring(0, 1) != "/" && navigator.appName.toLowerCase() == 'microsoft internet explorer')
      {
        strWindowHref = window.location.href;
        intPos = strWindowHref.toLowerCase().indexOf('.aspx');        
        if (intPos != -1)
        {        
          strWindowHref = strWindowHref.substring(0, intPos);              
          intPos = window.location.href.toLowerCase().lastIndexOf('/', intPos);
          if (intPos != -1)
          {
            strWindowHref = strWindowHref.substring(0, intPos + 1);
            strHRef = strWindowHref + strHRef;
          }              
        }
      }
      
      //Build the LINK tag to iport the current style sheet
      _mstrStyleSheets = _mstrStyleSheets + '<link ' +
                                              'rel="stylesheet" ' + 
                                              'type="' + document.getElementsByTagName('link')[intLoop].type + '" ' +
                                              'href="' + strHRef + '" ' +
                                              'media="' + document.getElementsByTagName('link')[intLoop].media + '" ' +
                                            '/>';
      
    }
  }       
}

function mfGetStyleSheets()
{
  var intLoop       = 0;
  var strLink       = '';
  var strHRef       = '';
  var intPos        = 0;
  var strWindowHref = '';
  var strRetVal     = '';
  
  for (intLoop = 0; intLoop < document.getElementsByTagName('link').length; intLoop ++)
  {          
    if (document.getElementsByTagName('link')[intLoop].rel.toLowerCase() == 'stylesheet')
    {     
      //extract the location of the style sheet         
      strHRef = document.getElementsByTagName('link')[intLoop].href;
    
      //if the style sheet location is not root relative then attempt to work out where it is by taking into account
      //the location of the containing page      
      if (strHRef.substring(0, 1) != "/" && navigator.appName.toLowerCase() == 'microsoft internet explorer')
      {
        strWindowHref = window.location.href;
        intPos = strWindowHref.toLowerCase().indexOf('.aspx');        
        if (intPos != -1)
        {        
          strWindowHref = strWindowHref.substring(0, intPos);              
          intPos = window.location.href.toLowerCase().lastIndexOf('/', intPos);
          if (intPos != -1)
          {
            strWindowHref = strWindowHref.substring(0, intPos + 1);
            strHRef = strWindowHref + strHRef;
          }              
        }
      }
      
      //Build the LINK tag to iport the current style sheet
      strRetVal = strRetVal + '<link ' +
                                'rel="stylesheet" ' + 
                                'type="' + document.getElementsByTagName('link')[intLoop].type + '" ' +
                                'href="' + strHRef + '" ' +
                                'media="' + document.getElementsByTagName('link')[intLoop].media + '" ' +
                              '/>';      
    }
  }       
  //Add our own default styles (i.e. <p> having a margin of 0)
  strRetVal = '<link ' +
                'rel="stylesheet" ' + 
                'type="text/css" ' +
                'href="' + _mstrWebEditURL + 'css/Default.css" ' +
                'media="screen" ' +
              '/>' + strRetVal;
  return  '<!--linkstart-->' + strRetVal + '<!--linkend-->';
}

function _icb_ShowUserList()
{ 
  var intWidth    = 600;
  var intHeight   = 500;
  var intLeft     = (screen.availWidth / 2) - (intWidth / 2);
  var intTop      = (screen.availHeight / 2) - (intHeight / 2) - 40;  
    
  window.open(_mstrWebEditURL + 'aspx/UserList.aspx', '_blank', 'Height=' + intHeight + ', Width=' + intWidth + ', Top=' + intTop + ', Left=' + intLeft + ', toolbar=no, statusbar=yes, menu=no, scrollbars=no, resizable=yes');  
}

function _icb_KeyDown(e)
{ 
  //Declarations
  var objEvent;

  //Cross browser compliance for identifying key press events
  if (navigator.appName.toLowerCase() == 'microsoft internet explorer' || navigator.platform.toLowerCase() == 'macintel'){ objEvent = event} else {objEvent = e}

  //Function that monitors every key press on the page and displays a centered login box
  //if it detects that the escape key has been pressed quickly 3 times in a row
  if (objEvent.keyCode == 27)
  {  
    //If the registration box is being displayed hide this and do not count this key press towards the login
    if (document.getElementById('_icb_Registration').style.display == '')
      _icb_RegisterLater();
    else
    {    
      _mintEscCount++;    
      if (document.getElementById('_icb_Login').style.display=='')
      {
        document.getElementById('_icb_Login').style.display='none';
        _mintEscCount=0;
        
      }
      else if (_mintEscCount >= 3)
      {    
      
        var intHeight=202;
        var intWidth=392;
        var intTop=0;
        var intLeft=0;
        
        //Before we show the Login box post an async ajax request to the server to see if a valid User data file exists.
        //If it does not then we need to tell the user that this is the first login for this website and that the username
        //and password that they enter here will become the master admin user account.
        _icb_IsFirstLoginRequest();
        
        if (navigator.platform.toUpperCase() == 'MACINTEL')
        {        
          intTop = (self.innerHeight / 2) - (intHeight / 2) - 100;
          intLeft = (self.innerWidth / 2) - (intWidth / 2);                  
        }
        else
        {
          intTop = (document.documentElement.clientHeight / 2) - (intHeight / 2) - 100;
          intLeft = (document.documentElement.clientWidth / 2) - (intWidth / 2);
        }
        if (intTop < 0) 
          intTop = 0;
        
        document.getElementById('_icb_Login').style.top=parseInt(intTop) + 'px';
        document.getElementById('_icb_Login').style.left=parseInt(intLeft) + 'px';
        document.getElementById('_icb_Login').style.display='';
        document.getElementById('_icb_username').focus();
                 
        _mintEscCount=0;
      }
      else
      {    
        window.setTimeout('_mintEscCount=0;',2000);      
      }
    }
  }
}

//Function that determines whether a valid User data file exists on the server for this website and
//therefore whether this is the first time that anyone has logged into WebEdit on this website
function _icb_IsFirstLoginRequest()
{
  //Declarations
  var objHTTPRequest  = _icb_CreateHTTPRequestObject();  //Create an ajax request object

  //Setup an ajax GET command to the IsFirstLogin.aspx script to see if this is the first time
  //anyone has logged into WebEdit on this website.
  objHTTPRequest.open("GET", _mstrWebEditURL + 'aspx/IsFirstLogin.aspx', true);
  
  //Build the function that will be executed the HTTPRequest object's onreadystatechange event
  objHTTPRequest.onreadystatechange = function()
                                      {
                                        if (objHTTPRequest.readyState==4) 
                                          _icb_IsFirstLoginResponse(objHTTPRequest.responseText);
                                      };
  //Send the ajax request
  objHTTPRequest.send(null)  
}

function _icb_IsFirstLoginResponse(pstrResponse)
{
  //If we have received a YES as a result of our IsFirstLoginRequest function call then
  //we need to tell the user that the username and password that they enter now will be
  //used as the Master Admin user from this point forward.
  if (pstrResponse == "YES")
    document.getElementById('_icb_LoginFormHeader').innerHTML = 'This is the first time that WebEdit has been used on this website.  The email and password that you enter here will therefore be used to create the Master Administration account.';
  else
    document.getElementById('_icb_LoginFormHeader').innerHTML = '<br />To edit the content of your website please login using the fields below:';    
}

function _icb_Login()
{

  //Declarations

  var objHTTPRequest  = _icb_CreateHTTPRequestObject();  //Create an ajax request object

  var strParams       = '_icb_username=' + 
                        document.getElementById('_icb_username').value + '&' +
                        '_icb_password=' + 
                        document.getElementById('_icb_password').value + '&' +
                        '_icb_page=' + 
                        escape(window.location.href);

  //Disable the Login button and fiels so that the user cannot keep clicking or changing them mid post
  document.getElementById('_icb_LoginFields').style.display = 'none';
  document.getElementById('_icb_LoginWaitMessage').style.display = '';  
  
  //Setup an ajax GET command to the IsFirstLogin.aspx script to see if this is the first time
  //anyone has logged into WebEdit on this website.
  objHTTPRequest.open("POST", _mstrWebEditURL + 'aspx/Login.aspx', true);
  objHTTPRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  objHTTPRequest.setRequestHeader("Content-length", strParams.length);
  objHTTPRequest.setRequestHeader("Connection", "close");
  
  //Build the function that will be executed the HTTPRequest object's onreadystatechange event
  objHTTPRequest.onreadystatechange = function()
                                      {
                                        if (objHTTPRequest.readyState==4) 
                                          _icb_LoginResponse(objHTTPRequest.responseText);
                                      };
  //Send the ajax request
  objHTTPRequest.send(strParams)  
  
}

function _icb_LoginResponse(pstrResponse)
{

  //If the ajax response was FAILED then the login details are incorrect  
  if (pstrResponse != '' && (! isNaN(pstrResponse)) && pstrResponse != '0')
  {    
    //Login details have been validated so show the Success message and refresh
    document.getElementById('_icb_LoginWaitMessage').style.display = 'none';
    if (navigator.platform.toUpperCase() != 'MACINTEL')
      document.getElementById('_icb_LoginSuccess').style.display = '';
    
    //Now refresh the page so that the content block components can test for the WebEdit cookies
    //and render themselves in Edit mode.
    window.location.href=window.location.href;        
  }  
  else
  {
    //Have received a login response so hide the please wait message
    document.getElementById('_icb_LoginWaitMessage').style.display = 'none';    
    
    //If the Login script has returned a message show it to user otherwise just show the invalid login try again message
    if (pstrResponse.indexOf('<message>') != -1)
    {
      document.getElementById('_icb_LoginFailureMessage').innerHTML = pstrResponse.replace('<message>', '').replace('</message>', '')
      document.getElementById('_icb_LoginFailureMessage').style.display = '';
    }
    else
    {
      document.getElementById('_icb_LoginFailure').style.display = '';
      document.getElementById('_icb_tryagain').focus();
    }    
  }
}
function _icb_TryLoginAgain()
{
  //User wishes to try the login again after a failure so show the login fields again
  document.getElementById('_icb_LoginFields').style.display = '';
  document.getElementById('_icb_LoginWaitMessage').style.display = 'none';
  document.getElementById('_icb_LoginFailure').style.display = 'none';      
  document.getElementById('_icb_LoginFailureMessage').style.display = 'none';      
  document.getElementById('_icb_username').focus();  
}

function _icb_PasswordReset()
{
  //Declarations
  var objHTTPRequest  = _icb_CreateHTTPRequestObject();  //Create an ajax request object

  //Make sure that the user has entered their email address in the login Email field
  if (document.getElementById('_icb_username').value != '')
  {  
    if (confirm('Are you sure you wish to reset your WebEdit password?'))
    {
      objHTTPRequest.open("GET", _mstrWebEditURL + 'aspx/ResetPassword.aspx?Email=' + escape(document.getElementById('_icb_username').value), true);
      
      //Build the function that will be executed the HTTPRequest object's onreadystatechange event
      objHTTPRequest.onreadystatechange = function()
                                          {
                                            if (objHTTPRequest.readyState==4) 
                                              _icb_PasswordResetResponse(objHTTPRequest.responseText);
                                          };
      //Send the ajax request
      objHTTPRequest.send(null)  
      
      //Show the user that we are resetting their password
      document.getElementById('_icb_ForgottenPasswordLabel').innerHTML = 'Please wait...';
    }
  }
  else
    alert('Please enter your email address in the Email field before asking for your password to be reset');
}
function _icb_PasswordResetResponse(pstrResponse)
{
  if (pstrResponse == 'OK')
    document.getElementById('_icb_ForgottenPasswordLabel').innerHTML = 'Password Reset [<span style="text-decoration:underline; color:blue; cursor:pointer" title="Your password has been reset and an email containing your new password has been sent to the address specified" onclick="alert(\'Your password has been reset and an email containing your new password has been sent to the address specified\')">?</span>]';
  else
    document.getElementById('_icb_ForgottenPasswordLabel').innerHTML = 'Password NOT Reset! [<span style="text-decoration:underline; color:blue; cursor:pointer" title="' + pstrResponse + '" onclick="alert(\'' + pstrResponse + '\')">?</span>]<br /><a href="javascript:mfForgottenPasswordTryAgain()">try again</a>';
    
}
function mfForgottenPasswordTryAgain()
{
document.getElementById('_icb_ForgottenPasswordLabel').innerHTML = '<a href="javascript:_icb_PasswordReset();">I\'ve Forgotten My Password</a>';
}

function _icb_BuildLoginBox()
{

  //Declare a variable and populate it with the HTMl that will make up the Login Box layer
  var _strLoginBox = '<div id="_icb_Login" style="color:black;display:none; width:392px; height:202px; position:absolute;top:0px;left:0px; background-image:url(\'' + _mstrWebEditURL + 'images/LoginBox_Background.gif\');">' +
                       '<div style="font-family:arial; font-size:medium; text-align:right; margin-left:60px; height:60px; padding:10px; margin-top:4px; margin-right:10px;">' +
                         'WebEdit Login' +
                         '<div id="_icb_LoginFormHeader" style="color:black;padding-top:3px; text-align:center; font-size:x-small;">' +
                           '' +
                         '</div>' +
                       '</div>' +
                       '<div style="color:black;font-family:arial; font-size:small; text-align:center; margin-top:10px; margin-right:20px;">' +
                         '<div id="_icb_LoginFields" style="text-align:center; font-size:x-small;">' +
                           '<center>' +
                             '<form id="_icb_Loginform" method="post">' +                        
                               '<table summary="Table used for the purpose of laying out the Web Edit login fields" style="border:0px;padding:0px; margin:0px;">' +
                                 '<tr>' +
                                   '<td align=right style="color:black;border:0px;padding:0px; margin:0px;">Email:</td>' +
                                   '<td style="border:0px;padding:0px; margin:0px;"><input type="text" name="_icb_username" id="_icb_username" style="width:200px" onkeydown="if (event.keyCode == 13) {_icb_Login()}"/></td>' +
                                 '</tr>' +
                                 '<tr>' +
                                   '<td align=right style="color:black;border:0px;padding:0px; margin:0px;">Password:</td>' +
                                   '<td style="border:0px;padding:0px; margin:0px;"><input type="password" name="_icb_password" id="_icb_password" style="width:200px" onkeydown="if (event.keyCode == 13) {_icb_Login()}"/></td>' +
                                 '</tr>' +
                                 '<tr>' +
                                   '<td colspan="2" align="right" style="border:0px;padding:0px; margin:0px; text-align:right;">' +
                                     '<!--<div id="_icb_ForgottenPasswordLabel" style="float:left; margin-top:5px; margin-left:50px; text-align:center;"><a href="javascript:_icb_PasswordReset();">I\'ve Forgotten My Password</a></div>-->' + 
                                     '<div style="float:right;"><input id="cmdLogin" type="button" value="Login >" onclick="_icb_Login()" /></div></td>' +
                                 '</tr>' +
                               '</table>' +
                               '<input type="hidden" name="_icb_webeditlogin" />' +
                             '</form>' +
                           '<center>' +
                         '</div>' +
                         '<div id="_icb_LoginWaitMessage" style="text-align:center; font-size:medium; display:none">' +
                           '<br />Checking login details<br />Please wait...' +
                         '</div>' +
                         '<div id="_icb_LoginFailureMessage" style="text-align:center; font-size:medium; display:none">' +                           
                         '</div>' +                         
                         '<div id="_icb_LoginFailure" style="text-align:center; font-size:medium; display:none">' +
                           '<br />Invalid login details!<br /><br /><input type="button" id="_icb_tryagain" value="Try Again" onclick="_icb_TryLoginAgain();"/>' +
                         '</div>' +
                         '<div id="_icb_LoginSuccess" style="text-align:center; font-size:medium; display:none">' +
                           '<br />Login successfull!<br /><br />Please wait while we enable WebEdit' +
                         '</div>' +
                       '</div>' +
                     '</div>';

  //Write the Login layer to the document
  document.write(_strLoginBox);
}

function _icb_RegisterLater()
{  
  //Create a cookie to disable the registration box and hide it for now
  _icb_ShowRegistrationBox(false, true);
  document.cookie = 'DisableRegisterBox=Yes';   
}

function _icb_Register()
{
  //Declarations
  var objHTTPRequest = _icb_CreateHTTPRequestObject();  //Create an ajax request object
  var strParams;
  
  //Validate the registration details to ensure that the user has entered the required information
  if (_icb_VAlidateRegistrationDetails())
  {
    //Create a string to hold all of the form data
    strParams = '_icb_registrantsname=' + 
                  escape(document.getElementById('_icb_registrantsname').value) + '&' +
                '_icb_contactname=' + 
                  escape(document.getElementById('_icb_contactname').value) + '&' +
                '_icb_contactemail=' + 
                  escape(document.getElementById('_icb_contactemail').value) + '&' +
                '_icb_address1=' + 
                  escape(document.getElementById('_icb_address1').value) + '&' +
                '_icb_address2=' + 
                  escape(document.getElementById('_icb_address2').value) + '&' +
                '_icb_town=' + 
                  escape(document.getElementById('_icb_town').value) + '&' +
                '_icb_county=' + 
                  escape(document.getElementById('_icb_county').value) + '&' +
                '_icb_country=' + 
                  escape(document.getElementById('_icb_country').value);
  
    if (document.getElementById('_icb_contactable').checked)
      strParams = strParams + '&_icb_contactable=Yes';
    else
      strParams = strParams + '&_icb_contactable=No';
  
    //Disable the Register Later and Regiser Now buttons
    document.getElementById('cmdRegisterLater').disabled = true;
    document.getElementById('cmdRegisterNow').disabled = true;
    
    //Setup an ajax GET command to the IsFirstLogin.aspx script to see if this is the first time
    //anyone has logged into WebEdit on this website.
    objHTTPRequest.open("POST", _mstrWebEditURL + 'aspx/Register.aspx', true);
    objHTTPRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    objHTTPRequest.setRequestHeader("Content-length", strParams.length);
    objHTTPRequest.setRequestHeader("Connection", "close");
    
    //Build the function that will be executed the HTTPRequest object's onreadystatechange event
    objHTTPRequest.onreadystatechange = function()
                                        {
                                          if (objHTTPRequest.readyState==4) 
                                            _icb_RegisterResponse(objHTTPRequest.responseText);
                                        };
    //Send the ajax request
    objHTTPRequest.send(strParams)  
  }  
}

function _icb_RegisterResponse(pstrResponse)
{  
  window.location.href=window.location.href;
}

function _icb_VAlidateRegistrationDetails()
{
  //Declarations
  var strErrors = '';

  if (document.getElementById('_icb_registrantsname').value.replace(' ', '') == '')
    strErrors = strErrors + 'You must enter the name of the company or individual who is registering this product\n';
  if (document.getElementById('_icb_contactemail').value.replace(' ', '') == '')
    strErrors = strErrors + 'You must enter a contact email address\n';
  else
  {
    if (document.getElementById('_icb_contactemail').value.indexOf('.') == -1 || document.getElementById('_icb_contactemail').value.indexOf('@') == -1)
      strErrors = strErrors + 'You must enter a valid contact email address\n';  
  }
  
  if (strErrors == '')
    return true;
  else
    alert('Unable to register this product due to the following reasons:\n\n' + strErrors + '\nPlease resolve these issues and try again');        
}
function _icb_ExtractCookieValue(pstrName)
{
  var strCookie = document.cookie;
  var strValue  = '';
  var strValue  = '';
  
  //Check to see if the requested cookie actually exists in the document.cookie string  
  if (strCookie.toLowerCase().indexOf(pstrName.toLowerCase() + '=') != -1 &&
      strCookie.toLowerCase().indexOf(pstrName.toLowerCase() + '=&') == -1 &&
      strCookie.toLowerCase().indexOf(pstrName.toLowerCase() + '=;') == -1)
  {      
    strValue = strCookie.substring(strCookie.toLowerCase().indexOf(pstrName.toLowerCase() + '=') + pstrName.length + 1);
    if (strValue.indexOf('&') < strValue.indexOf(';') && strValue.indexOf('&') != -1)
      strValue = strValue.substring(0, strValue.indexOf('&'));
    else if (strValue.indexOf(';') != -1)
      strValue = strValue.substring(0, strValue.indexOf(';'));
  }
  
  try{strRetVal = ICB_ReplaceString(unescape(strValue), '+', ' ');} catch(e){strRetVal = ''}

  return strRetVal;
}
function _icb_ShowRegistrationBox(pblnShowHide, pblnOverride)
{

  //Declarations  
  var intTop = (document.documentElement.clientHeight / 2) - (423 / 2) - 100;
  var intLeft = (document.documentElement.clientWidth / 2) - (392 / 2);
    
  if (intTop < 0) intTop = 25;   

  if (document.cookie.toLowerCase().indexOf('mode=demo') != -1)
    alert('This feature has been disabled for the purpose of this demonstration');
  else
  {

    //Only show the registration box if it has not yet been disabled for this session
    if (document.cookie.toLowerCase().indexOf('disableregisterbox=yes') == -1 || pblnOverride)
    {  
      if (pblnShowHide)
      {
      
        document.getElementById('cmdRegisterLater').disabled = false;      
        document.getElementById('cmdRegisterNow').disabled = false;

        //Check to see if we have any existing registration details stored in cookies
        document.getElementById('_icb_registrantsname').value = _icb_ExtractCookieValue('RegistrantName');
        document.getElementById('_icb_contactname').value = _icb_ExtractCookieValue('ContactName');
        document.getElementById('_icb_contactemail').value = _icb_ExtractCookieValue('EmailAddress');
        document.getElementById('_icb_address1').value = _icb_ExtractCookieValue('Address1');
        document.getElementById('_icb_address2').value = _icb_ExtractCookieValue('Address2');
        document.getElementById('_icb_town').value = _icb_ExtractCookieValue('Town');
        document.getElementById('_icb_county').value = _icb_ExtractCookieValue('County');
        document.getElementById('_icb_country').value = _icb_ExtractCookieValue('Country');
        
        if (_icb_ExtractCookieValue('IsContactable').toLowerCase() == "yes" || document.getElementById('_icb_registrantsname').value == '')
          document.getElementById('_icb_contactable').checked = true;
        else
          document.getElementById('_icb_contactable').checked = false;      
      
        document.getElementById('_icb_Registration').style.top=parseInt(intTop) + 'px';
        document.getElementById('_icb_Registration').style.left=parseInt(intLeft) + 'px';  
        document.getElementById('_icb_Registration').style.display = '';
        document.getElementById('_icb_registrantsname').focus();
              
        //If the License.xml file does not yet exist explain to the user that this product needs to be registered
        if (document.cookie.toLowerCase().indexOf('_webeditlicense=fileexists=yes') == -1)    
          document.getElementById('_icb_RegistrationFormHeader').innerHTML = 'This is a new installation of the WebEdit product.  To activate this product please enter your registration details below:';
        else
          document.getElementById('_icb_RegistrationFormHeader').innerHTML = 'This installation of WebEdit has been registered with the following details:';
      }
      else
        document.getElementById('_icb_Registration').style.display = 'none';
    }
  }
}

function _icb_ShowPrivacyMessage()
{
  alert('We Respect Your Online Privacy:\n\n' +
        'The information that you enter on this registration page will never be passed on to third parties and MoreNet Ltd will only use it to information you of new products if you have ticked the box saying that you wish us to do so.\n\n' +
        'The purpose of requesting the registrant details are so that they can be stored in this website\'s /WebEdit/data/license/License.xml file and then used to validate your use of the WebEdit product against any domain licenses that you have or will purchase.  This validation occurs only when WebEdit is used on a live website (i.e. a website accessible via the internet).\n\n' +
        'Important - Please note that if you do not enter accurate registrant information we may be unable to validate your use of WebEdit.  Use of WebEdit on a live unlicensed domain name is strictly prohibited and use of the product in such cases may be suspended.');
}

function _icb_BuyLicense(pblnGoDirectToBuyTab)
{
  var intWidth              = 800;
  var intHeight             = 600;
  var intLeft               = (screen.availWidth / 2) - (intWidth / 2);
  var intTop                = (screen.availHeight / 2) - (intHeight / 2) - 40;  
  var strRegistrantId       = '';
  var strLicenseRequestType = '';
  var strCookies            = document.cookie.toLowerCase();
  var strTab                = ''

  //Attempt to extract the registrant id from the cookies collection
  if (strCookies.indexOf('registrantid=') != -1)
  {
    strRegistrantId = strCookies.substring(strCookies.indexOf('registrantid=') + 13);
    if (strRegistrantId.indexOf('&') != -1)
      strRegistrantId = strRegistrantId.substring(0, strRegistrantId.indexOf('&'));
  }  

  //Attempt to extract the licenserequesttype from the cookies collection
  if (strCookies.indexOf('licenserequesttype=') != -1)
  {
    strLicenseRequestType = strCookies.substring(strCookies.indexOf('licenserequesttype=') + 19);
    if (strLicenseRequestType.indexOf('&') != -1)
      strLicenseRequestType = strLicenseRequestType.substring(0, strLicenseRequestType.indexOf('&'));
  }  
  if (strLicenseRequestType == '')
    strLicenseRequestType = 'auto';

  //If the caller has asked that we go directly to the Buy tab then pass a Tab=3 param to the page
  if (pblnGoDirectToBuyTab)
    strTab = '&Tab=3';    

  //If we have a RegistrantId open the MyAccount window and pass it across
  if (strRegistrantId != '')
    window.open('http://www.License.MoreNet.co.uk/Products/WebEdit/MyAccount.aspx?Id=' + strRegistrantId + strTab + '&HostName=' + escape(location.hostname) + '&ParentPage=' + escape(window.location.href) + '&WebEditLocation=' + escape(_mstrWebEditURL), '_blank', 'Height=' + intHeight + ', Width=' + intWidth + ', Top=' + intTop + ', Left=' + intLeft + ', toolbar=no, statusbar=yes, menu=no, scrollbars=yes, resizable=yes');  
  else
    alert('This product has not yet been registered with MoreNet!\n\nPlease restart your browser, revisit this page and follow the registration process to obtain a valid registrant id.  Once you have done this you will be able to view your licensing information\n\nIf this problem persists please email Support@MoreNet.co.uk')
}

function _icb_AfterBuyLicense()
{
  mblnAllowNavigateAway = true;
  window.location.href  = window.location.href;
}

function _icb_RenewLicense()
{
  //Declarations
  var objHTTPRequest  = _icb_CreateHTTPRequestObject();  //Create an ajax request object

  //Setup an ajax GET command to the ClearLicenseKeys.aspx script.  This will remove the licenses keys for this installation
  objHTTPRequest.open("GET", _mstrWebEditURL + 'aspx/ClearLicenseKeys.aspx', true);
  
  //Build the function that will be executed the HTTPRequest object's onreadystatechange event
  objHTTPRequest.onreadystatechange = function()
                                      {
                                        if (objHTTPRequest.readyState==4) 
                                          _icb_RenewLicenseResponse(objHTTPRequest.responseText);
                                      };
  //Send the ajax request
  objHTTPRequest.send(null)  
}

function _icb_RenewLicenseResponse(pstrResponse)
{
  mblnAllowNavigateAway = true;
  window.location.href  = window.location.href;
}

function _icb_CreateHTTPRequestObject()
{
  var xmlhttp=false;
 
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)
  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
   try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
    try {
     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
     xmlhttp = false;
    }
   }
  @end @*/
  
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	  try {
		  xmlhttp = new XMLHttpRequest();		 
		  //xmlhttp.overrideMimeType('text/xml');
	  } catch (e) {
		  xmlhttp=false;
	  }
  }
  if (!xmlhttp && window.createRequest) {
	  try {
		  xmlhttp = window.createRequest();
	  } catch (e) {
		  xmlhttp=false;
	  }
  }
  return xmlhttp;
}   

function mfInEditMode()
{

  if (document.cookie.toLowerCase().indexOf('_websiteuser=id=') != -1 && document.cookie.toLowerCase().indexOf('_websiteuser=id=0') == -1)
    return true;
  else
    return false;
}

//###############################
//# Page Load Code              #
//###############################


//Set all p tags so that they do not carry a margin.  This will solve the double line break issue in WebEdit mode
document.write('<style' + ' type="text/css">p {margin:0px;}<\/style>');

//Store any style sheets that are linked to on this web page
mfImportStyleSheets();

_icb_GetScriptLocation();
_icb_BuildLoginBox();

//If we are in Edit mode (i.e. an administrator has logged in) then import the Toolbar js files
//if (mfInEditMode())
//{
  if (window.navigator.appName.toLowerCase() == 'microsoft internet explorer')
  {  
    //Import the Toolbar.js and ToolbarFunctions.js files    
    document.write('<scr' + 'ipt src="' + _mstrWebEditURL + 'js/ToolBar_IE.js">' + '<\/script>');
    document.write('<scr' + 'ipt src="' + _mstrWebEditURL + 'js/ToolBarFunctions_IE.js">' + '<\/script>');
    document.write('<scr' + 'ipt src="' + _mstrWebEditURL + 'js/SpellCheck_IE.js">' + '<\/script>');    
  }
  else
  {  
    //Import the Toolbar.js and ToolbarFunctions.js files
    document.write('<scr' + 'ipt src="' + _mstrWebEditURL + 'js/ToolBar_Mozilla.js">' + '<\/script>');
    document.write('<scr' + 'ipt src="' + _mstrWebEditURL + 'js/ToolBarFunctions_Mozilla.js">' + '<\/script>');
    document.write('<scr' + 'ipt src="' + _mstrWebEditURL + 'js/SpellCheck_Mozilla.js">' + '<\/script>');    
  }    
//}

/*<!--WARNING: If code below is modified in any way WebEdit will stop working!-->*/
/*<!--DO NOT MODIFY THE FOLLOWING CODE-->*/function _icb_Registration(){var _strHTML='';_strHTML=_strHTML+'\x3C\x64\x69\x76\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x20\x64\x69\x73\x70\x6C\x61\x79\x3A\x6E\x6F\x6E\x65\x3B\x20\x77\x69\x64\x74\x68\x3A\x33\x39\x32\x70\x78\x3B\x20\x68\x65\x69\x67\x68\x74\x3A\x34\x33\x32\x70\x78\x3B\x20\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3A\x61\x62\x73\x6F\x6C\x75\x74\x65\x3B\x74\x6F\x70\x3A\x30\x70\x78\x3B\x6C\x65\x66\x74\x3A\x30\x70\x78\x3B\x20\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x2D\x69\x6D\x61\x67\x65\x3A\x75\x72\x6C\x28\''+_mstrWebEditURL+'\x69\x6D\x61\x67\x65\x73\x2F\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E\x5F\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x2E\x67\x69\x66\'\x29\x3B"\x3E'+'\x3C\x64\x69\x76\x20\x73\x74\x79\x6C\x65\x3D"\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A\x61\x72\x69\x61\x6C\x3B\x20\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A\x6D\x65\x64\x69\x75\x6D\x3B\x20\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x72\x69\x67\x68\x74\x3B\x20\x6D\x61\x72\x67\x69\x6E\x2D\x6C\x65\x66\x74\x3A\x36\x30\x70\x78\x3B\x20\x68\x65\x69\x67\x68\x74\x3A\x36\x30\x70\x78\x3B\x20\x70\x61\x64\x64\x69\x6E\x67\x3A\x31\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x2D\x74\x6F\x70\x3A\x34\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x2D\x72\x69\x67\x68\x74\x3A\x31\x30\x70\x78\x3B"\x3E'+'\x57\x65\x62\x45\x64\x69\x74\x20\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E'+'\x3C\x64\x69\x76\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E\x46\x6F\x72\x6D\x48\x65\x61\x64\x65\x72"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x70\x61\x64\x64\x69\x6E\x67\x2D\x74\x6F\x70\x3A\x31\x30\x70\x78\x3B\x20\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x63\x65\x6E\x74\x65\x72\x3B\x20\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A\x78\x2D\x73\x6D\x61\x6C\x6C\x3B"\x3E'+''+'\x3C\x2F\x64\x69\x76\x3E'+'\x3C\x2F\x64\x69\x76\x3E'+'\x3C\x64\x69\x76\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A\x61\x72\x69\x61\x6C\x3B\x20\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A\x73\x6D\x61\x6C\x6C\x3B\x20\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x63\x65\x6E\x74\x65\x72\x3B\x20\x6D\x61\x72\x67\x69\x6E\x2D\x74\x6F\x70\x3A\x31\x35\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x2D\x72\x69\x67\x68\x74\x3A\x30\x70\x78\x3B"\x3E'+'\x3C\x64\x69\x76\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64\x73"\x20\x73\x74\x79\x6C\x65\x3D"\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x63\x65\x6E\x74\x65\x72\x3B\x20\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A\x78\x2D\x73\x6D\x61\x6C\x6C\x3B"\x3E'+'\x3C\x66\x6F\x72\x6D\x20\x73\x74\x79\x6C\x65\x3D"\x6D\x61\x72\x67\x69\x6E\x3A\x30\x3B"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E\x46\x6F\x72\x6D"\x20\x6D\x65\x74\x68\x6F\x64\x3D"\x70\x6F\x73\x74"\x20\x61\x63\x74\x69\x6F\x6E\x3D"'+_mstrWebEditURL+'\x61\x73\x70\x78\x2F\x52\x65\x67\x69\x73\x74\x65\x72\x2E\x61\x73\x70\x78"\x3E'+'\x3C\x63\x65\x6E\x74\x65\x72\x3E'+'\x3C\x74\x61\x62\x6C\x65\x20\x73\x75\x6D\x6D\x61\x72\x79\x3D"\x54\x61\x62\x6C\x65\x20\x75\x73\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x70\x75\x72\x70\x6F\x73\x65\x20\x6F\x66\x20\x6C\x61\x79\x69\x6E\x67\x20\x6F\x75\x74\x20\x74\x68\x65\x20\x57\x65\x62\x45\x64\x69\x74\x20\x72\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E\x20\x66\x69\x65\x6C\x64\x73"\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E'+'\x3C\x74\x72\x3E';_strHTML=_strHTML+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6C\x65\x66\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B\x20\x66\x6F\x6E\x74\x2D\x77\x65\x69\x67\x68\x74\x3A\x62\x6F\x6C\x64\x3B"\x3E\x52\x65\x67\x69\x73\x74\x72\x61\x6E\x74\'\x73\x20\x4E\x61\x6D\x65\x3A\x3C\x2F\x74\x64\x3E'+'\x3C\x74\x64\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\n'+'\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x74\x65\x78\x74"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x72\x65\x67\x69\x73\x74\x72\x61\x6E\x74\x73\x6E\x61\x6D\x65"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x72\x65\x67\x69\x73\x74\x72\x61\x6E\x74\x73\x6E\x61\x6D\x65"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x32\x33\x30\x70\x78"\x20\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E\x3D"\x69\x66\x20\x28\x65\x76\x65\x6E\x74\x2E\x6B\x65\x79\x43\x6F\x64\x65\x20\x3D\x3D\x20\x31\x33\x29\x20\x7B\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29\x7D"\x2F\x3E\n'+'\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6D\x69\x64\x64\x6C\x65"\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\n'+'\x28\x54\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x6F\x72\x20\x70\x65\x72\x73\x6F\x6E\x20\x72\x65\x67\x69\x73\x74\x65\x72\x69\x6E\x67\x20\x74\x68\x69\x73\x20\x70\x72\x6F\x64\x75\x63\x74\x29'+'\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x63\x6F\x6C\x73\x70\x61\x6E\x3D"\x32"\x20\x61\x6C\x69\x67\x6E\x3D"\x72\x69\x67\x68\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\n'+'\x3C\x68\x72\x20\x2F\x3E'+'\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6C\x65\x66\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x43\x6F\x6E\x74\x61\x63\x74\x20\x4E\x61\x6D\x65\x3A\x3C\x2F\x74\x64\x3E'+'\x3C\x74\x64\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x74\x65\x78\x74"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x6E\x74\x61\x63\x74\x6E\x61\x6D\x65"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x6E\x74\x61\x63\x74\x6E\x61\x6D\x65"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x32\x33\x30\x70\x78"\x20\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E\x3D"\x69\x66\x20\x28\x65\x76\x65\x6E\x74\x2E\x6B\x65\x79\x43\x6F\x64\x65\x20\x3D\x3D\x20\x31\x33\x29\x20\x7B\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29\x7D"\x2F\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6C\x65\x66\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B\x20\x66\x6F\x6E\x74\x2D\x77\x65\x69\x67\x68\x74\x3A\x62\x6F\x6C\x64\x3B"\x3E\x45\x6D\x61\x69\x6C\x20\x41\x64\x64\x72\x65\x73\x73\x3A\x3C\x2F\x74\x64\x3E';_strHTML=_strHTML+'\x3C\x74\x64\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x74\x65\x78\x74"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x6E\x74\x61\x63\x74\x65\x6D\x61\x69\x6C"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x6E\x74\x61\x63\x74\x65\x6D\x61\x69\x6C"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x32\x33\x30\x70\x78"\x20\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E\x3D"\x69\x66\x20\x28\x65\x76\x65\x6E\x74\x2E\x6B\x65\x79\x43\x6F\x64\x65\x20\x3D\x3D\x20\x31\x33\x29\x20\x7B\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29\x7D"\x2F\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6C\x65\x66\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x41\x64\x64\x72\x65\x73\x73\x3A\x3C\x2F\x74\x64\x3E'+'\x3C\x74\x64\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x74\x65\x78\x74"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x61\x64\x64\x72\x65\x73\x73\x31"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x61\x64\x64\x72\x65\x73\x73\x31"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x32\x33\x30\x70\x78"\x20\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E\x3D"\x69\x66\x20\x28\x65\x76\x65\x6E\x74\x2E\x6B\x65\x79\x43\x6F\x64\x65\x20\x3D\x3D\x20\x31\x33\x29\x20\x7B\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29\x7D"\x2F\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6C\x65\x66\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x74\x64\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x74\x65\x78\x74"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x61\x64\x64\x72\x65\x73\x73\x32"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x61\x64\x64\x72\x65\x73\x73\x32"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x32\x33\x30\x70\x78"\x20\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E\x3D"\x69\x66\x20\x28\x65\x76\x65\x6E\x74\x2E\x6B\x65\x79\x43\x6F\x64\x65\x20\x3D\x3D\x20\x31\x33\x29\x20\x7B\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29\x7D"\x2F\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6C\x65\x66\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x54\x6F\x77\x6E\x2F\x43\x69\x74\x79\x3A\x3C\x2F\x74\x64\x3E'+'\x3C\x74\x64\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x74\x65\x78\x74"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x74\x6F\x77\x6E"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x74\x6F\x77\x6E"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x32\x33\x30\x70\x78"\x20\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E\x3D"\x69\x66\x20\x28\x65\x76\x65\x6E\x74\x2E\x6B\x65\x79\x43\x6F\x64\x65\x20\x3D\x3D\x20\x31\x33\x29\x20\x7B\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29\x7D"\x2F\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E';_strHTML=_strHTML+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6C\x65\x66\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x43\x6F\x75\x6E\x74\x79\x2F\x53\x74\x61\x74\x65\x3A\x3C\x2F\x74\x64\x3E'+'\x3C\x74\x64\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x74\x65\x78\x74"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x75\x6E\x74\x79"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x75\x6E\x74\x79"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x32\x33\x30\x70\x78"\x20\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E\x3D"\x69\x66\x20\x28\x65\x76\x65\x6E\x74\x2E\x6B\x65\x79\x43\x6F\x64\x65\x20\x3D\x3D\x20\x31\x33\x29\x20\x7B\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29\x7D"\x2F\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x61\x6C\x69\x67\x6E\x3D"\x6C\x65\x66\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x63\x6F\x6C\x6F\x72\x3A\x62\x6C\x61\x63\x6B\x3B\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x43\x6F\x75\x6E\x74\x72\x79\x3A\x3C\x2F\x74\x64\x3E'+'\x3C\x74\x64\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x74\x65\x78\x74"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x75\x6E\x74\x72\x79"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x75\x6E\x74\x72\x79"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x32\x33\x30\x70\x78"\x20\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E\x3D"\x69\x66\x20\x28\x65\x76\x65\x6E\x74\x2E\x6B\x65\x79\x43\x6F\x64\x65\x20\x3D\x3D\x20\x31\x33\x29\x20\x7B\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29\x7D"\x2F\x3E\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x63\x6F\x6C\x73\x70\x61\x6E\x3D"\x32"\x20\x61\x6C\x69\x67\x6E\x3D"\x72\x69\x67\x68\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x30\x70\x78\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B"\x3E\n'+'\x50\x6C\x65\x61\x73\x65\x20\x69\x6E\x66\x6F\x72\x6D\x20\x6D\x65\x20\x6F\x66\x20\x66\x75\x74\x75\x72\x65\x20\x6F\x72\x20\x72\x65\x6C\x61\x74\x65\x64\x20\x70\x72\x6F\x64\x75\x63\x74\x73\n'+'\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x63\x68\x65\x63\x6B\x62\x6F\x78"\x20\x63\x68\x65\x63\x6B\x65\x64\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x6E\x74\x61\x63\x74\x61\x62\x6C\x65"\x20\x69\x64\x3D"\x5F\x69\x63\x62\x5F\x63\x6F\x6E\x74\x61\x63\x74\x61\x62\x6C\x65"\x2F\x3E\n'+'\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x74\x72\x3E'+'\x3C\x74\x64\x20\x63\x6F\x6C\x73\x70\x61\x6E\x3D"\x32"\x20\x61\x6C\x69\x67\x6E\x3D"\x72\x69\x67\x68\x74"\x20\x73\x74\x79\x6C\x65\x3D"\x62\x6F\x72\x64\x65\x72\x3A\x30\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x3A\x35\x70\x78\x20\x30\x20\x30\x20\x30\x3B\x20\x6D\x61\x72\x67\x69\x6E\x3A\x30\x70\x78\x3B\x20\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x72\x69\x67\x68\x74\x3B"\x3E'+'\x3C\x69\x6E\x70\x75\x74\x20\x69\x64\x3D"\x63\x6D\x64\x52\x65\x67\x69\x73\x74\x65\x72\x4C\x61\x74\x65\x72"\x20\x74\x79\x70\x65\x3D"\x62\x75\x74\x74\x6F\x6E"\x20\x76\x61\x6C\x75\x65\x3D"\x52\x65\x67\x69\x73\x74\x65\x72\x20\x4C\x61\x74\x65\x72"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x31\x30\x35\x70\x78"\x20\x6F\x6E\x63\x6C\x69\x63\x6B\x3D"\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x4C\x61\x74\x65\x72\x28\x29"\x20\x2F\x3E';_strHTML=_strHTML+'\x3C\x69\x6E\x70\x75\x74\x20\x69\x64\x3D"\x63\x6D\x64\x52\x65\x67\x69\x73\x74\x65\x72\x4E\x6F\x77"\x20\x74\x79\x70\x65\x3D"\x62\x75\x74\x74\x6F\x6E"\x20\x76\x61\x6C\x75\x65\x3D"\x52\x65\x67\x69\x73\x74\x65\x72\x20\x3E"\x20\x73\x74\x79\x6C\x65\x3D"\x77\x69\x64\x74\x68\x3A\x31\x30\x35\x70\x78"\x20\x6F\x6E\x63\x6C\x69\x63\x6B\x3D"\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x65\x72\x28\x29"\x20\x2F\x3E'+'\x3C\x2F\x74\x64\x3E'+'\x3C\x2F\x74\x72\x3E'+'\x3C\x2F\x74\x61\x62\x6C\x65\x3E'+'\x3C\x2F\x63\x65\x6E\x74\x65\x72\x3E'+'\x3C\x69\x6E\x70\x75\x74\x20\x74\x79\x70\x65\x3D"\x68\x69\x64\x64\x65\x6E"\x20\x6E\x61\x6D\x65\x3D"\x5F\x69\x63\x62\x5F\x77\x65\x62\x65\x64\x69\x74\x6C\x6F\x67\x69\x6E"\x20\x2F\x3E'+'\x3C\x2F\x66\x6F\x72\x6D\x3E'+'\x3C\x64\x69\x76\x20\x73\x74\x79\x6C\x65\x3D"\x6D\x61\x72\x67\x69\x6E\x3A\x35\x70\x78\x20\x32\x30\x70\x78\x20\x30\x20\x32\x30\x70\x78\x3B"\x3E\x54\x68\x69\x73\x20\x64\x61\x74\x61\x20\x77\x69\x6C\x6C\x20\x6F\x6E\x6C\x79\x20\x62\x65\x20\x75\x73\x65\x64\x20\x74\x6F\x20\x76\x61\x6C\x69\x64\x61\x74\x65\x20\x79\x6F\x75\x72\x20\x6C\x69\x63\x65\x6E\x73\x65\x20\x66\x6F\x72\x20\x74\x68\x69\x73\x20\x70\x72\x6F\x64\x75\x63\x74\x20\x77\x68\x65\x6E\x20\x75\x73\x65\x64\x20\x6F\x6E\x20\x6C\x69\x76\x65\x20\x77\x65\x62\x73\x69\x74\x65\x73\x20\x5B\x3C\x61\x20\x68\x72\x65\x66\x3D"\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x5F\x69\x63\x62\x5F\x53\x68\x6F\x77\x50\x72\x69\x76\x61\x63\x79\x4D\x65\x73\x73\x61\x67\x65\x28\x29"\x20\x74\x69\x74\x6C\x65\x3D"\x43\x6C\x69\x63\x6B\x20\x68\x65\x72\x65\x20\x74\x6F\x20\x73\x65\x65\x20\x77\x68\x79\x20\x77\x65\x20\x6E\x65\x65\x64\x20\x74\x6F\x20\x67\x65\x74\x68\x65\x72\x20\x74\x68\x65\x73\x65\x20\x64\x65\x74\x61\x69\x6C\x73\x20\x61\x6E\x64\x20\x68\x6F\x77\x20\x77\x65\x20\x72\x65\x73\x70\x65\x63\x74\x20\x79\x6F\x75\x72\x20\x6F\x6E\x6C\x69\x6E\x65\x20\x70\x72\x69\x76\x61\x63\x79"\x3E\x3F\x3C\x2F\x61\x3E\x5D\x3C\x2F\x64\x69\x76\x3E'+'\x3C\x2F\x64\x69\x76\x3E'+'\x3C\x2F\x64\x69\x76\x3E'+'\x3C\x2F\x64\x69\x76\x3E';document.write(_strHTML);}eval("\x5F\x69\x63\x62\x5F\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E\x28\x29\x3B\x69\x66\x28\x64\x6F\x63\x75\x6D\x65\x6E\x74\x2E\x63\x6F\x6F\x6B\x69\x65\x2E\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65\x28\x29\x2E\x69\x6E\x64\x65\x78\x4F\x66\x28'\x5F\x77\x65\x62\x65\x64\x69\x74\x6C\x69\x63\x65\x6E\x73\x65\x3D\x66\x69\x6C\x65\x65\x78\x69\x73\x74\x73\x3D\x79\x65\x73'\x29\x20\x3D\x3D\x20\x2D\x31\x29\x7B\x5F\x69\x63\x62\x5F\x53\x68\x6F\x77\x52\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6F\x6E\x42\x6F\x78\x28\x74\x72\x75\x65\x2C\x20\x66\x61\x6C\x73\x65\x29\x7D")/*<!--END-->*/
/*<!--WARNING: If the code above is modified WebEdit will stop working!-->*/
