/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Sandeep Gangadharan :: http://www.sivamdesign.com/home/ */

var layer = null;
var y1 = 20;   // change the # on the left to adjuct the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;
// var dom = document.getElementById() ;
function hideIt(layer) {
  if (dom) {document.getElementById(layer).style.visibility='hidden';}
  if (document.layers) {document.layers[layer].visibility='hide';} }

function showIt(layer) {
  if (dom) {document.getElementById(layer).style.visibility='visible';}
  if (document.layers) {document.layers[layer].visibility='show';} }

function placeIt(layer) {
  if (dom && !document.all) {document.getElementById(layer).style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1));}
  if (document.layers) {document.layers[layer].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1));}
  if (document.all) {document.all[layer].style.top = document.body.scrollTop + (document.body.clientHeight - (document.body.clientHeight-y1));}
  window.setTimeout("placeIt(layer)", 10); }

window.onload=placeIt(dom);
onResize="window.location.href = window.location.href";
