
var w = 70;	// set this to the same value of the width property for the pa div in the style sheet, smaller to move it to the right, larger to move it to the left


function startAp() {
	setLeft();
	showAp();
}

function hideAp() { 
	if (document.layers) document.layers.pa.visibility = 'hide';
	else if (document.all) document.all.pa.style.visibility = 'hidden';
	else if (document.getElementById) document.getElementById("pa").style.visibility = 'hidden';
}

function showAp() { 
	if (document.layers) document.layers.pa.visibility = 'show';
	else if (document.all) document.all.pa.style.visibility = 'visible';
	else if (document.getElementById) document.getElementById("pa").style.visibility = 'visible';
}


function setLeft() {
	if (document.layers) document.layers.pa.left = ((window.innerWidth / 2) - (w / 2))+"px";
	else if (document.all) document.all.pa.style.left = ((document.body.offsetWidth / 2) - (w / 2))+"px";
	else if (document.getElementById) document.getElementById("pa").style.left = ((window.innerWidth / 2) - (w / 2))+"px";
}

