var mode = 0;
if (mode == 1)
 {
 var htmlcode = '
Send this page to a friend
 
  [ Close ] | 
';
 if (document.layers)
  {
  document.write('');
  }                            
  else if (document.all)
  {
  document.write('');
  }
  else if (document.getElementById)
  {
  document.write('');
  }
 }
 else
 {
 var htmlcode = 'Send this page to a friend
 
  | 
';
 }
function moveit() {
if (document.layers)
 {
 document.layers.allheadings56326.top = pageYOffset;
 document.allheadings56326.left = window.innerWidth - 200 - 20;
 }
 else if (document.all)
 {
 document.all.allheadings56326.style.posLeft = document.body.clientWidth - 200 - 20;
 document.all.allheadings56326.style.top = document.body.scrollTop;
 }
 else if (document.getElementById)
 {
 document.getElementById("allheadings56326").style.left = window.innerWidth - 200 - 20;
 document.getElementById("allheadings56326").style.top = document.body.scrollTop;
 }
setTimeout("moveit()",100);
}
function closeWindow() {
if (document.layers)
 {
 document.layers.allheadings56326.visibility = "hidden";
 }
 else if (document.all)
 {
 document.all.allheadings56326.style.visibility = "hidden";
 }
 else if (document.getElementById)
 {
 document.getElementById("allheadings56326").style.visibility = "hidden";
 }
}
function oneTime() {
if (document.layers)
 {
 document.allheadings56326.document.write(htmlcode);
 document.allheadings56326.document.close();
 }
 else if (document.all)
 {
 allheadings56326.innerHTML = htmlcode;
 }
 else if (document.getElementById)
 {
 newlayer = document.getElementById("allheadings56326");
 newlayer.innerHTML = htmlcode;
 }
document.epage56326.url.value = window.location;
setTimeout("moveit()",100);
}
if (mode == 2)
{
var yourLocation = window.location;
document.onkeypress = function (evt) {
  var r = '';
  if (document.all) {
    r += event.shiftKey ? 'SHIFT' : '';
    r += event.keyCode;
  }
  else if (document.getElementById) {
    r += evt.shiftKey ? 'SHIFT' : '';
    r += evt.charCode;
  }
  else if (document.layers) {
    r += evt.modifiers & Event.SHIFT_MASK ? 'SHIFT' : '';
    r += evt.which;
  }
  if (r == 'SHIFT69' || r == '69')
   {
   var IWindow;
   EWindow = window.open('',IWindow++,'width=250,height=150,resizable=yes,scrollbars=no');
   EWindow.document.write('E-mail A Page');
   EWindow.document.write(htmlcode);
   EWindow.document.write('');
   EWindow.document.epage56326.url.value = yourLocation;
   }
  return true;
  }
}
if (mode == 1)
 {
 setTimeout("oneTime()",100);
 }
if (mode == 0)
 {
 document.write(htmlcode);
 document.epage56326.url.value = window.location;
 }