function Item(name,value) {
	this.name = name;
	this.value = value;
	this.digits = 0;
}

function Celebrity(name,salary) {
	this.name = name;
	this.salary = salary;
}

celebrity = new Array(30);
celebrity[0]  = new Celebrity("None", 0);
celebrity[1]  = new Celebrity("Alex Rodriguez", 29000000);
celebrity[2]  = new Celebrity("Barry Diller", 156200000);
celebrity[3]  = new Celebrity("Bill Clinton", 6000000);
celebrity[4]  = new Celebrity("Craig Barrett", 13292000);
celebrity[5]  = new Celebrity("Dan Brown", 76500000);
celebrity[6]  = new Celebrity("David Beckham", 33000000);
celebrity[7]  = new Celebrity("David Letterman", 40000000);
celebrity[8]  = new Celebrity("Denzel Washington", 30000000);
celebrity[9]  = new Celebrity("Drew Barrymore", 22000000);
celebrity[10]  = new Celebrity("Elton John", 53000000);
celebrity[11]  = new Celebrity("J.K. Rowling", 32000000);
celebrity[12]  = new Celebrity("Jeff Bezos", 82000000);
celebrity[13]  = new Celebrity("Jeff Gordon", 23400000);
celebrity[14]  = new Celebrity("Julia Roberts", 9000000);
celebrity[15]  = new Celebrity("Lance Armstrong", 28000000);
celebrity[16]  = new Celebrity("Larry Ellison", 72420000);
celebrity[17]  = new Celebrity("Madonna", 72000000);
celebrity[18]  = new Celebrity("Meg Whitman", 2908000);
celebrity[19]  = new Celebrity("Oprah Winfrey ", 260000000);
celebrity[20]  = new Celebrity("Paris Hilton", 6500000);
celebrity[21]  = new Celebrity("Regis Philbin", 200000);
celebrity[22]  = new Celebrity("Rupert Murdoch", 17226000);
celebrity[23]  = new Celebrity("Shaquille O'Neal", 32000000);
celebrity[24]  = new Celebrity("Steve Ballmer", 910000);
celebrity[25]  = new Celebrity("Steven Spielberg", 110000000);
celebrity[26]  = new Celebrity("The Olsen Twins", 21000000);
celebrity[27]  = new Celebrity("Tiger Woods", 10000000);
celebrity[28]  = new Celebrity("Tom Cruise", 31000000);
celebrity[29]  = new Celebrity("Tyra Banks", 1800000);

function CelebSelect(){
	for(i = 0; i < 30; i++){
		document.write('<option value="'+i+'">'+celebrity[i].name+'</option>');
	}
}


items = new Array(41);
items[0]  = new Item("Apple iPhones (8 GB).", 399.00);
items[1]  = new Item("Big Macs.", 3.57);
items[2]  = new Item("tubes of ChapStick.", 1.69);
items[3]  = new Item("acres of Indiana farmland.", 3688.00);
items[4]  = new Item("median American homes in 2007.", 218900.00);
items[5]  = new Item("Subzero PRO 48 refrigerators.", 12000.00);
items[6]  = new Item("Smith & Wesson model .357 Magnum Revolvers.", 1311.00);
items[7]  = new Item("gumballs.", 0.25);
items[8]  = new Item("tall lattes at Starbucks.", 3.47);
items[9]  = new Item("7-night cruises for two in the Caribbean.", 998.00);
items[10]  = new Item("nights at the Mansion at MGM Grand.", 5000.00);
items[11]  = new Item("packs of Marlboro cigarettes.", 3.80);
items[12]  = new Item("seven course dinners at the 21 Club.", 120.00);
items[13]  = new Item("plastic Slinkys.", 2.00);
items[14]  = new Item("corporations the size of Citigroup.", 126910000000.00);
items[15]  = new Item("private islands in the US Virgin Islands.", 25000000.00);
items[16]  = new Item("minutes of psychic talk time.", 3.99);
items[17]  = new Item("cemetary plots.", 8000.00);
items[18]  = new Item("bottles of Clos d'Ambonnay 1995 champagne.", 3000.00);
items[19]  = new Item("bottles of beer.", 1.50);
items[20]  = new Item("facials at the Canyon Ranch in Tucson,  Arizona.", 100.00);
items[21]  = new Item("adult admissions to Disney World.", 71.36);
items[22]  = new Item("Bugatti Veyrons.", 1800000.00);
items[23]  = new Item("pairs of Ferragamo shoes.", 380.00);
items[24]  = new Item("private jets.", 23379.00);
items[25]  = new Item("ounces of D'artagnan Medallion duck foie gras.", 4.33);
items[26]  = new Item("gallons of milk.", 3.87);
items[27]  = new Item("cans of Coke.", 1.00);
items[28]  = new Item("pounds of ground beef.", 2.23);
items[29]  = new Item("rolls of toilet paper.", 5.99);
items[30]  = new Item("tubes of Crest toothpaste.", 3.32);
items[31]  = new Item("rides on the New York City subway.", 2.00);
items[32]  = new Item("Hanes T-shirts.", 4.33);
items[33]  = new Item("bottles of nail polish.", 7.00);
items[34]  = new Item("liters of Jack Daniel's whiskey.", 28.99);
items[35]  = new Item("2008 Vespa Granturismo scooters.", 5299.00);
items[36]  = new Item("trips to the International Space Station.", 25000000.00);
items[37]  = new Item("front row tickets to see Wayne Newton in Vegas.", 100.00);
items[38]  = new Item("pairs of Levis 501 jeans.", 38.99);
items[39]  = new Item("Sharp AQUOS 32in LCD televisions.", 1299.99);
items[40]  = new Item("Patek Philippe Tourbillion watches.", 240000.00);










function Div_Items(used_celeb){
	document.write('<SPAN STYLE="position:relative;top:1px;left:0px;">');
	for(j = 0; j < 20; j++){
		document.write('<IMG name="item_amount" height=13 width=7 hspace=0 src="images/0.gif" border=0>');
	}
	document.write('</SPAN>');
	for(i = 0; i < 41; i++){
		document.write('<DIV id="item_list" style="position:absolute;top:'+(used_celeb?'80px':'48px')+';left:0px; PADDING-TOP: 7px; VISIBILITY: hidden">');
		document.write('<IMG name="item_spacer" height=12 width=50 hspace=0 src="images/blank.gif" border=0>');
		document.write(" "+items[i].name+"</div>");
	}
}



function set_image(image,character,old_char){
	if(character == "."){
		if(old_char != "."){
//			image.src = "./images/dot.gif";
			image.src = dotImage.src;
			image.width = 4;
			image.height = 13;
		}
		return 4;
	}
	else if(character == ""){
		if(old_char != ""){
//			image.src = "./images/blank.gif";
			image.src = blankImage.src;
			image.width = 0;
			image.height = 13;
		}
		return 0;
	}
	else if(character == ","){
		if(old_char != ","){
//			image.src = "./images/comma.gif";
			image.src = commaImage.src;
			image.width = 5;
			image.height = 14;
		}
		return 5;
	}
	else if(character == "%"){
		if(old_char != "%"){
//			image.src = "./images/percent.gif";
			image.src = percentImage.src;
			image.width = 10;
			image.height = 13;
		}
		return 10;
	}
	else{
		if(old_char != character){
//			image.src = "./images/"+character+".gif";
			image.src = numberImage[character].src;
			image.width = 7;
			image.height = 13;
		}
		return 7;
	}
}

