function refreshWallet(){
	swfobject.getObjectById("header").refreshWallet();
}

function navigate(whereTo,infoObj){
	switch(whereTo){
		case "home":
		window.location = "index.php";
		break;
		case "invite":
		window.location = "../invite.php";
		break;
		case "myProfile":
			if (sessionVars.s!="n"){
				window.location = "../userProfile.php?uid="+sessionVars.uid;
			}else{
				window.location = "../userProfile.php";
			}
		break;
		case "myInbox":
			window.location = "userProfile.php?uid="+sessionVars.uid+"&atn=op&wp=PlaceMessages";
		break;
		case "myFriendReqs":
			window.location = "userProfile.php?uid="+sessionVars.uid+"&atn=op&wp=PlaceFriends";
		break;
		case "myWallet":
			window.location = "userProfile.php?uid="+sessionVars.uid+"&atn=op&wp=PlaceWallet";
		break;
		case "myUploads":
			window.location = "userProfile.php?uid="+sessionVars.uid+"&atn=op&wp=PlaceUploads";
		break;		
		case "otherProfile":
			window.location = "userProfile.php?uid="+infoObj.uid;
			break;
		case "userFavs":
			window.location = "userProfile.php?uid="+infoObj.uid+"&atn=op&wp=PlaceFavorites";
			break;
		case "userUploads":
			window.location = "userProfile.php?uid="+infoObj.uid+"&atn=op&wp=PlaceUploads";
			break;
		case "userFriends":
			window.location = "userProfile.php?uid="+infoObj.uid+"&atn=op&wp=PlaceFriends";
			break;
		case "openItem":
			window.location = "index.php?atn=oi&id="+infoObj.itemID;
		break;
		case "register":
			window.location = "register.php";
		break;
		case "reviews":
			window.location = "reviews.php";
		break;
		case "help":
			window.location = "../helpCenter.php";
		break;
		case "about":
			window.location = "../about.php";
		break;
		case "creatorsContest":
			window.location = "../creatorsContest.php";
		break;
		case "showBid":
			window.location = "../prizeBid.php?aid="+infoObj.aid;
		break;
		case "showOffer":
			window.location = "../offerDetails.php?aid="+infoObj.aid;
		break;
		default:break;		
	}
}