DiscountCode = {

	codes: 	[
					'31337',
					'31415',
					'59803',
					'11235',
					'21718'
					],

	check:	function(code)
	{
		for (var i in this.codes)
		{
			if (code == this.codes[i]) return true;
		}
		return false;
	},
	
	getDiscountedPrice:	function(code, original_price)
	{
		var discount = .1;
		if (code == this.codes[0]) discount = .2;
		
		return Math.round(original_price * (1 - discount) * 100) / 100;
	}
}
