// Page names
var pageNames = new Array();
// default
pageNames['INDEX'] = ' Home';
// footer pages
pageNames['ABOUT'] = ' About Genotrope';
pageNames['CONTACT_US'] = ' Contact Us';
pageNames['TERMS_OF_USE'] = ' User Agreement';
pageNames['PRIVACY_POLICY'] = ' Privacy Policy';

/**
 * Method to be called when the page is loaded
 */
function pageOnLoad() {
  // render footer
  renderFooter();
  // render default page
  renderUnauthorisedPage('INDEX');
  var address = window.location+"";
  if(address != null && 
      address.indexOf("genotrope/indexEx.html?action=resetPassword") != -1)
  {
    // set window title
    var el = document.getElementById('popupPanelTitle');
    if (el) {
        el.innerHTML = "&nbsp;Reset password & Activate account&nbsp;";
    }
    // Prepare inner HTML for activation
    var resultText = prepareResetPassHTML("", null);
    // set body text
    var el = document.getElementById('popupPanelBody');
    if (el) {
        el.innerHTML = resultText;
    }
     // show window
    show('popupPanel');
    // set focus to email
    focus('email');
  }
  else if(address != null && 
      address.indexOf("genotrope/indexEx.html?action=activateAccount&guid=") != -1)
  {
    var activationText = prepareActivationHTML("", "");
    // set window title
    var el = document.getElementById('popupPanelTitle');
    if (el) {
        el.innerHTML = "&nbsp;Registration&nbsp;";
    }
    // set body text
    var el = document.getElementById('popupPanelBody');
    if (el) {
        el.innerHTML = activationText;
    }
    // Check if the URL has the activation code & email
    var parameters = address.split("&");
    // Check if its valid parameters
    if(parameters != null)
    {
        for(i=0;i<parameters.length;i++)
        {
            // Check if its GUID in the list, so set the activation code
            if(parameters[i].indexOf("code") != -1)
            {
                var code = document.getElementById('code');
                if(code)code.value=parameters[i].split("=")[1];
            }
            // Set the email id in the activation window
            else if(parameters[i].indexOf("email") != -1)
            {
                var email = document.getElementById('email');
                if(email)email.value=parameters[i].split("=")[1];
            }
        }
    }
     // show window
    show('popupPanel');
    // Remove the readonly attribute of email
    var email = document.getElementById('email');
    if(email && (trim(email.value) == "" || trim(email.value) == "undefined"))
    {
      // set the email value
      email.value = "";
      // Set to writable
      email.readOnly=false;
      // set focus to email
      focus('email');
    }
    else
    {
      // Set the focus to password
      focus('newpassword');
    }
  }
}

/**
 * Loads an appropriate page for the link clicked
 */
function displayUnauthPage(link) {
  // Initialise the page to home page
  var page = "./GenotropeHomeEx.html";

  // Load companies page
  if(link == 'RESEARCH_COMPANIES') {
    // Get the current company in the session else
    // set the default company
    // Updated to include date in the request for IE not to cache the request
    var url = "/genotrope/simpleValue.do?name=currentCompanyGuid";
    var GUID = null;
    // Make the request.
    new AjaxRequest(url, {
        method: 'get',
        onSuccess: function(transport) {
          GUID = transport.responseText;
          if(GUID == null || trim(GUID).length == 0) GUID = getDefaultCompany();
          page = "./company.do?guid="+GUID;
          // forward to the appropriate page
          window.location= page;
        },
        onFailure: function() {
          page = "./Company.html";
          // forward to the appropriate page
          window.location= page;
        }
    });
  }
  else{
    // forward to the appropriate page
    window.location= page;
  }
}

/**
 * Method to render page depending upon the menu selected
 */
function renderUnauthorisedPage(selected) {
  // main panel
  var mainPanel = document.getElementById("mainPanel");
  // For IE, innerHTML cannot be set for table and its
  // elements as 'Unknown runtime error' is thrown.
  // For Mozilla, setting innerHTML for a div takes
  // some extra space. Hence, a workaround applied here is:
  // for IE, set innerHTML of div; for Mozilla, set innerHTML
  // of the td, within which we have 'mainPanel' div.
  if(!isIE()) {
      mainPanel = document.getElementById("mainPanelMz");
  }

  if(!selected) {
    // Nothing found. Error !!

    // Default Index Page
    if (mainPanel) {
      //mainPanel.innerHTML = renderIndex();
      // correct png for boston launch
      correctPNG();
    }
    return;
  }

  if(selected == 'ABOUT') {
    // About Page
    if (mainPanel) {
      mainPanel.innerHTML = renderAbout();
    }
  }
  else if(selected == 'CONTACT_US') {
    // Contact Us Page
    if (mainPanel) {
      mainPanel.innerHTML = renderContactUs();
    }
  }
  else if(selected == 'TERMS_OF_USE') {
    // Terms Of Use Page
    if (mainPanel) {
      mainPanel.innerHTML = renderTermsOfUse();
    }
  }
  else if(selected == 'PRIVACY_POLICY') {
    // Privacy Policy Page
    if (mainPanel) {
      mainPanel.innerHTML = renderPrivacyPolicy();
    }
  }
  else {
    // Index Page
    if (mainPanel) {
      //mainPanel.innerHTML = renderIndex();
      // correct png for boston launch
      correctPNG();
    }
  }

  // set focus
  var username = document.getElementById('username');
  if(username) {
    // set focus to username
    focus('username');
  }
  else {
    // set focus to searchField
    focus('searchField');
  }
  return;
}

/**
 * Correctly handle PNG transparency in Win IE 5.5 & 6.
 * Reference : http://homepage.ntlworld.com/bobosola/pngtestfixed.htm
 */
function correctPNG()
{
  var arVersion = navigator.appVersion.split("MSIE")
  var version = parseFloat(arVersion[1])
  if ((version >= 5.5) && (document.body.filters)) 
  {
    for(var i=0; i<document.images.length; i++)
    {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()
      if (imgName.indexOf(".PNG") != -1)
      {
        var imgID = (img.id) ? "id='" + img.id + "' " : "";
        var imgClass = (img.className) ? "class='" + img.className + "' " : "";
        var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
        var imgStyle = "display:inline-block;" + img.style.cssText;
        if (img.align == "left") imgStyle = "float:left;" + imgStyle;
        if (img.align == "right") imgStyle = "float:right;" + imgStyle;
        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
        var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
        img.outerHTML = strNewHTML;
        i = i-1;
      }
    }
  }
}

/**
 * Method show/hide veil overlay 'div'
 * so to refrain user to click any
 * control, when a popup is displayed
 */
