//{{{ 1k DHTML API
d=document;ts=3;ti=60;px='px'
var browser = navigator.appName;var ie = browser.indexOf("Microsoft") > -1 ? true : false;
var op =  browser.indexOf("pera") > -1 ? true : false;
var platform = navigator.platform;var mac = platform.indexOf("ac") > -1 ? true : false;
function gE(e,f){return d.getElementById(e);}
function sE(e){e.style.visibility='visible';}
function hE(e){e.style.visibility='hidden';}
function sZ(e,z){e.style.zIndex=z;}
function sX(e,x){e.style.left=x+px;}
function sY(e,y){e.style.top=y+px;}
function sW(e,w){e.style.width=w+px;}
function sH(e,h){e.style.height=h+px;}
function sC(e,t,r,b,x){e.style.clip='rect('+t+px+' '+r+px+' '+b+px+' '+x+px+')';}
function gY(e){return e.offsetTop;}
function wH(e,h){e.innerHTML=h;}
//function gW(e){return e.offsetWidth}
function gW(e){return e.offsetWidth;}
function gH(e){return e.offsetHeight}
function gpX(e){var x=e.offsetLeft;var ep=e.offsetParent;while(ep!=null){x+=ep.offsetLeft;op=ep.offsetParent;}return x;}
function gpY(e){var y=e.offsetTop;var ep=e.offsetParent;while(ep!=null){y+=ep.offsetTop;ep=ep.offsetParent;}return y;}
// my extensions
function gcH(e){return e.scrollHeight;}
function gsT()
{
  var sT=(ie && mac)? d.body.scrollTop : ie ? d.documentElement.scrollTop : d.body.scrollTop;
  return sT;
}
function gbH()
{
  //var bH=(ie && mac) ? d.body.clientHeight : ie ? d.documentElement.clientHeight : d.body.clientHeight;
  var bH=(ie && mac) ? d.body.clientHeight : ie ? d.documentElement.clientHeight : self.innerHeight;
  return bH;
}
function gbW()
{
  //var bW=(ie && mac) ? d.body.clientWidth : ie ? d.documentElement.clientWidth : d.body.clientWidth;
  var bW=(ie && mac) ? d.body.clientWidth : ie ? d.documentElement.clientWidth : self.innerWidth;
  return bW;
}
function sS(e,sprop,svalue)
{
  eval("e.style." + sprop + "='" + svalue + "'");
}
// greg bells' create element extension (modified)
function cE(i,s)
{
  var X='<div';X=i?X+' id="'+i+'"':X;X=s?X+' style="'+s+'"':X;X+='>';
  var Y=d.createElement("DIV");
  if(Y){Y.innerHTML=X;d.body.appendChild(Y);Y = gE(i);}
  return Y;
}
function cN(e,i,s)
{
  var X='<div';X=i?X+' id="'+i+'"':X;X=s?X+' style="'+s+'"':X;X+='>';
  var Y=d.createElement("DIV");
  if(Y){Y.innerHTML=X;e.appendChild(Y);Y = gE(i);}
  return Y;
}
function gwW()
{
  //var wW=(ie && mac) ? d.body.clientWidth : ie ? d.documentElement.clientWidth : self.innerWidth;
  var wW=(ie && mac) ? d.body.clientWidth : ie ? d.body.clientWidth : self.innerWidth;
  return wW;
}

function gwH()
{
  //var wH=(ie && mac) ? d.body.clientHeight : ie ? d.documentElement.clientHeight : d.body.clientHeight;
  var wH=(ie && mac) ? d.body.clientHeight : ie ? d.documentElement.clientHeight : self.innerHeight;
  return wH;
}

// floating object functions by wallace mcgee - wmcs@senet.com.au - 21/8/01
//  updated for current browsers - rick morris 26 jun 2003
sliding = 0;
ti = 20;
sI = 3;
//function sT(e,t){if(sliding)return;sliding=1;e.timer=setInterval('gT('+t+');',ti);} // wm set timer to start floating, calling gT() until the destination x,y is reached..
function sT(e,t){e.timer=setInterval('gT('+t+');',ti);} // wm set timer to start floating,

/*
function gT(e,x,y)
{
  var o=gX(e);var a=Math.round((o-x)/ts);if(o!=x)sX(e,o-a);
  o=gY(e);var b=Math.round((o-y)/ts);if(o!=y)sY(e,o-b);
  if(a==0&&b==0){clearInterval(e.timer);sliding=0;}
}
*/
function gT(e,x,y)
{
  var o = gX(e);
  if(o != x)
  {
    var newX = 0;
    if(x > o)
    {
      newX = o + sI;
      newX = newX > x ? x : newX;
    }
    else
    {
      newX = o - sI;
      newX = newX < x ? x : newX;
    }
    sX(e,newX);
  }
  var p = gY(e);
  if(p != y)
  {
    var newY = 0;
    if(y > p)
    {
      newY = p + sI;
      newY = newY > y ? y : newY;
    }
    else
    {
      newY = p - sI;
      newY = newY < y ? y : newY;
    }
    sY(e,newY);
  }
  if(o == x && p == y)
  {
    clearInterval(e.timer);
  }
}




function gX(e){var x=e.offsetLeft;var op=e.offsetParent;while(op!=null){x+=op.offsetLeft;op=op.offsetParent;}return x;}

/*
function gW(e){return e.offsetWidth}
function gH(e){return e.offsetHeight}
function gX(e){var x=e.offsetLeft;var op=e.offsetParent;while(op!=null){x+=op.offsetLeft;op=op.offsetParent;}return x;}
function gY(e){var y=e.offsetTop;var op=e.offsetParent;while(op!=null){y+=op.offsetTop;op=op.offsetParent;}return y;}
*/

