<!--

function mtSwap(name,x) {

	var swappedImage = "/Windfall/images/money_tracker/" + name + "_item" + x + ".jpg";
	document.getElementById("mtPurchasedImg").src = swappedImage;
	
	switch (name) {

		case 'beth':
			prodDesc = beth(x);
			break;

		case 'cameron':
			prodDesc = cameron(x);
			break;

		case 'damien':
			prodDesc = damien(x);
			break;

		case 'frankie':
			prodDesc = frankie(x);
			break;

		case 'kimberly':
			prodDesc = kimberly(x);
			break;

		case 'maggie':
			prodDesc = maggie(x);
			break;

		case 'nina':
			prodDesc = nina(x);
			break;

		case 'peter':
			prodDesc = peter(x);
			break;		

		case 'sean':
			prodDesc = sean(x);
			break;
	}
		
	description = document.getElementById("mtPurchasedTxt");
	description.innerHTML = prodDesc;

}

function beth(x) {
	if (x == 2) {
		content = "After leaving Cameron, Beth decided to move into a hotel suite."
	} else if (x == 1) {
		content = "For a much-deserved getaway, Beth escaped with Nina for a shopping trip to Paris."
	} else if (x == 3) {
		content = "Now something else different, Beth item three, Beth hails from New York, where Hillary Clinton is a Senator."
	}
	return content
}
function cameron(x) {
	if (x == 3) {
		content = "Cameron bought Nina her dream house so they could begin their lives together."
	} else if (x == 2) {
		content = "Cameron bought a share of Peter’s bike shop."
	} else if (x == 1) {
		content = "Cameron took a former student's baby in his care after she decided she would go to rehab for her drug abuse."
	}
	return content
}
function damien(x) {
	if (x == 8) {
		content = "In order to get Galina out of his life for good, Damien gave her money so she could open up her own pretzel cart business."
	} else if (x == 7 ) {
		content = "Damien hired a hotshot attorney to divorce Galina."
	} else if (x == 6 ) {
		content = "Damien decided it was time to buy his wife, Galina, is wedding ring so other men would notice she was a married woman."
	} else if (x == 5 ) {
		content = "Damien took Frankie out on a date. He rented the entire local skating rink for just the two of them."
	} else if (x == 4) {
		content = "After test driving a sports car in the school parking lot, Damien decided to buy it."
	} else if (x == 3) {
		content = "When Damien found out that Galina didn't have any new clothes to wear, he bought her a new wardrobe."
	} else if (x == 2) {
		content = "Rented out the penthouse suite of a downtown hotel."
	} else if (x == 1 ) {
		content = "After realizing that he could only claim the money if he was emancipated from his parents, Damien married a Russian woman. "
	}
	return content
}
function frankie(x) {
	if (x == 5) {
		content = "Because she wanted to spend a night alone with Damien, Frankie used her credit card to rent a hotel room."
	} else if (x == 4) {
		content = "Addie surprised Frankie and bought a fully furnished loft in Manhattan's Tribeca district."
	} else if (x == 3) {
		content = "Addie surprised Frankie and bought a fully furnished loft in Manhattan's Tribeca district."
	} else if (x == 2) {
		content = "Frankie's mom bought a first class trip to a spa in Arizona for some rest and relaxation."
	} else if (x == 1) {
		content = "Frankie's mother hired Frankie a personal chef while she took a trip to Manhattan."
	}
	return content
}
function kimberly(x) {
	if (x == 3) {
		content = "Kimberly decided to move herself and her son out of the hotel suite and into a new home."
	} else if (x == 2) {
		content = "Frustrated with the lack of funding at her son's school, Kimberly offered up a large sum of money to make improvements."
	} else if (x == 1) {
		content = "After leaving her trailer park, Kimberly and her son moved into a swanky hotel suite."
	}
	return content
}
function maggie(x) {
	if (x == 3) {
		content = "Maggie bought a new restaurant and hired her boyfriend, Doug, as the head chef."
	} else if (x == 2) {
		content = "When a former patient of Maggie's couldn't pay for her surgery, Maggie wrote her a check and paid for it herself."
	} else if (x == 1) {
		content = "Maggie found that she won the lottery just as her old car broke down. So, she walked across the street and picked up a brand new car."
	}
	return content
}
function nina(x) {
	if (x == 2) {
		content = "Nina surprised her daughters by creating a Peter Pan set for their backyard, equipped with costumes."
	} else if (x == 1) {
		content = "For a much deserved getaway, Nina escaped with Beth to Paris for a shopping trip."
	}
	return content
}
function peter(x) {
	if (x == 7) {
		content = "Peter accomplished a lifelong dream and bought his own bike shop with the goal of manufacturing mountain bikes."
	} else if (x == 1) {
		content = "For one night, Peter rented a carnival to put in his backyard for his two young daughters, Daisy and Violet."
	} else if (x == 2) {
		content = "Peter bought a heated pool to put in the backyard for the family."
	} else if (x == 3) {
		content = "Feeling it was time to move, Nina and Peter decided to buy a bigger house for their family."
	} else if (x == 4) {
		content = "Peter went on a fishing trip to Baja, Mexico, with Park and other potential investors."
	} else if (x == 5) {
		content = "For the safety of the entire family, Peter purchased a high-powered security system for the new mansion."
	} else if (x == 6) {
		content = "Peter had to fly to Belgium to try to sponsor a famous bicyclist."
	}
	return content
}
function sean(x) {
	if (x == 1) {
		content = "In order to get Jeremy out of his life forever, Sean offered him money to leave town."
	} else if (x == 2) {
		content = "After finding out he might be getting his money, Sean went on a shopping spree with his girlfriend."
	} else if (x == 3) {
		content = "Now something else different, Beth item three, Beth hails from New York, where Hillary Clinton is a Senator."
	}
	return content
}

//-->