function overlay(shouldOverlay) {
  // check for overlay div
  var veilOverlay = document.getElementById('veilOverlay');
  if(veilOverlay) {
    // check if it is to be overlayed
    if(shouldOverlay) {
      // overlay
      veilOverlay.style.height = '1000px';
      veilOverlay.style.width = '100%';
    }
    else {
      // remove
      veilOverlay.style.height = '0%';
      veilOverlay.style.width = '0%';
    }
  }
}

/**
 * Returns index page's inner html
 */
function renderIndexDeprecated() {
  var indexPage = '';

  indexPage += ('<table id="" cellspacing="0" cellpadding="0" border="0" width="100%" height="100%" style="background:url(imagesEx/graph.png) no-repeat bottom right;">');
  indexPage += ('  <div id="bostonlaunch" style="position:absolute;z-index:2;valign:top;align:right;"><img src="./imagesEx/bostonlaunch.png" width="1152px" height="864px"></div>');
  indexPage += ('  <tr height="25%">');
  indexPage += ('    <td align="center" colspan="2">');
  indexPage += ('      <table id="" cellspacing="0" cellpadding="0" border="0" width="93%" height="100px">');
  indexPage += ('        <tr valign="middle">');
  indexPage += ('          <td align="center" class="verybiggreentext" style="cursor:pointer" onClick="showRegistrationForm();">');
  indexPage += ('            <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><div class="xboxcontent">');
  indexPage += ('            <br /><span style="font-size:17px">Where do you fit?</span><br />');
  indexPage += ('            Like individuals, every company has it’s own genealogy. Genotrope creates a graph of a company’s connections to other companies. You can employ these professional graphs to explore and evaluate local early stage opportunities, and maybe find your next great startup job.<br />');
  indexPage += ('            </div><b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>');
  indexPage += ('          </td>');
  indexPage += ('        </tr>');
  indexPage += ('      </table>');
  indexPage += ('    </td>');
  indexPage += ('  </tr>');
  indexPage += ('  <tr height="42%">');
  indexPage += ('    <td align="center" width="45%">');
  indexPage += ('      <table id="" cellspacing="0" cellpadding="0" border="0" width="85%" height="100%">');
  indexPage += ('        <tr height="50%">');
  indexPage += ('          <td>');
  indexPage += ('            <table id="" cellspacing="0" cellpadding="0" border="0" width="100%" height="100px">');
  indexPage += ('              <tr valign="middle">');
  indexPage += ('                <td align="center" class="bigbluetext" style="cursor:pointer" onclick="window.location=\'./company.do?guid=\'+getDefaultCompany();">');
  indexPage += ('                  <b class="xtop"><b class="xb1"></b><b class="axb2"></b><b class="axb3"></b><b class="axb4"></b></b><div class="axboxcontent">');
  indexPage += ('                  <br /><br />Research Startup Companies via the track record of the Founders and Investors.<br /><br />');
  indexPage += ('                  </div><b class="xbottom"><b class="axb4"></b><b class="axb3"></b><b class="axb2"></b><b class="xb1"></b></b>');
  indexPage += ('                </td>');
  indexPage += ('              </tr>');
  indexPage += ('            </table>');
  indexPage += ('          </td>');
  indexPage += ('        </tr>');
  indexPage += ('        <tr height="50%">');
  indexPage += ('          <td>');
  indexPage += ('            <table id="" cellspacing="0" cellpadding="0" border="0" width="100%" height="100px">');
  indexPage += ('              <tr valign="middle">');
  indexPage += ('                <td align="center" class="biggreentext">');
  indexPage += ('                  <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><div class="xboxcontent">');
  indexPage += ('                  <br /><br />Peer Produced Database of Startup and Emerging Technology Companies.<br /><br /><br />');
  indexPage += ('                  </div><b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>');
  indexPage += ('                </td>');
  indexPage += ('              </tr>');
  indexPage += ('            </table>');
  indexPage += ('          </td>');
  indexPage += ('        </tr>');
  indexPage += ('      </table>');
  indexPage += ('    </td>');
  indexPage += ('    <td align="right" valign="bottom" width="55%">');
  indexPage += ('      &nbsp;');
  indexPage += ('    </td>');
  indexPage += ('  </tr><tr height="33%" valign="top">');
  indexPage += ('    <td colspan="2" align="right">');
  indexPage += ('      &nbsp;');
  indexPage += ('    </td>');
  indexPage += ('  </tr>');
  indexPage += ('</table>');

  return indexPage;
}

/**
 * Returns index page's inner html
 * Ref : "1_feblandingpage.png"
 */
