// 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 sendEmailForm(){
window.location = window.location+"/f_send_to_a_friend_form";
}

function sendEmailComponent() {
  html  = '<div id="send-email">';
  html += '  <input class="button" \n';
  html += '         id="send-email-button" \n';
  html += '         onclick="sendEmailForm();" \n';
  html += '         onmouseup="this.blur();" \n';
  html += '         title="Send this page to a friend" \n';
  html += '         type="button" \n';
  html += '         value="Send to a friend"';
  html += '   />';
  html += '</div>';
  return html;
}
function webfeedComponent() {
  html  = '<div id="webfeed">';
  html += '  <input class="button" \n';
  html += '         id="webfeed-button" \n';
  html += '         onclick="#" \n';
  html += '         onmouseup="this.blur();" \n';
  html += '         title="Functionality not enabled" \n';
  html += '         type="button" \n';
  html += '         value="Webfeed"';
  html += '   />';
  html += '</div>';
  return html;
}
function bookmarkIt(){
if(document.all){
  window.external.AddFavorite(location.href,document.title);
}
else if(window.sidebar)
{  window.sidebar.addPanel(document.title,location.href,'');
}
}

function bookmarkComponent() {
  html  = '<div id="bookmark">';
  html += '  <input class="button" \n';
  html += '         id="bookmark-button" \n';
  html += '         onclick="bookmarkIt();"  \n';
  html += '         onmouseup="this.blur();" \n';
  html += '         title="Bookmark this page" \n';
  html += '         type="button" \n';
  html += '         value="Bookmark"';
  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;
}
