// JavaScript Document

function imgSwap(id, src) {
	document.getElementById(id).src = src;
}

function moveObject() {
	var object=document.getElementById('hoverbox');
	object.style.position='absolute';
	//object.style.bottom=0 + 'px';
	//object.style.right=0 + 'px';
	//object.scrollTop = object.scrollHeight;
	
	var myWidth = 0, myHeight = 0;
	if ( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myHeight = document.body.clientHeight;
	}

	
	
	if (navigator.appName == "Microsoft Internet Explorer") {
		//alert("You're at " + document.body.scrollTop + " pixels.");
		object.style.top = document.documentElement.scrollTop + myHeight - 280 + 'px';
	} else {
		//alert("You're at " + window.pageYOffset + " pixels.");
		object.style.top = window.pageYOffset + myHeight - 280 +  'px';
		//object.style.top = 500;
	}
	
}