function renderIndex(){
    var indexPage = ''+
        ' <table id="" cellspacing="0" cellpadding="2" border="0" width="100%" height="100%">'+
        '   <tr height="115px">'+
        '     <td align="center" colspan="3">'+
        '       <table id="" cellspacing="0" cellpadding="2" border="0" width="99%" height="100%">'+
        '         <tr valign="bottom">'+
        '           <td align="center" class="verybigbluetext">'+
        '             <b class="xtop"><b class="xb1"></b><b class="axb2"></b><b class="axb3"></b><b class="axb4"></b></b><div class="axboxcontent" style="text-align:center">'+
        '             <br />Genotrope graphs Companies Genealogies to help you stay informed about your market or pursue your next career opportunity.<br /><br />'+
        '             </div><b class="xbottom"><b class="axb4"></b><b class="axb3"></b><b class="axb2"></b><b class="xb1"></b></b>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '   </tr>'+
        '   <tr height="1%">'+
        '     <td align="center" width="33%">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="98%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="verybiggreentext">'+
        '               <span style="font-size:17px">&nbsp;Save Time</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" width="34%">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="97%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="verybiggreentext">'+
        '               <span style="font-size:17px">Targeted Information</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" width="33%">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="98%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="verybiggreentext">'+
        '               <span style="font-size:17px">Smarter Matching</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '   </tr>'+
        '   <tr height="15%">'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="2" border="0" width="98%" height="100%">'+
        '         <tr valign="top">'+
        '           <td align="left" class="verybiggreentext">'+
        '             <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><div class="xboxcontent" style="text-align:center;height:100px">'+
        '             Comprehensive information source covering your local early stage market </br></br></br>'+
        '             </div><b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="2" border="0" width="97%" height="100%">'+
        '         <tr valign="top">'+
        '           <td align="left" class="verybiggreentext">'+
        '             <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><div class="xboxcontent" style="text-align:center;height:100px">'+
        '             Personalized flow of information about companies in your professional graph </br></br>'+
        '             </div><b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="2" border="0" width="98%" height="100%">'+
        '         <tr valign="top">'+
        '           <td align="left" class="verybiggreentext">'+
        '             <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><div class="xboxcontent" style="text-align:center;height:100px">'+
        '             Matches you to "better fit" companies based upon your work history rather than random jobs generated from keyword searches</br>'+
        '             </div><b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '   </tr>'+
        '   <tr height="1%">'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="98%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="verybigbluetext">'+
        '               <span style="font-size:17px">Try it Out</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="97%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="biglinktext">'+
        '               <span style="font-size:17px">&nbsp;</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="98%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="biglinktext">'+
        '               <span style="font-size:17px">&nbsp;</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '   </tr>'+
        '   <tr height="15%">'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="2" border="0" width="98%" height="100%">'+
        '         <tr valign="top">'+
        '           <td align="left" class="verybigbluetext" style="cursor:pointer" onClick="window.location=\'/genotrope/GenotropeHomeEx.html\'">'+
        '             <b class="axtop"><b class="xb1"></b><b class="axb2"></b><b class="axb3"></b><b class="axb4"></b></b><div class="axboxcontent" style="text-align:center;height:100px">'+
        '             Visit the Home Page to find reams of  information on your local emerging technology market.</br></br>'+
        '             </div><b class="xbottom"><b class="axb4"></b><b class="axb3"></b><b class="axb2"></b><b class="xb1"></b></b>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="2" border="0" width="97%" height="100%">'+
        '         <tr valign="top">'+
        '           <td align="left" class="verybigbluetext" style="cursor:pointer" onClick="window.location=\'./company.do?guid=\'+getDefaultCompany();">'+
        '             <b class="axtop"><b class="xb1"></b><b class="axb2"></b><b class="axb3"></b><b class="axb4"></b></b><div class="axboxcontent" style="text-align:center;height:100px">'+
        '             Search for companies and explore the investors and founders past history. </br></br>'+
        '             </div><b class="xbottom"><b class="axb4"></b><b class="axb3"></b><b class="axb2"></b><b class="xb1"></b></b>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="2" border="0" width="98%" height="100%">'+
        '         <tr valign="top">'+
        '           <td align="left" class="verybigbluetext" style="cursor:pointer" onClick="window.location=\'./company.do?guid=B5B7FA84-CF82-AE61-64B5-326A3AEC5345\'">'+
        '             <b class="axtop"><b class="xb1" ></b><b class="axb2" ></b><b class="axb3"></b><b class="axb4"></b></b><div class="axboxcontent" style="text-align:center;height:100px">'+
        '             Research a Venture Firm to see their portfolio companies and their track record. </br></br>'+
        '             </div><b class="xbottom"><b class="axb4"></b><b class="axb3"></b><b class="axb2"></b><b class="xb1"></b></b>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '   </tr>'+
        '   <tr height="1%">'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="98%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="biglinktext">'+
        '               <span style="font-size:17px;cursor:pointer;" onClick="showRegistrationForm();">Join for all the benefits</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="97%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="biglinktext">'+
        '               <span style="font-size:17px">&nbsp;</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '     <td align="center" valign="top">'+
        '       <table id="" cellspacing="0" cellpadding="0" border="0" width="98%">'+
        '         <tr valign="bottom">'+
        '           <td align="left" class="biglinktext">'+
        '               <span style="font-size:17px">&nbsp;</span>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '   </tr>'+
        '   <tr height="15%">'+
        '     <td align="center" colspan="3">'+
        '       <table id="" cellspacing="0" cellpadding="2" border="0" width="99%" height="100%">'+
        '         <tr valign="middle">'+
        '           <td align="left" class="verybiggreentext" style="cursor:pointer" onClick="showRegistrationForm();">'+
        '             <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b><div class="xboxcontent" style="text-align:center;height:100px">'+
        '             <span style="background-image:url(./imagesEx/signupdown.gif);background-color:transparent;background-position:-6px -2px;background-repeat:no-repeat;padding:1px 0px;background-attachment:scroll;width:68px;display:inline-block">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;when you want to edit or enter companies in the database or save your work history and receive updates on relevant companies.</br></br>When you are ready to explore your options, input your work history and let Genotrope match you to companies with a higher probability of a cultural fit.<br/><br/>'+
        '             </div><b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>'+
        '           </td>'+
        '         </tr>'+
        '       </table>'+
        '     </td>'+
        '   </tr>'+
        '   <tr height="27%">'+
        '</table>';

    return indexPage;
}

/**
 * Returns about page's inner html
 */
function renderAbout() {
  var aboutPageHTML = '';

  aboutPageHTML += ('<table id="" cellspacing="2" cellpadding="1" border="0" width="100%" height="100%">');
  aboutPageHTML += ('  <tr>');
  aboutPageHTML += ('    <td>');
  aboutPageHTML += ('    <span id="">');
  aboutPageHTML += ('      <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>');
  aboutPageHTML += ('        <div class="xboxcontent">');
  aboutPageHTML += (renderTableHeader(' About Genotrope'));
  aboutPageHTML += ('        </div>');
  aboutPageHTML += ('        <div class="xboxcontent" style="background-color:#ffffff;overflow:auto;height:645px">');
  aboutPageHTML += ('        <!-- About Page -->');
  aboutPageHTML += ('        <table id="" cellspacing="0" cellpadding="6" border="0" width="100%" height="100%">');
  aboutPageHTML += ('          <tbody>');
  aboutPageHTML += ('            <tr>');
  aboutPageHTML += ('              <td class="smallnormaltext" valign="top" colspan="2">');
  aboutPageHTML += ('                <br /><br /><label class="smalltext">The Genotropic approach to recruiting.</label>');
  aboutPageHTML += ('                <br /><br />geno- : genus : kind kin : a group united by a common interest or common characteristics or afinity<br />tro-pism : a natural inclination');
  aboutPageHTML += ('                <br /><br />');
  aboutPageHTML += ('                <i>Simply put, companies are comprised of individuals that share some common traits, goals and backgrounds. They have been attracted to their companies because of these affinities and will be inclined to move to the next company that offers them a similarly comfortable environment.</i>');
  aboutPageHTML += ('                <br /><br />');
  aboutPageHTML += ('                We hope to improve on the current offerings in the online job market, with an <b>Affinity Job Search</b> tool that focuses on matching you with companies rather than jobs. Matching culture and fit rather than buzzwords.');
  aboutPageHTML += ('                <br /><br />');
  aboutPageHTML += ('                Community contributions will at some point overtake our editors valiant efforts to populate the company database. When that happens, we will have a micro-chunkable database of much value to the users. Stay Tuned.');
  aboutPageHTML += ('                <br /><br />');
  aboutPageHTML += ('                Genotrope is a project of Tom Summit. We are virtually situated in the environs of Boston/Cambridge. We have extensive experience in recruiting, hiring and building teams in the emerging technology and start up market.');
  aboutPageHTML += ('                <br /><br /><br /><br />');
  aboutPageHTML += ('                Please <a class="orangelink" style="text-decoration:underline;" href="mailto:accteam@genotrope.com?subject=Feedback" title="mailto:accteam@genotrope.com?subject=Feedback">let us know</a> what you think or if you have questions.');
  aboutPageHTML += ('                <br /><br />Regards, The Genotrope Team');
  aboutPageHTML += ('                <br /><br /><a class="orangelink" style="text-decoration:underline;" href="http://genotrope.wordpress.com" title="http://genotrope.wordpress.com/">Genotrope Blog</a>.');
  aboutPageHTML += ('              </td>');
  aboutPageHTML += ('            </tr>');
  aboutPageHTML += ('          </tbody>');
  aboutPageHTML += ('        </table>');
  aboutPageHTML += ('        </div>');
  aboutPageHTML += ('      <b class="xbottom"><b class="xb4" style="background-color:#ffffff;"></b><b class="xb3" style="background-color:#ffffff;"></b><b class="xb2" style="background-color:#ffffff;"></b><b class="xb1"></b></b>');
  aboutPageHTML += ('    </span>');
  aboutPageHTML += ('    </td>');
  aboutPageHTML += ('  </tr>');
  aboutPageHTML += ('</table>');

  return aboutPageHTML;
}

