var thisSite;
var thisFooter;

var arrows = new Array();

for (i = 0; i < 8; i++)
	{arrows[i] = new Image();}

arrows[0].src="/images/arrow_down.gif";
arrows[1].src="/images/arrow_down_hover.gif";
arrows[2].src="/images/arrow_up.gif";
arrows[3].src="/images/arrow_up_hover.gif";
arrows[4].src="/images/arrow_left.gif";
arrows[5].src="/images/arrow_left_hover.gif";
arrows[6].src="/images/arrow_right.gif";
arrows[7].src="/images/arrow_right_hover.gif";
	
function posIt()
{
//document.title = document.body.clientHeight;

if (document.body.clientWidth > 866)
	{
	thisSite.style.left = ((document.body.clientWidth - 1018) / 2) + "px";
	}
else
	{
	thisSite.style.left = -77;
	}

if (document.body.clientHeight > thisSite.clientHeight + 120)
	{
	thisSite.style.top = ((document.body.clientHeight - thisSite.clientHeight - 120) / 2) + "px";
	thisFooter.style.top = "100%";
	thisFooter.style.paddingLeft = thisFooter.style.paddingRight = Math.max(0, ((document.body.clientWidth - 866) / 2)) + "px";
	}
else
	{
	thisSite.style.top = 0;
	thisFooter.style.top = thisSite.clientHeight + 120;
	thisFooter.style.paddingLeft = thisFooter.style.paddingRight = Math.max(0, ((document.body.clientWidth - 866) / 2)) + "px";
	if (document.body.clientHeight == 0) 
		{
		thisFooter.style.top = "660px";
		}
	}
}

function init()
{
//thisSite = document.getElementById("site");
//thisFooter = document.getElementById("footer_page");

//posIt();
ibInit();
pgInit();
ddInit();
}

//window.onresize = posIt;
window.onload = init;
