bgr=0;
bgg=0;
bgb=0;

//document.getElementById('seeking').onmousemove=follow;

pw=80;
ph=80;

function follow(e) {

if (!e) var e = window.event;
//if (!currentTarget) var currentTarget = this;

pl=e.clientX-(pw/2);
pt=e.clientY-(ph/2);

document.getElementById('seeking').style.clip="rect("+pt+","+(pl+pw)+","+(pt+pw)+","+pl+")";

}

function changew(x,y) {

pw=x;
ph=y;

}

function show(object) {
         
document.getElementById(object).style.visibility='visible';

}

function hide(object) {

document.getElementById(object).style.visibility='hidden';

}

function shiftbgcolor(tor,tog,tob) {

if ((bgr!=tor)||(bgg!=tog)||(bgb!=tob)) {

if (bgr<tor) bgr++;
if (bgr>tor) bgr--;

if (bgg<tog) bgg++; 
if (bgg>tog) bgg--;

if (bgb<tob) bgb++;
if (bgb>tob) bgb--;

document.body.style.backgroundColor ="rgb("+bgr+","+bgg+","+bgb+")";

a1=tor;
b1=tog;
c1=tob;

setTimeout("shiftbgcolor(a1,b1,c1)",1);

}

}

function dragto(obj_id,x,y) {

obj=document.getElementById(obj_id).style;

xi=parseInt(obj.left);
yi=parseInt(obj.top);

if ((xi!=x)||(yi!=y)) {

if (xi<x) obj.left=++xi;
if (xi>x) obj.left=--xi;

if (yi<y) obj.top=++yi;
if (yi>y) obj.top=--yi;

}

a2=obj_id;
b2=x;
c2=y;

setTimeout("dragto(a2,b2,c2)",1);

}

function jumpsize(obj_id,w,h) {

obj=document.getElementById(obj_id);
obj.setAttribute('width',w);
obj.setAttribute('height',h);

}

function zoomsize(obj_id,w,h) {

obj=document.getElementById(obj_id);

hi=obj.getAttribute('height');
wi=obj.getAttribute('width');
if ((wi!=w)||(hi!=h)) {

if (wi<w) obj.setAttribute('width',++wi);
if (wi>w) obj.setAttribute('width',--wi);

if (hi<h) obj.setAttribute('height',++hi);
if (hi>h) obj.setAttribute('height',--hi);

}

a3=obj_id;
b3=w;
c3=h;

setTimeout("zoomsize(a3,b3,c3)",1);

}

function zoomvert(obj_id,h) {

obj=document.getElementById(obj_id);
hi=obj.getAttribute('height');

if (hi!=h) {

if (hi<h) obj.setAttribute('height',++hi);
if (hi>h) obj.setAttribute('height',--hi);

}

a4=obj_id;
b4=h;

setTimeout("zoomvert(a4,b4)",1);

}

function resizeto(x,y) {

window.resizeTo(x,y);

}