/**
 * Returns contact us page's inner html
 */
function renderContactUs() {
  var contactUsHTML = '';

  contactUsHTML += ('<table id="" cellspacing="2" cellpadding="1" border="0" width="100%" height="100%">');
  contactUsHTML += ('  <tr>');
  contactUsHTML += ('    <td>');
  contactUsHTML += ('    <span id="">');
  contactUsHTML += ('      <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>');
  contactUsHTML += ('        <div class="xboxcontent">');
  contactUsHTML += (renderTableHeader(' Contact Us'));
  contactUsHTML += ('        </div>');
  contactUsHTML += ('        <div class="xboxcontent" style="background-color:#ffffff;overflow:auto;height:545px">');
  contactUsHTML += ('        <!-- Contact Us -->');
  contactUsHTML += ('        <table id="" cellspacing="0" cellpadding="6" border="0" width="100%" height="100%">');
  contactUsHTML += ('          <tbody>');
  contactUsHTML += ('            <tr>');
  contactUsHTML += ('              <td class="smallnormaltext" valign="top" colspan="2">');
  contactUsHTML += ('                <br /><br />Page under construction. Please try again later !');
  contactUsHTML += ('              </td>');
  contactUsHTML += ('            </tr>');
  contactUsHTML += ('          </tbody>');
  contactUsHTML += ('        </table>');
  contactUsHTML += ('        </div>');
  contactUsHTML += ('      <b class="xbottom"><b class="xb4" style="background-color:#ffffff;"></b><b class="xb3" style="background-color:#ffffff;"></b><b class="xb2" style="background-color:#ffffff;"></b><b class="xb1"></b></b>');
  contactUsHTML += ('    </span>');
  contactUsHTML += ('    </td>');
  contactUsHTML += ('  </tr>');
  contactUsHTML += ('</table>');

  return contactUsHTML;
}

/**
 * Returns terms of use page's inner html
 */
