// Contains components that get displayed through javascript only.

function printPageComponent() {
  html  = '<div id="print-page">';
  html += '  <input class="button" \n';
  html += '         id="print-page-button" \n';
  html += '         onclick="window.print();" \n';
  html += '         onmouseup="this.blur();" \n';
  html += '         title="Print the current page." \n'; 
  html += '         type="button" \n'; 
  html += '         value="Print this page"';
  html += '   />';
  html += '</div>';
  return html;
}

function printPageLink() {
  html  = "<span id=\"component-box-print-link\" \n";
  html += "      class=\"button\"\n"; 
  html += "      onclick=\"window.print();\">\n";
  html += "Print this page";
  html += "</span>";
  return html;
}

function separatorComponent() {
  html = "<span class=\"separator\">|</span>";
  return html;
}

function switchComponent() {
  html  = '<div id="text-size">';
  html += ' <a href="" onclick="switchFontSize(this,0)"><img src="/thch2_images/text_size.gif" alt="Resize font"/></a> ';
  html += '</div>';
  return html;
}


function emailToComponent(current_page) {
  html  = '<div id="email-to">';
  html += '<a href="mailto:?subject=Tower Hamlets Community Housing&body='+current_page+'">EMAIL<span class="accessHidden">Page</span> TO A FRIEND</a>';
    html += '</div><div class="bgElement bgOne"></div><div class="bgElement bgTwo"></div> <div class="bgElement bgThree"></div> <div class="bgElement bgFour"></div>';
    return html;
}

