
function reDo(){ window.location.reload() }

function positionAll(){
window.onresize = reDo;

tablewidth = 784;
tableheight = 584;
if (navigator.userAgent.indexOf("MSIE") != -1){
	winwidth = document.body.clientWidth;
	winheight = document.body.clientHeight;
} else {
	winwidth = window.innerWidth;
	winheight = window.innerHeight;
}
if (winwidth > tablewidth){
	posX = (winwidth/2)-(tablewidth/2);
} else {
	posX = 0;
}
if (winheight > tableheight){
	posY = (winheight/2)-(tableheight/2);
} else {
	posY = 0;
}

if ((navigator.userAgent.indexOf("MSIE") != -1) && (navigator.userAgent.indexOf("Mac") != -1)){
	macieabout = 0;
	macieservices = 0;
	maciesectors = 0;
	macieprojects = 0;
	
}

document.getElementById("flashCover").style.left = posX + 18 + "px";
document.getElementById("aboutDiv").style.left = posX + 260 + "px";
document.getElementById("servicesDiv").style.left = posX + 321 + "px";
document.getElementById("sectorsDiv").style.left = posX + 395 + "px";
document.getElementById("projectsDiv").style.left = posX + 468 + "px";
document.getElementById("resourcesDiv").style.left = posX + 543 + "px";
document.getElementById("careersDiv").style.left = posX + 629 + "px";
document.getElementById("contactDiv").style.left = posX + 699 + "px";
document.getElementById("institutionalDiv").style.left = posX + 479 + "px";
document.getElementById("sustainableDiv").style.left = posX + 355 + "px";

document.getElementById("flashCover").style.top = posY + 92 + "px";
document.getElementById("aboutDiv").style.top = posY + 18 + "px";
document.getElementById("servicesDiv").style.top = posY + 18 + "px";
document.getElementById("sectorsDiv").style.top = posY + 18 + "px";
document.getElementById("projectsDiv").style.top = posY + 18 + "px";
document.getElementById("resourcesDiv").style.top = posY + 18 + "px";
document.getElementById("careersDiv").style.top = posY + 18 + "px";
document.getElementById("contactDiv").style.top = posY + 18 + "px";
document.getElementById("institutionalDiv").style.top = posY + 56 + "px";
document.getElementById("sustainableDiv").style.top = posY + 76 + "px";
}
if (navigator.userAgent.indexOf("Firefox") != -1){
window.onload = function()
{
  window.addEventListener('resize', winOnResize, false);
}
}
function winOnResize()
{
positionAll()
}

positionAll()
var testload=1;
