/*
	---------Do not edit this file ----------------------------
*/

var currentImage;
var currentId;


function acaPosition()
{
	var Xpos = 0 ;
	Xpos = getLeft('mainTable') + 4;
	xPosition = Xpos + "px";
	document.getElementById('ACALogo').style.left = xPosition;

}

function imageOver(overImage)
{
	document.getElementById('mainBack').style.backgroundImage='url(images/headerFiles/'+overImage+')';
}
function imageOut()
{
	if (!currentImage)
	{
	currentImage='teamCorpDevHeader2.jpg';
	}
	document.getElementById('mainBack').style.backgroundImage='url(images/headerFiles/'+currentImage+')';
}
function changeContent(newImage, linkId)
{
	currentImage = newImage;

	if (currentId != linkId)
	{
		currentId = linkId;
		updatePageContent(linkId);
	}
}


function getPramFromURL( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function setUp ()
{
	var myWidth = 0, myHeight = 0, acaLeft = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

  if (myWidth <=1000)
  {
   acaLeft = 385;
  }

  currentId = getPramFromURL(page);

  if (currentId.length>0)
  {
  	updatePageContent(linkId);
  }
}

function getLeft(obj)
{
if ('string' == typeof obj)
obj = document.getElementById(obj);
var x = 0;
while (obj != null)
{
x += obj.offsetLeft;
obj = obj.offsetParent;
}
return x;
}

function getTop(obj)
{
if ('string' == typeof obj)
obj = document.getElementById(obj);
var y = 0;
while (obj != null)
{
y += obj.offsetTop;
obj = obj.offsetParent;
}
return y;
}






