
// -- Main Menu Rollovers ----------------------------------------------
function mainMenuOver(menuId){
	document.getElementById(menuId).style.listStyleType = "circle";
}
function mainMenuOut(menuId){
	document.getElementById(menuId).style.listStyleType = "square";
}
function mainSubMenuOver(menuId){
	document.getElementById(menuId).style.listStyleType = "square";
}
function mainSubMenuOut(menuId){
	document.getElementById(menuId).style.listStyleType = "circle";
}
// -- Main Map Rollovers -----------------------------------------------
function showShop(action, pId){
	if(action == "show"){
		document.getElementById(pId).style.display = "block";
	}else{
		document.getElementById(pId).style.display = "none";
	}
}
// ---------------------------------------------------------------------

// -- Graphic Menu Rollovers -------------------------------------------
function gmRollover(action, pId){
	if(action == "show"){
		document.getElementById(pId).src = "/images/layout/" + pId + "_over.jpg";
	}else{
		document.getElementById(pId).src = "/images/layout/" + pId + ".jpg";
	}
}
// ---------------------------------------------------------------------

// -- Categories Rollovers ---------------------------------------------
function catRollover(action, liId, imgId){
	if(action == "show"){
		var imageURL = "url('/images/icons/list-" + imgId + "-over.jpg')";
		document.getElementById(liId).style.listStyleImage = imageURL;
	}else{
		var imageURL = "url('/images/icons/list-" + imgId + ".jpg')";
		document.getElementById(liId).style.listStyleImage = imageURL;		
	}
}
// ---------------------------------------------------------------------

// -- BasketFlash - Shopping -------------------------------------------
function basketAlert(){
	flasher = setInterval("basketFlash()", 300);
	killTimer = setTimeout("stopFlash()", 4000);
}
function basketFlash(){
	document.getElementById("basketDisplay").style.borderColor = "#302A82";
	document.getElementById("basketDisplay").style.background = "#E3E3EF";
	iTimer = setTimeout("revert()", 100);
}
function revert(){
	document.getElementById("basketDisplay").style.borderColor = "#aba2d9";
	document.getElementById("basketDisplay").style.background = "#ffffff";
}
function stopFlash(){
	clearInterval(flasher);
}
// ---------------------------------------------------------------------

// -- Out of stock explantion ------------------------------------------
function showExp(pId, action){
	if(action == "show"){
		document.getElementById(pId).style.display = "block";
	}else{
		document.getElementById(pId).style.display = "none";
	}
}
// ---------------------------------------------------------------------