function renderTermsOfUse() {
  var termsOfUseHTML = '';

  termsOfUseHTML += ('<table id="" cellspacing="2" cellpadding="1" border="0" width="100%" height="100%">');
  termsOfUseHTML += ('  <tr>');
  termsOfUseHTML += ('    <td>');
  termsOfUseHTML += ('    <span id="">');
  termsOfUseHTML += ('      <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>');
  termsOfUseHTML += ('        <div class="xboxcontent">');
  termsOfUseHTML += (renderTableHeader(' User Agreement'));
  termsOfUseHTML += ('        </div>');
  termsOfUseHTML += ('        <div class="xboxcontent" style="background-color:#ffffff;overflow:auto;height:645px">');
  termsOfUseHTML += ('        <!-- Terms Of Use -->');
  termsOfUseHTML += ('        <table id="" cellspacing="0" cellpadding="6" border="0" width="100%" height="100%">');
  termsOfUseHTML += ('          <tbody>');
  termsOfUseHTML += ('            <tr>');
  termsOfUseHTML += ('              <td align="left" class="smallnormaltext" valign="top" colspan="2">');
  termsOfUseHTML += ('                <br />Welcome to the User Agreement for Genotrope Corporation. This agreement describes the terms on which you may access and use our services. In order to become a Genotrope user, you must read and accept all of the terms and conditions of this agreement and the <a class="orangelink" onclick="window.location=\'./Policy.html\'">Privacy Policy</a>. In the event of any inconsistency between the Genotrope Privacy Policy and this User Agreement, the User Agreement shall control. Nothing in this Agreement shall be deemed to confer any third-party rights or benefits. If you do not agree to be bound by the terms of this Agreement, you may not use nor access our services.');
  termsOfUseHTML += ('                <br />We reserve the right to modify this Agreement at any time, and without prior notice, by posting amended terms on this website. Your continued use of the Genotrope service indicates your acceptance of the amended User Agreement.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Description of Service</label>');
  termsOfUseHTML += ('                <br />Genotrope is an online service offered to enable professionals to find and contact companies more effectively (the &ldquo;Genotrope Service&rdquo;). When looking for a job, Genotrope users can communicate privately (submit resumes) to thousands of companies in the Genotrope database. Genotrope client companies pay to hire candidates, receive screened resumes and deliver recruiting campaigns or announcements to targeted professionals.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Membership Eligibility</label>');
  termsOfUseHTML += ('                <br />The Genotrope Service is not available to minors under the age of 18 or to any users suspended or removed from the system by Genotrope for any reason. Users may not have more than one active account. Additionally, users are prohibited from selling, trading, or otherwise transferring your Genotrope account to another party. If you do not qualify, you may not use the Genotrope Service.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Use of Service</label>');
  termsOfUseHTML += ('                <br />Your use of the Genotrope Service is governed by this User Agreement. Genotrope may refuse service without prior notice to any user for any or no reason.');
  termsOfUseHTML += ('                <br />You are responsible for maintaining the confidentiality of your password and account, and are fully responsible for all activities that occur under your password or account with or without your knowledge. If you knowingly provide your login and password information to another person, your account privileges may be suspended temporarily or terminated. You agree to immediately notify Genotrope of any unauthorized use of your password or account or any other breach of security. Genotrope cannot and will not be liable for any loss or damage arising from your failure to comply with this section.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Termination</label>');
  termsOfUseHTML += ('                <br />You agree that Genotrope may, with or without cause, immediately terminate your Genotrope account and access to the Genotrope Service without prior notice. Without limiting the foregoing, the following will lead to a termination by Genotrope of a user’s use of the Genotrope Service (a) breaches or violations of this User Agreement or other incorporated agreements or guidelines, (b) requests by law enforcement or other government agencies, (c) a request by you (self-initiated account deletions), (d) unexpected technical issues or problems, and (e) extended periods of inactivity. Termination of your Genotrope account includes removal of access to all offerings within the Genotrope Service and may also bar you from further use of the Genotrope Service. Furthermore, you agree that all terminations shall be made in Genotrope’s sole discretion and that Genotrope shall not be liable to you nor any third-party for any termination of your account or access to the Genotrope Service.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">User Conduct</label>');
  termsOfUseHTML += ('                <br />You understand and agree not to use Genotrope to :');
  termsOfUseHTML += ('                <ul>');
  termsOfUseHTML += ('                <li>Post content or initiate communications which are unlawful, libelous, abusive, obscene, discriminatory, or otherwise objectionable.');
  termsOfUseHTML += ('                <li>Use the Genotrope Service for any illegal purpose, including but not limited to conspiring to violate laws.');
  termsOfUseHTML += ('                <li>Falsely state, impersonate, or otherwise misrepresent your identity, including but not limited to the use of a pseudonym, or misrepresenting your current or previous positions and qualifications, or your affiliations with a person or entity, past or present.');
  termsOfUseHTML += ('                <li>Upload, post, email, transmit or otherwise make available any content or initiate communications which include information that you do not have the right to disclose or make available under any law or under contractual or fiduciary relationships (such as insider information, or proprietary and confidential information learned or disclosed as part of employment relationships or under nondisclosure agreements).');
  termsOfUseHTML += ('                <li>Upload, post, email, transmit or otherwise make available any content or initiate communication that infringes upon patents, trademarks, trade secrets, copyrights or other proprietary rights.');
  termsOfUseHTML += ('                <li>Upload, post, email, transmit or otherwise make available any unsolicited or unauthorized advertising, promotional materials, "junk mail," "spam," "chain letters," "pyramid schemes," or any other form of solicitation. This prohibition includes but is not limited to a) Using Genotrope invitations to send messages to people who don’t know you or who are unlikely to recognize you as a known contact; b) Using Genotrope to connect to people who don’t know you and then sending unsolicited promotional messages to those direct connections without their permission; and c) Sending messages to distribution lists, newsgroup aliases, or group aliases.');
  termsOfUseHTML += ('                <li>Upload, post, email, transmit or otherwise make available any material that contains software viruses or any other computer code, files or programs designed to interrupt, destroy or limit the functionality of any computer software or hardware or telecommunications equipment.');
  termsOfUseHTML += ('                <li>Stalk or harass anyone.');
  termsOfUseHTML += ('                <li>Forge headers or otherwise manipulate identifiers in order to disguise the origin of any communication transmitted through the Genotrope Service.');
  termsOfUseHTML += ('                <li>Post content in fields that aren’t intended for that content. Example: Putting an address in a name or title field.');
  termsOfUseHTML += ('                <li>Interfere with or disrupt the Genotrope Service or servers or networks connected to the Genotrope Service, or disobey any requirements, procedures, policies or regulations of networks connected to the Genotrope Service.');
  termsOfUseHTML += ('                </ul>');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">International Use</label>');
  termsOfUseHTML += ('                <br />Recognizing the global nature of the Internet, you agree to comply with all applicable local rules including but not limited to rules regarding online conduct and acceptable content. Specifically, you agree to comply with all applicable laws regarding the transmission of technical data exported from the United States or the country in which you reside.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Information Provided on this Website</label>');
  termsOfUseHTML += ('                <br />In the course of using the Genotrope Service, users may provide information about themselves which may be visible to certain other users (see our <a class="orangelink" onclick="window.location=\'./Policy.html\';">Privacy Policy</a> to learn more about information collected on this website). You understand that by posting materials on the Genotrope website or otherwise providing materials to Genotrope, you are granting to Genotrope Corporation a royalty-free, perpetual, irrevocable license to use this information in the course of offering the Genotrope service. Furthermore, you understand that Genotrope retains the right to reformat, excerpt, or translate any materials submitted by you. You understand that all information publicly posted or privately transmitted through the Genotrope Service is the sole responsibility of the person from which such content originated and that Genotrope will not be liable for any errors or omissions in any content. You understand that Genotrope cannot guarantee the identity of any other users with whom you may interact in the course of using the Genotrope Service. Additionally, we cannot guarantee the authenticity of any data which users may provide about themselves or relationships they may describe.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Access to Service</label>');
  termsOfUseHTML += ('                <br />Use of manual or automated software, devices, or other processes to "crawl" or "spider" any web pages contained in the Genotrope website is strictly prohibited. You agree not to monitor or copy, or allow others to monitor or copy, our web pages or the content included herein. You also agree not to "frame" or otherwise simulate the appearance or function of this website. Furthermore, you agree not to take any action that interferes with the proper working of or places an unreasonable load on our infrastructure, including but not limited to unsolicited communications, attempts to gain unauthorized access, or transmission or activation of computer viruses.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Genotrope Communications</label>');
  termsOfUseHTML += ('                <br />In the course of providing you services, Genotrope may need to communicate with you via email (see our <a class="orangelink" onclick="window.location=\'./Policy.html\';">Privacy Policy</a> to learn more about communications). You agree to receive emails which are specific to your account and necessary for the normal functioning of the Genotrope Service. These include quarterly emails which inform users about various features of the service as well as information about companies in the users professional graph. Please be aware that if you opted in for "listening" mode, you will receive certain emails or messages from Genotrope related to specific companies in your Professional graph. You also agree to have your name and/or email address listed in the header of certain communications which you initiate through the Genotrope Service.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Monitoring and Enforcement</label>');
  termsOfUseHTML += ('                <br />While we have the right to monitor activity and content associated with the Genotrope Service, we are not obligated to do so. And since we do not, and may not have the ability to, control or actively monitor content we don’t guarantee its accuracy, integrity or quality. Because community standards vary and individuals sometimes choose not to comply with our policies and practices, in the process of using our website, you may be exposed to content that you find offensive or objectionable. You can contact our Customer Service Department to let us know of content that you find objectionable. We may investigate the complaints and violations of our policies that come to our attention and may take any action that we believe is appropriate, including, but not limited to issuing warnings, removing the content or terminating accounts and/or subscriptions. However, because situations and interpretations vary, we also reserve the right not to take any action. Under no circumstances will we be liable in any way for any content, including, but not limited to, any errors or omissions in any content, or any loss or damage of any kind incurred as a result of the use of, access to, or denial of access to any content on the website.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Fees</label>');
  termsOfUseHTML += ('                <br />Signing up for a basic Genotrope user account is free.');
  termsOfUseHTML += ('                <br />Services are provided to hiring companies for a fee. Genotrope reserves the right to charge for companies for the Genotrope Service or any portion thereof, modify the pricing of, add to, or discontinue the Genotrope Service or any portion thereof without prior notice.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Indemnification</label>');
  termsOfUseHTML += ('                <br />By accepting this User Agreement, you agree to indemnify and otherwise hold harmless Genotrope Corporation, its officers, employees, agents, subsidiaries, affiliates and other partners from any direct, indirect, incidental, special, consequential or exemplary damages resulting from i) your use of the Genotrope Service; ii) unauthorized access to or alteration of your communications with or through the Genotrope Service, or iii) any other matter relating to the Genotrope Service. Any business transactions which may arise between users from their use of Genotrope are the sole responsibility of the users involved.');
  termsOfUseHTML += ('                <br />Without limitation of the terms and conditions set forth in our Privacy Policy, you understand and agree that Genotrope may disclose personally identifiable information if required to do so by law or in the good faith belief that such disclosure is reasonably necessary to comply with legal process, enforce this User Agreement, or protect the rights, property, or safety of Genotrope, its users, and the public.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Disclaimer of Warranties</label>');
  termsOfUseHTML += ('                <br />YOU UNDERSTAND AND AGREE THAT THE GENOTROPE SERVICE IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS AND THAT GENOTROPE DOES NOT ASSUME ANY RESPONSIBILITY FOR PROMPT OR PROPER DELIVERY, OR RETENTION OF ANY USER INFORMATION OR COMMUNICATIONS BETWEEN USERS. GENOTROPE ASSUMES NO RESPONSIBILITY FOR THE ACCURACY OR EXISTENCE OF ANY COMMUNICATIONS BETWEEN USERS. GENOTROPE EXPRESSLY DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.');
  termsOfUseHTML += ('                <br />GENOTROPE MAKES NO WARRANTY THAT (i) THE GENOTROPE SERVICE WILL MEET YOUR REQUIREMENTS, (ii) THE GENOTROPE SERVICE WILL BE UNINTERRUPTED, TIMELY, SECURE, OR ERROR-FREE, (iii) THE RESULTS THAT MAY BE OBTAINED FROM USE OF THE GENOTROPE SERVICE WILL BE ACCURATE OR RELIABLE, (iv) THE QUALITY OF ANY PRODUCTS, SERVICES, INFORMATION, OR OTHER MATERIAL PURCHASED OR OBTAINED BY YOU THROUGH THE GENOTROPE SERVICE WILL MEET YOUR EXPECTATIONS, AND (V) ANY ERRORS IN THE SOFTWARE WILL BE CORRECTED.');
  termsOfUseHTML += ('                <br />ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE USE OF THE GENOTROPE SERVICE IS DONE AT YOUR OWN DISCRETION AND RISK AND THAT YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR LOSS OF DATA THAT RESULTS FROM THE DOWNLOAD OF ANY SUCH MATERIAL.');
  termsOfUseHTML += ('                <br />NO ADVICE OR INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED BY YOU FROM GENOTROPE OR THROUGH OR FROM THE GENOTROPE SERVICE SHALL CREATE ANY WARRANTY NOT EXPRESSLY STATED IN THIS USER AGREEMENT.');
  termsOfUseHTML += ('                <br />SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF CERTAIN WARRANTIES OR THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES. ACCORDINGLY, SOME OF THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Entire Agreement</label>');
  termsOfUseHTML += ('                <br />The User Agreement constitutes the entire agreement between you and Genotrope and governs your use of the Genotrope Service, superseding any prior agreements between you and Genotrope.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Limitation of Liability</label>');
  termsOfUseHTML += ('                <br />YOU EXPRESSLY UNDERSTAND AND AGREE THAT GENOTROPE SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER INTANGIBLE LOSSES (EVEN IF GENOTROPE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES). SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES. ACCORDINGLY, SOME OF THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU. IN NO EVENT WILL GENOTROPE’S TOTAL CUMULATIVE DAMAGES EXCEED US$ 100.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">Governing Law</label>');
  termsOfUseHTML += ('                <br />The User Agreement between you and Genotrope Corporation will be governed by and construed in accordance with the laws of the State of Massachusetts  without regard to conflict of laws principles.');

  termsOfUseHTML += ('                <br /><br /><label class="bigbluetext">General Information</label>');
  termsOfUseHTML += ('                <br />Genotrope, the Genotrope logo, and other Genotrope logos and names are trademarks of Genotrope Corporation. You agree not to display or use these trademarks in any manner without Genotrope’s prior, written permission. The section titles of this User Agreement are displayed for convenience only and have no legal effect. Please send any questions or comments, or report violations of the User Agreement to : <a class="orangelink" href="mailto:Sales@genotrope.com">Sales@genotrope.com</a>.');
  termsOfUseHTML += ('              </td>');
  termsOfUseHTML += ('            </tr>');
  termsOfUseHTML += ('          </tbody>');
  termsOfUseHTML += ('        </table>');
  termsOfUseHTML += ('        </div>');
  termsOfUseHTML += ('      <b class="xbottom"><b class="xb4" style="background-color:#ffffff;"></b><b class="xb3" style="background-color:#ffffff;"></b><b class="xb2" style="background-color:#ffffff;"></b><b class="xb1"></b></b>');
  termsOfUseHTML += ('    </span>');
  termsOfUseHTML += ('    </td>');
  termsOfUseHTML += ('  </tr>');
  termsOfUseHTML += ('</table>');

  return termsOfUseHTML;
}

