// JavaScript Document
function xCoord(id) {
	object=document.getElementById(id);
	xc=parseInt(object.style.left);
	return xc;
}

function yCoord(id) {
	object=document.getElementById(id);
	yc=parseInt(object.style.top);
	return yc;
}

function placeIt (id, x, y) {
	object=document.getElementById(id);
	object.style.left=x+"px";
	object.style.top=y+"px";
}

function shiftIt(id, dx, dy) {
	object=document.getElementById(id);
	object.style.left=xCoord(id)+dx+"px";
	object.style.top=yCoord(id)+dy+"px";
}

function hideIt(id) {
	object=document.getElementById(id);
	object.style.visibility="hidden";
}

function showIt(id) {
	object=document.getElementById(id);
	object.style.visibility="visible";
}

function winWidth(){
	if(window.innerWidth)return window.innerWidth;
	else if (document.documentElement) return document.documentElement.offsetWidth;
	else if (document.body.clientWidth) return document.body.clientWidth;
}

function winHeight() {
	if(window.innerHeight)return window.innerHeight;
	else if (document.documentElement) return document.documentElement.offsetHeight;
	else if (document.body.clientHeight) return document.body.clientHeight;
}



