/****
*
* getCartItem		-	Gets the Actinic Cart Value & No of Items
*
* Input: nIndex	-	Cart item index to retrieve
*							1 = TOTAL_VALUE
*							3 = CART_COUNT
*
* Returns:				Requested cart item or 0 (zero) if not found
******/

//CART_CONTENT = Cookie name
//1 = TOTAL_VALUE
//3 = CART_COUNT

function getCartItem(nIndex)
	{
	var act_cart= getCookie("CART_CONTENT")
	var sTemp =(act_cart != null) ? sTemp=act_cart.split("\t"):0;
	return (sTemp.length > 0) ? sTemp[nIndex] : 0;
	}
	
/****
*
* win	- calls up the WUP window
*
* Input   - None
* Returns - None
*****/

function win()
	{
	var sMsg = window.open("paycash1.htm","","height = 507, width = 400, left = 378, top = 40");
	}

/****
*
* GotoAnchor - JS for jumping to an anchor - some user agents don't handle
*				anchors correctly if BASE HREF is present
*
* Input: 				sAnchor
*
* Returns:				nothing
******/

function GotoAnchor(sAnchor)
	{
	window.location.hash = sAnchor;
	}

/***
* Show Hide layers for FAQ section
***/

function toggleLayer(whichLayer)
{
	if (document.getElementById)// standards
	{
	for (i = 1; i <= 10; i++){
	if ("faq"+i != whichLayer)
	{document.getElementById("faq"+i).style.display = ""}}
	var style2 = document.getElementById(whichLayer).style;
	style2.display = style2.display? "":"block";
	}
	else if (document.all)// old msie versions
	{
	for (i = 1; i <= 10; i++){
	if ("faq"+i != whichLayer)
	{document.all["faq"+i].style.display = ""}}
	var style2 = document.all[whichLayer].style;
	style2.display = style2.display? "":"block";
	}
	else if (document.layers)// nn4
	{
	for (i = 1; i <= 10; i++){
	if ("faq"+i != whichLayer)
	{document.layers["faq"+i].style.display = ""}}
	var style2 = document.layers[whichLayer].style;
	style2.display = style2.display? "":"block";
	}
}