/**
 * Returns privacy policy page's inner html
 */
function renderPrivacyPolicy() {
  var privacyPolicyHTML = '';

  privacyPolicyHTML += ('<table id="" cellspacing="2" cellpadding="1" border="0" width="100%" height="100%">');
  privacyPolicyHTML += ('  <tr>');
  privacyPolicyHTML += ('    <td>');
  privacyPolicyHTML += ('    <span id="">');
  privacyPolicyHTML += ('      <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>');
  privacyPolicyHTML += ('        <div class="xboxcontent">');
  privacyPolicyHTML += (renderTableHeader(' Privacy Policy'));
  privacyPolicyHTML += ('        </div>');
  privacyPolicyHTML += ('        <div class="xboxcontent" style="background-color:#ffffff;overflow:auto;height:645px">');
  privacyPolicyHTML += ('        <!-- Privacy Policy -->');
  privacyPolicyHTML += ('        <table id="" cellspacing="0" cellpadding="6" border="0" width="100%" height="100%">');
  privacyPolicyHTML += ('          <tbody>');
  privacyPolicyHTML += ('            <tr>');
  privacyPolicyHTML += ('              <td align="left" class="smallnormaltext" valign="top" colspan="2">');
  privacyPolicyHTML += ('                <br />Privacy of our users is a priority.');
  privacyPolicyHTML += ('                <br /><br />We will never provide your personally identifiable information to third parties without your consent.');
  privacyPolicyHTML += ('                <br /><br />We will never share your contact information with a company, without your consent.');
  privacyPolicyHTML += ('                <br /><br />Notice of all changes that materially affect ways in which your personally identifiable data may be used or shared will be posted in updates to our Privacy Policy. If you continue to use the Genotrope service after notice of changes have been sent to you or published on our site, you hereby provide your consent to the changed practices.');
  privacyPolicyHTML += ('                <br /><br /><i>Registration :</i>');
  privacyPolicyHTML += ('                <br />In order to become a Genotrope user, you must first create an account on this web site. To create an account you are required to provide the following contact information: name, email address, country, ZIP/postal code, engagements at current and past companies and choose a password.');
  privacyPolicyHTML += ('                <br /><br /><i>Information about your Contacts :</i>');
  privacyPolicyHTML += ('                <br />In order to invite others to Genotrope, you will enter their email addresses. This information will be used by Genotrope to send your invitation including a message that you write. The names and email addresses of people that you invite will be used only to send your invitation.');
  privacyPolicyHTML += ('                <br /><br /><i>Cookies & Log Files :</i>');
  privacyPolicyHTML += ('                <br />Like most web sites, Genotrope uses cookies and web log files to track site usage. A cookie is a tiny data file residing on your computer which allows Genotrope to recognize you as a user when you return to our site using the same computer and web browser.');
  privacyPolicyHTML += ('                <br /><br /><i>Web Beacons :</i>');
  privacyPolicyHTML += ('                <br />Due to the communications standards on the Internet, when you visit the Genotrope web site we automatically receive the URL of the site from which you came and the site to which you are going when you leave Genotrope. We also receive the Internet protocol (IP) address of your computer (or the proxy server you use to access the World Wide Web), your computer operating system and type of web browser you are using, as well as the name of your ISP. This information is used to analyze overall trends to help us improve the Genotrope service. The linkage between your IP address and your personally identifiable information is never shared with third-parties without your permission or except when required by law.');
  privacyPolicyHTML += ('                <br /><br /><i>Children :</i>');
  privacyPolicyHTML += ('                <br />Children are not eligible to use our service and we ask that minors (under the age of 18) do not submit any personal information to us or use the service.');

  privacyPolicyHTML += ('                <br /><br /><br /><label class="bigbluetext">Information Use</label>');
  privacyPolicyHTML += ('                <br />Genotrope is an online service dedicated to helping all types of professionals more effectively connect with companies of interest and companies connect with prospective  employees. Information, that does not personally identify you as an individual, is collected by Genotrope Corporation from the site (such as, by way of example, patterns of utilization) and is exclusively owned by Genotrope. This information can be utilized by Genotrope in such manner as Genotrope, in its sole discretion, deems appropriate.');
  privacyPolicyHTML += ('                <br /><br /><i>Genotrope Communications :</i>');
  privacyPolicyHTML += ('                <br />Genotrope will communicate with you through email and notices posted on this website. These include quarterly emails which inform users about various features of the service as well as information about companies in the users professional graph. Please be aware that if you opted in for "listening" mode, you will receive certain emails or messages from Genotrope related to specific companies in your Professional  graph. Genotrope may send you promotional information unless you have opted out of receiving such information. If you wish to opt-out of receiving promotional emails, please send a request to <a class="orangelink" style="text-decoration:underline;" href="mailto:customer_service@genotrope.com?subject=Customer Service" title="mailto:customer_service@genotrope.com?subject=Customer Service">customer_service@genotrope.com</a>.');
  privacyPolicyHTML += ('                <br /><br /><i>Customized Content :</i>');
  privacyPolicyHTML += ('                <br />Information you provide at registration or in your Profile section is also used to customize your experience on the web site.');

  privacyPolicyHTML += ('                <br /><br /><br /><label class="bigbluetext">Information Sharing</label>');
  privacyPolicyHTML += ('                <br /><br /><i>Sharing Information With Third Parties :</i>');
  privacyPolicyHTML += ('                <br />Genotrope is serious about the privacy of our users. We will never sell, rent, or otherwise provide your personally identifiable information to any third parties for marketing purposes. We will only share your personally identifiable with third parties to carry out your instructions and to provide specific services. For instance, we may use a credit card processing company to bill clients for subscription fees. These third parties do not retain, share, or store any personally identifiable information except to provide these services and are bound by strict confidentiality agreements which limit their use of such information.');
  privacyPolicyHTML += ('                <br />We may provide aggregated data about the usage of our services to third-parties for such purposes as we deem, in our sole discretion, to be appropriate. We may segment our users by role (i.e. product managers, vice presidents), industry, geographic location, company. If you would like to be excluded from the aggregated research or products based upon aggregated data about our users’ activities on the site, please email customer service.');
  privacyPolicyHTML += ('                <br /><br /><i>Partnering with Other Organizations to Offer Combined Services :</i>');
  privacyPolicyHTML += ('                <br />Genotrope may partner with other online services to give you the combined results of both services. In these cases, your personally identifiable information will only be passed from Genotrope to the partner if you choose to use the combined service.');
  privacyPolicyHTML += ('                <br /><br /><i>Communications Between Users :</i>');
  privacyPolicyHTML += ('                <br />Many emails you initiate through Genotrope, such as an invitation sent to a non-user for instance, will list your email address and name in the header of the message. Other communications that you initiate through the Genotrope website, like a resume submission, will list your name as the initiator but will not include your personal contact information. Your contact information will only be shared with a client company if both of you have indicated that you would like to establish contact with each other.');
  privacyPolicyHTML += ('                <br /><br /><i>Legal Disclaimer :</i>');
  privacyPolicyHTML += ('                <br />It is possible that we may need to disclose personal information when required by law. We will disclose such information wherein we have a good-faith belief that it is necessary to comply with a court order, ongoing judicial proceeding, or other legal process served on our company or to exercise our legal rights or defend against legal claims.');

  privacyPolicyHTML += ('                <br /><br /><br /><label class="bigbluetext">Accessing and Changing Your Account Information</label>');
  privacyPolicyHTML += ('                <br />You can review the personal information you provided us and make any desired changes to the information, or to the settings for your Genotrope account, at any time by logging in to your account on the Genotrope website and editing the information on your Profile page. We may retain certain data contributed by you if it may be necessary to prevent fraud or future abuse, or for legitimate business purposes, such as analysis of aggregated, non-personally-identifiable data, account recovery, or if required by law. All retained data will continue to be subject to the terms of the Genotrope Privacy Policy that you have previously agree to. To request that we close your account and remove your information from the Genotrope service, please send your request to <a class="orangelink" style="text-decoration:underline;" href="mailto:customer_service@genotrope.com?subject=Customer Service" title="mailto:customer_service@genotrope.com?subject=Customer Service">customer_service@genotrope.com</a>. Please send your request using an email account that you have registered with Genotrope under your name. You will receive a response to requests sent to <a class="orangelink" style="text-decoration:underline;" href="mailto:customer_service@genotrope.com?subject=Customer Service" title="mailto:customer_service@genotrope.com?subject=Customer Service">customer_service@genotrope.com</a>.com within three business days of our receiving it.');

  privacyPolicyHTML += ('                <br /><br /><br /><label class="bigbluetext">Security</label>');
  privacyPolicyHTML += ('                <br />In order to secure your personal information, access to your data on Genotrope is password-protected.');

  privacyPolicyHTML += ('                <br /><br /><br /><label class="bigbluetext">Changes to this Privacy Policy</label>');
  privacyPolicyHTML += ('                <br />Genotrope may update this privacy policy. In the event there are significant changes in the way we treat your personally identifiable information, we will display a notice on this site. Unless stated otherwise, our current Privacy Policy applies to all information that we have about you and your account.');
  privacyPolicyHTML += ('              </td>');
  privacyPolicyHTML += ('            </tr>');
  privacyPolicyHTML += ('          </tbody>');
  privacyPolicyHTML += ('        </table>');
  privacyPolicyHTML += ('        </div>');
  privacyPolicyHTML += ('      <b class="xbottom"><b class="xb4" style="background-color:#ffffff;"></b><b class="xb3" style="background-color:#ffffff;"></b><b class="xb2" style="background-color:#ffffff;"></b><b class="xb1"></b></b>');
  privacyPolicyHTML += ('    </span>');
  privacyPolicyHTML += ('    </td>');
  privacyPolicyHTML += ('  </tr>');
  privacyPolicyHTML += ('</table>');

  return privacyPolicyHTML;
}

