var timerCart;
var hCart = -450;	// set this to the same value of the top property for the pa div in the style sheet
var wCart = 250;	// 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
var tCart = 150;	// set this to the actual pixel distance from the top where you want the pa div to be at the end of the descent

function startApCart() {
	setLeftCart();
	showApCart();
}


function hideApCart() { 
	document.getElementById("divCart").style.visibility = 'hidden';
}

function showApCart() { 
	/*if (document.layers) document.layers.divCart.visibility = 'show';
	else if (document.all) document.all.divCart.style.visibility = 'visible';
	else if (document.getElementById) */document.getElementById("divCart").style.visibility = 'visible';
	state=typeof tPosCart;
	if(state=='undefined') tPosCart = hCart;
	if(tPosCart < tCart) { 
		tPosCart+=25;
		/*if (document.layers) document.layers.divCart.top = tPosCart+"px";
		else if (document.all) document.all.divCart.style.top = tPosCart+"px";
		else if (document.getElementById)*/ document.getElementById("divCart").style.top = tPosCart+"px";
	}

	if(timerCart!=null) clearInterval(timerCart);
	timerCart = setTimeout("showApCart()",10);
	
}

function getoPosCart() {
	/*if (document.layers) alert(document.layers.divCart.top);
	else if (document.all) alert(document.all.divCart.style.top);
	else if (document.getElementById)*/ alert(document.getElementById("divCart").style.top);
}

function setLeftCart() {
	/*if (document.layers) document.layers.divCart.left = ((window.innerWidth / 2) - (wCart / 2))+"px";
	else if (document.all) document.all.divCart.style.left = ((document.body.offsetWidth / 2) - (wCart/ 2))+"px";
	else if (document.getElementById)*/ document.getElementById("divCart").style.left = ((window.innerWidth / 2) - (wCart / 2))+"px";
}