function Buy_mp3(strIds, intType, isAFS) { //NOTE: this function is a mirror of Buy() on home.napster.com in navigation.js 
	//if(typeof(console) != "undefined") { console.log("buy"); }
	
	var type = parseInt(intType);
	var purchaseString = "ids=" + strIds + "&type=";
	
	switch(type) {
		case 0:
			strIds = new String(strIds);
			/*
			if(strIds == "0" || strIds.indexOf(",") > 0) {
				if(strIds == "0") {
					var itemArray = getAllListReturnTracks();
					();
					if(itemArray) {
						strIds = itemArray.join(",");
						purchaseString = "ids=" + strIds + "&type=";
					}
				}
			}
			*/
			purchaseString += "track";
			break;
		case 1:
			purchaseString += "album";
			if (isAFS != null && typeof(isAFS) != 'undefined') {
				purchaseString += "&afs=" + (isAFS ? 1 : 0);
			}
			break;
		case 2:
			// ids need to change - prepend "MIX_"
			purchaseString = "ids=MIX_" + strIds + "&type=admin_playlist";
			break;
		case 3: //don't think this is used for free.napster.com leaving for now
			purchaseString += "playlist";
			break;
		case 7: //don't think this is used for free.napster.com leaving for now
			purchaseString += "work";
			break;
		default:
			return;
	}
	
	purchaseString += "&affiliate_id=75&referral_id=FREENAPSTER&promo_id=DEFAULT";
	
	if(purchaseString) {
		if(typeof(console) != "undefined") { console.log("http://home.napster.com/ns/purchase/clear/?" + purchaseString); }
		var purchasePop = window.open("http://home.napster.com/ns/purchase/clear/?" + purchaseString,"purchaseWin", "width=810,height=500,menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
		purchasePop.focus();
	}
}