/**
 * Renders header for table with the
 * title specified
 */
function renderTableHeader(title) {
  var tableHeaderHTML = "";
  tableHeaderHTML += ('<table id="" cellspacing="0" cellpadding="0" border="0" width="99%" height="20px" class="panelheader">');
  tableHeaderHTML += ('  <tr>');
  tableHeaderHTML += ('    <td><div style="position:relative;left:3px">'+title+'</div></td>');
  tableHeaderHTML += ('    <td align="right" width="5%">');
  tableHeaderHTML += ('    </td>');
  tableHeaderHTML += ('  </tr>');
  tableHeaderHTML += ('</table>');

  return tableHeaderHTML;
}

/**
 * Renders footer
 */
function renderFooter() {
  // footer panel
  var footerPanel = document.getElementById('footerPanel');
  if (footerPanel) {
    var footerHTML = '';
    footerHTML += ('<table id="" cellspacing="0" cellpadding="0" border="0" width="100%" height="100%" class="smalltext">');
    footerHTML += ('  <tbody>');
    footerHTML += ('    <tr>');
    footerHTML += ('      <td align="center" valign="middle" height="11px" width="100%">');
    footerHTML += ('        <a id="about" class="orangelink" href="./AboutUs.html">About/Contact</a>');
    footerHTML += ('        <img width="10px" src="imagesEx/spacer.gif" />|');
    footerHTML += ('        <img width="10px" src="imagesEx/spacer.gif" />');
    footerHTML += ('        <a id="blog" class="orangelink" href="./Faq.html");">FAQ</a>');
    footerHTML += ('        <img width="10px" src="imagesEx/spacer.gif" />|');
    footerHTML += ('        <img width="10px" src="imagesEx/spacer.gif" />');
    footerHTML += ('        <a id="blog" class="orangelink" onclick="javascript:window.location=\'http://genotrope.wordpress.com\';">Blog</a>');
    footerHTML += ('        <img width="10px" src="imagesEx/spacer.gif" />|');
    footerHTML += ('        <img width="10px" src="imagesEx/spacer.gif" />');
    footerHTML += ('        <a id="termsofuse" class="orangelink" href="./Tos.html">User Agreement</a>');
    footerHTML += ('        <img width="10px" src="imagesEx/spacer.gif" />|');
    footerHTML += ('        <img width="10px" src="imagesEx/spacer.gif" />');
    footerHTML += ('        <a id="privacypolicy" class="orangelink" href="./Policy.html">Privacy Policy</a>');
    footerHTML += ('      </td>');
    footerHTML += ('    </tr>');
    footerHTML += ('    <tr>');
    footerHTML += ('      <td class="errorsmalltext" style="font-weight:normal" align="center">');
    footerHTML += ('        &copy; 2008 Genotrope All rights reserved. All other trademarks are the property of their respective owners.');
    footerHTML += ('      </td>');
    footerHTML += ('    </tr>');
    footerHTML += ('  </tbody>');
    footerHTML += ('</table>');
    footerPanel.innerHTML = footerHTML;
  }
  return;
}

/**
 * Returns the value that should be
 * rendered for the back link function
 */
function getBackLink() {
  var el = document.getElementById('LOGIN');

  if (el) {
    return "renderPage('HOME_PAGE');";
  }
  else {
    return "renderUnauthorisedPage('INDEX');"
  }
}
