isDOM=document.getElementById?true:false;
isOpera=isOpera5=window.opera && isDOM;
isOpera6=isOpera && window.print;
isOpera7=isOpera && document.readyState;
isMSIE=isIE=document.all && document.all.item && !isOpera;
isStrict=document.compatMode=='CSS1Compat';
isNN=isNC=navigator.appName=="Netscape";

function getDocH(){
 if(isMSIE || isOpera7) {
  if(document.compatMode=='CSS1Compat') return window.document.documentElement.scrollHeight;
  else return window.document.body.scrollHeight;
 }
 if(isNN) return window.document.height;
 if(isOpera) return window.document.body.style.pixelHeight;
}

function getXY(el) {
 var x = y = 0;
 while (el) {
  x += el.offsetLeft;
  y += el.offsetTop;
  el = el.offsetParent;
 }
 return {x:x,y:y};
}

function winResize() {
 //document.getElementById('leftBottom').style.bottom = '30px';
 document.getElementById('ParaGraf').style.bottom = '30px';
 setTimeout('ParaGraf()', 100);
}

var pi = new Array();

function preloadImages() {
 var im = document.images;
 var il = im.length;
 var l, iSrc;
 for (var i = 0; i < il; i++) {
  iSrc = im[i].src;
  li = iSrc.lastIndexOf('fade.');
  if (li >= 0) {
   pi[i] = new Image();
   pi[i].src = iSrc.substring(0, li) + iSrc.substring(li+4);
  } 
 }
}

var flag = true;

function ParaGraf() {
 //var leftBottom = document.getElementById('leftBottom');
 var ParaGraf = document.getElementById('ParaGraf');
 var dH = getDocH();
 //var lbH = getXY(leftBottom).y;
 var pH = getXY(ParaGraf).y;
 //if ((lbH != undefined) && (pH < dH - 240)) {
 // leftBottom.style.bottom = (-(dH - lbH - 270) + "px");
 //}
 if ((dH != undefined) && (pH < dH - 54)) {
  ParaGraf.style.bottom = (-(dH - pH - 84) + "px");
 }
 if (flag) {
  preloadImages();
  flag = false;
 }
}

window.onresize = winResize;
