//============================================================================
// CONSTANTS (DON'T CHANGE!) |||||||||||||||||||||||||||||||||||||||||||||||||
//============================================================================
// define the content types
var CONTENT_TYPE_SP_RINGTONE 	= 1;
var CONTENT_TYPE_RINGTONE 		= 2;
var CONTENT_TYPE_WALLPAPER 		= 3;
var CONTENT_TYPE_VIDEO 			= 4;
var CONTENT_TYPE_SP_ALERT		= 5;
var CONTENT_TYPE_ALERT			= 6;
var CONTENT_TYPE_SP_GREETING	= 7;
var CONTENT_TYPE_GREETING		= 8;

// store all of the content types in a convenient array to traverse when needed
var CONTENT_TYPES = [CONTENT_TYPE_SP_RINGTONE,CONTENT_TYPE_RINGTONE,CONTENT_TYPE_WALLPAPER,CONTENT_TYPE_VIDEO,CONTENT_TYPE_SP_ALERT,CONTENT_TYPE_ALERT,CONTENT_TYPE_SP_GREETING,CONTENT_TYPE_GREETING];

// define various greeting delivery modes. some content types have multiple vectors for distribution
var GREETING_DELIV_MODE_OBC 	= 1; // outbound phone call
var GREETING_DELIV_MODE_EMAIL	= 2; // DO NOT USE! NOT IMPLEMENTED YET
var GREETING_DELIV_MODE_URL	 	= 3; // generate a URL to embed/copy-paste

// store all of the greeting delivery modes in a convenient array to traverse when needed
var GREETING_DELIV_MODES = [GREETING_DELIV_MODE_OBC,GREETING_DELIV_MODE_EMAIL,GREETING_DELIV_MODE_URL];

// define labels that describe each greeting delivery mode. These are used to build the user interface for the 'greeting_modes' screen.
var GREETING_DELIV_MODE_LABELS = {};
GREETING_DELIV_MODE_LABELS[GREETING_DELIV_MODE_OBC] 	= 'Send A Phone Call';
GREETING_DELIV_MODE_LABELS[GREETING_DELIV_MODE_EMAIL] 	= 'Send An E-mail';
GREETING_DELIV_MODE_LABELS[GREETING_DELIV_MODE_URL] 	= 'Get A Link To Copy & Paste';

// define a set of labels for each content type to display as path tracking in Google Analytics
var CONTENT_TYPE_TRACKING_LABEL = {};
CONTENT_TYPE_TRACKING_LABEL[CONTENT_TYPE_SP_RINGTONE] 	= 'sp_ringtone';
CONTENT_TYPE_TRACKING_LABEL[CONTENT_TYPE_RINGTONE] 		= 'ringtone';
CONTENT_TYPE_TRACKING_LABEL[CONTENT_TYPE_WALLPAPER] 	= 'mobile_wallpaper';
CONTENT_TYPE_TRACKING_LABEL[CONTENT_TYPE_VIDEO] 		= 'mobile_video';
CONTENT_TYPE_TRACKING_LABEL[CONTENT_TYPE_SP_ALERT]	 	= 'sp_alert';
CONTENT_TYPE_TRACKING_LABEL[CONTENT_TYPE_ALERT] 		= 'alert';
CONTENT_TYPE_TRACKING_LABEL[CONTENT_TYPE_SP_GREETING] 	= 'sp_greeting';
CONTENT_TYPE_TRACKING_LABEL[CONTENT_TYPE_GREETING] 		= 'greeting';

// define two different data structures for pricing. One for display to the user, and the other for the price tracked
var PRICING_DISPLAY = {};
var PRICING_TRACKED = {};

// object where we sort content objects into content types (keys)
var CONTENT_SIFT = {};

//============================================================================
// GLOBAL VARIABLES ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//============================================================================
// Google Analytics tracking info
var GA_TRACKING_ID = "UA-4944953-9";
var ENABLE_TRACKING = 1;

// Define paths to our gateways and proxies
var BASE_URL 					= "http://gladiators.youtalk.com/"; 				// base url to our microsite
var BASE_ASSET_URL 				= "http://cdn.gladiators.youtalk.com/"; 			// base url to our microsite's assets (css files, images, js files)
var AUDIO_GATEWAY_URL 			= BASE_URL+"gateway/preview_audio.php"; 			// url where audio should be fetched
var RT_WP_MV_GATEWAY_URL 		= BASE_URL+"gateway/rt_wp_mv_proxy.php"; 			// url where ringtone/wallpaper/video requests are sent
var OBC_GATEWAY_URL 			= BASE_URL+"gateway/obc_gateway.php"; 				// url where obc (outbound phone call) requests are sent
var OPT_IN_GATEWAY_URL 			= BASE_URL+"gateway/opt_in_gateway.php"; 			// url where sign up opt-in requests are sent
var OPT_OUT_GATEWAY_URL 		= BASE_URL+"gateway/opt_out_gateway.php"; 			// url where opt-out requests are sent
var USER_FEEDBACK_GATEWAY_URL 	= BASE_URL+"gateway/user_feedback_gateway.php"; 	// url where user feedback requests are sent
var PICKUP_DATA_GATEWAY_URL		= BASE_URL+"gateway/audio_pickup_data_gateway.php"; // url where pickup keys are sent fetch audio info
var PICKUP_KEY_GATEWAY_URL		= BASE_URL+"gateway/audio_pickup_key_gateway.php"; 	// url where audio info is sent in exchange for a pickup key
var RENDERER_DS_GATEWAY_URL 	= BASE_URL+'ds/[APP_ID].php'; 						// url to the gateway used to fetch JSON content data structures

// define the locations of the Flash audio players
var FLASH_PLAYER_SMALL_URL 		= BASE_ASSET_URL+'flash/audio_player_small.swf';
var FLASH_PLAYER_LARGE_URL 		= BASE_ASSET_URL+'flash/audio_player_large.swf';

// only used if all content is the same price
var PRICING_DISPLAY_GLOBAL					= 1.99;

// the price the end user sees (for display only)
PRICING_DISPLAY[CONTENT_TYPE_SP_RINGTONE]	= 1.99;
PRICING_DISPLAY[CONTENT_TYPE_RINGTONE]		= 1.99;
PRICING_DISPLAY[CONTENT_TYPE_SP_ALERT]		= 1.99;
PRICING_DISPLAY[CONTENT_TYPE_ALERT]			= 1.99;
PRICING_DISPLAY[CONTENT_TYPE_WALLPAPER]		= 1.99;
PRICING_DISPLAY[CONTENT_TYPE_VIDEO]			= 1.99;
PRICING_DISPLAY[CONTENT_TYPE_SP_GREETING]	= 0.00;
PRICING_DISPLAY[CONTENT_TYPE_GREETING]		= 0.00;

// the price that is tracked (only for tracking)
PRICING_TRACKED[CONTENT_TYPE_SP_RINGTONE]	= 1.99;
PRICING_TRACKED[CONTENT_TYPE_RINGTONE]		= 1.99;
PRICING_TRACKED[CONTENT_TYPE_SP_ALERT]		= 1.99;
PRICING_TRACKED[CONTENT_TYPE_ALERT]			= 1.99;
PRICING_TRACKED[CONTENT_TYPE_WALLPAPER]		= 1.99;
PRICING_TRACKED[CONTENT_TYPE_VIDEO]			= 1.99;
PRICING_TRACKED[CONTENT_TYPE_SP_GREETING]	= {GREETING_DELIV_MODE_OBC:-0.055, GREETING_DELIV_MODE_URL:0.0};
PRICING_TRACKED[CONTENT_TYPE_GREETING]		= {GREETING_DELIV_MODE_OBC:-0.055, GREETING_DELIV_MODE_URL:0.0};

// all of the content available on the site
var CONTENT = [
	// Super Personalized Ringtones
	{'content_type':CONTENT_TYPE_SP_RINGTONE, 	'title':'Hellga - Get On The Horn!',			'program_id':24, 	'product_id':679, 'app_id':872, 'retail_app_id':873, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_SP_RINGTONE, 	'title':'Hellga - Warriors Never Back Down!',	'program_id':24, 	'product_id':681, 'app_id':878, 'retail_app_id':879, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_SP_RINGTONE, 	'title':'Hellga - Unleash Hellga!',				'program_id':24, 	'product_id':680, 'app_id':884, 'retail_app_id':886, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_SP_RINGTONE, 	'title':'Justice - Wanted',						'program_id':24, 	'product_id':682, 'app_id':812, 'retail_app_id':813, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_SP_RINGTONE, 	'title':'Militia - Incoming',					'program_id':24, 	'product_id':683, 'app_id':767, 'retail_app_id':766, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_SP_RINGTONE, 	'title':'Militia - Get Off Your Gluts!',		'program_id':24, 	'product_id':727, 'app_id':769, 'retail_app_id':768, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_SP_RINGTONE, 	'title':'Siren - Sound The Alarm',				'program_id':24, 	'product_id':684, 'app_id':820, 'retail_app_id':821, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_SP_RINGTONE, 	'title':'Siren - Wanted',						'program_id':24, 	'product_id':685, 'app_id':822, 'retail_app_id':823, 'thumbnail_url':null, 'modes':[]},
	// Static Ringtones
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Wolf - Animal Instincts!', 			'program_id':24, 	'product_id':725, 'app_id':825, 'retail_app_id':824, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Wolf - Answer the Call of the Wild!',	'program_id':24, 	'product_id':721, 'app_id':827, 'retail_app_id':826, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Wolf - I Smell Fear and Blood!',		'program_id':24, 	'product_id':722, 'app_id':829, 'retail_app_id':828, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Wolf - Call of the Wild!', 			'program_id':24, 	'product_id':721, 'app_id':833, 'retail_app_id':831, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Wolf - Wolfpack Never Backs Down!',	'program_id':24, 	'product_id':726, 'app_id':835, 'retail_app_id':834, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Wolf - You Smell Like Dinner!', 		'program_id':24, 	'product_id':723, 'app_id':837, 'retail_app_id':836, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Hellga - On the Horn!', 				'program_id':24, 	'product_id':695, 'app_id':881, 'retail_app_id':880, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Hellga - Pillage Your Village!', 		'program_id':24, 	'product_id':701, 'app_id':883, 'retail_app_id':882, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Hellga - You Need a Punch!', 			'program_id':24, 	'product_id':697, 'app_id':887, 'retail_app_id':885, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Hellga - Nordic Knuckles!', 			'program_id':24, 	'product_id':696, 'app_id':889, 'retail_app_id':888, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Hellga - Striking Viking!', 			'program_id':24, 	'product_id':700, 'app_id':891, 'retail_app_id':890, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Hellga - I Will Hammer You!', 			'program_id':24, 	'product_id':698, 'app_id':893, 'retail_app_id':892, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Hellga - Kick Your Axe!', 				'program_id':24, 	'product_id':699, 'app_id':895, 'retail_app_id':894, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Toa - Phone Chant!', 					'program_id':24, 	'product_id':717, 'app_id':743, 'retail_app_id':742, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Toa - Call to Battle!', 				'program_id':24, 	'product_id':720, 'app_id':745, 'retail_app_id':744, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Toa - Battle Chant!', 					'program_id':24, 	'product_id':716, 'app_id':747, 'retail_app_id':746, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Toa - Get Off Your Gluts!',			'program_id':24, 	'product_id':718, 'app_id':749, 'retail_app_id':748, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Toa - Thousand Warriors!', 			'program_id':24, 	'product_id':719, 'app_id':751, 'retail_app_id':750, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Incoming Call!', 			'program_id':24, 	'product_id':707, 'app_id':773, 'retail_app_id':772, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Militia Goes Off!', 			'program_id':24, 	'product_id':705, 'app_id':775, 'retail_app_id':774, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Explode In Your Face!', 		'program_id':24, 	'product_id':702, 'app_id':777, 'retail_app_id':776, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Militia Unloads!', 			'program_id':24, 	'product_id':706, 'app_id':779, 'retail_app_id':778, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Operation Phone Call: Hero!', 		'program_id':24, 	'product_id':703, 'app_id':781, 'retail_app_id':780, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Operation Phone Call: Gladiator!', 	'program_id':24, 	'product_id':704, 'app_id':783, 'retail_app_id':782, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Answer The Call of Duty!', 			'program_id':24, 	'product_id':708, 'app_id':785, 'retail_app_id':784, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Big Gun!', 							'program_id':24, 	'product_id':709, 'app_id':787, 'retail_app_id':786, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - Pick You Up and Tank You!', 			'program_id':24, 	'product_id':710, 'app_id':789, 'retail_app_id':788, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Militia - The Next Target!', 					'program_id':24, 	'product_id':711, 'app_id':791, 'retail_app_id':790, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Siren - Chasing You Down!', 			'program_id':24, 	'product_id':712, 'app_id':838, 'retail_app_id':839, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Siren - Do Not Be Alarmed!', 			'program_id':24, 	'product_id':714, 'app_id':842, 'retail_app_id':845, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Siren - Jousting Stick!', 				'program_id':24, 	'product_id':713, 'app_id':848, 'retail_app_id':849, 'thumbnail_url':null, 'modes':[]},
	{'content_type':CONTENT_TYPE_RINGTONE, 		'title':'Siren - Last Warning!', 				'program_id':24, 	'product_id':715, 'app_id':850, 'retail_app_id':851, 'thumbnail_url':null, 'modes':[]},
	// TODO: Ringback Tones
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Hellga Ringback1!', 				'program_id':null, 	'product_id':null, 'app_id':864, 'retail_app_id':865, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Hellga Ringback2!', 				'program_id':null, 	'product_id':null, 'app_id':866, 'retail_app_id':867, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Hellga Ringback3!', 				'program_id':null, 	'product_id':null, 'app_id':870, 'retail_app_id':871, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Hellga Ringback4!', 				'program_id':null, 	'product_id':null, 'app_id':874, 'retail_app_id':876, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Siren Ringback1!', 				'program_id':null, 	'product_id':null, 'app_id':810, 'retail_app_id':811, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Siren Ringback3!', 				'program_id':null, 	'product_id':null, 'app_id':818, 'retail_app_id':819, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Justice Ringback1!', 				'program_id':null, 	'product_id':null, 'app_id':814, 'retail_app_id':815, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Militia Ringback2!', 				'program_id':null, 	'product_id':null, 'app_id':762, 'retail_app_id':763, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Militia Ringback3!', 				'program_id':null, 	'product_id':null, 'app_id':764, 'retail_app_id':765, 'thumbnail_url':null, 'modes':[]},
	// TODO: Static Ringback Tones
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Wolf Static Ringback1!',			'program_id':null, 	'product_id':null, 'app_id':840, 'retail_app_id':841, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Wolf Static Ringback2!', 			'program_id':null, 	'product_id':null, 'app_id':843, 'retail_app_id':847, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_RINGBACK, 		'title':'Wolf Static Ringback3!', 			'program_id':null, 	'product_id':null, 'app_id':846, 'retail_app_id':null, 'thumbnail_url':null, 'modes':[]},
	// Personalized Alerts
	// Static Alerts
	// Wallpapers
	// Videos
	// TODO: Voicemail
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Hellga Voicemail 1!', 				'program_id':null, 	'product_id':null, 'app_id':862, 'retail_app_id':863, 'thumbnail_url':null, 'modes':[]},	
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Hellga Voicemail 2!', 				'program_id':null, 	'product_id':null, 'app_id':868, 'retail_app_id':869, 'thumbnail_url':null, 'modes':[]},	
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Hellga Voicemail 3!', 				'program_id':null, 	'product_id':null, 'app_id':875, 'retail_app_id':877, 'thumbnail_url':null, 'modes':[]},	
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Justice Voicemail 1!',				'program_id':null, 	'product_id':null, 'app_id':793, 'retail_app_id':795, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Justice Voicemail 2!',				'program_id':null, 	'product_id':null, 'app_id':806, 'retail_app_id':807, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Justice Voicemail 2! (Male Only)',	'program_id':null, 	'product_id':null, 'app_id':808, 'retail_app_id':809, 'thumbnail_url':null, 'modes':[]},
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Militia Voicemail 1!', 			'program_id':null, 	'product_id':null, 'app_id':792, 'retail_app_id':794, 'thumbnail_url':null, 'modes':[]},	
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Militia Voicemail 2!', 			'program_id':null, 	'product_id':null, 'app_id':796, 'retail_app_id':797, 'thumbnail_url':null, 'modes':[]},	
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Militia Voicemail 3!', 			'program_id':null, 	'product_id':null, 'app_id':798, 'retail_app_id':799, 'thumbnail_url':null, 'modes':[]},	
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Siren Voicemail 1!', 				'program_id':null, 	'product_id':null, 'app_id':856, 'retail_app_id':857, 'thumbnail_url':null, 'modes':[]},	
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Siren Voicemail 2!', 				'program_id':null, 	'product_id':null, 'app_id':858, 'retail_app_id':859, 'thumbnail_url':null, 'modes':[]},	
//	{'content_type':CONTENT_TYPE_SP_VOICEMAIL, 	'title':'Siren Voicemail 3!', 				'program_id':null, 	'product_id':null, 'app_id':860, 'retail_app_id':861, 'thumbnail_url':null, 'modes':[]},	
	// Promotional Personalized Greeting Phone Call
	{'content_type':CONTENT_TYPE_SP_GREETING, 	'title':'Personalized Call From the Hellga',	'program_id':null,	'product_id':null,'app_id':852,	'retail_app_id':853, 'thumbnail_url':null, 'modes':[GREETING_DELIV_MODE_URL,GREETING_DELIV_MODE_OBC]}
//	{'content_type':CONTENT_TYPE_SP_GREETING, 	'title':'Personalized Call From the Justice',	'program_id':null,	'product_id':null,'app_id':816,	'retail_app_id':817, 'thumbnail_url':null, 'modes':[GREETING_DELIV_MODE_URL,GREETING_DELIV_MODE_OBC]}
//	{'content_type':CONTENT_TYPE_SP_GREETING, 	'title':'Personalized Call From the Siren',		'program_id':null,	'product_id':null,'app_id':855,	'retail_app_id':854, 'thumbnail_url':null, 'modes':[GREETING_DELIV_MODE_URL,GREETING_DELIV_MODE_OBC]}
];

// this data structure is used to populate the list of links that appear in the main menu under 'character'. leave a url blank to make it appear disabled
var CHARACTER_LINKS = [
	{'label':'the American Gladiators',	'url':''}
];

// a list of valid carriers allowed for ringtone/alert/wallpaper/video delivery with vendor specific id's
var RT_WP_MV_DELIVERY_CARRIERS = [
	{'value':'42',					'label':'AT&T'},
	{'value':'72',					'label':'Sprint'},
	{'value':'41',					'label':'T-Mobile®'},
	{'value':'87',					'label':'Verizon Wireless'}
];

// a list of carriers used to populate the sign up section's carrier pulldown menu
var SIGN_UP_CARRIERS = [
	{'value':'att_mobility',		'label':'AT&T Mobility'},
	{'value':'verizon',				'label':'Verizon Wireless'},
	{'value':'sprint_nextel',		'label':'Sprint/Nextel'},
	{'value':'t_mobile',			'label':'T-Mobile®'},
	{'value':'alltel',				'label':'Alltel'},
	{'value':'tracfone_wireless',	'label':'Tracfone Wireless'},
	{'value':'us_cellular',			'label':'US Cellular'},
	{'value':'virgin_mobile',		'label':'Virgin Mobile'},
	{'value':'metropcs',			'label':'MetroPCS'},
	{'value':'cricket',				'label':'Cricket'},
	{'value':'other',				'label':'Other'}
];

// a list of topics to display in the pulldown menu on the "Contact Us" screen.
var CONTACT_US_TOPICS = [
	{'value':'customer_service',	'label':'Customer Service'},
	{'value':'compliment',			'label':'Compliment'},
	{'value':'question',			'label':'Question'},
	{'value':'suggestion',			'label':'Suggestion'},
	{'value':'marriage_proposal',	'label':'Marriage Proposal'},
	{'value':'business_inquiry',	'label':'Business Inquiry'},
	{'value':'other',				'label':'Other'}
];

// terms and conditions for various content offerings
var RT_WP_MV_TERMS = "Available to AT&amp;T, Verizon Wireless, Sprint &amp; T-Mobile&reg; customers. All ringtones, wallpaper, and videos are [PRICE_GLOBAL] each. The one-time charge will appear on your wireless bill or be deducted from your prepaid account. Standard/other charges may apply. Requires a compatible handset and data plan. You must be at least 13 years of age. Minors must have parent's permission. For Full Terms of Use, visit <a href=\"http://www.modtones.com\" target=\"terms\">www.modtones.com</a>. For questions, email <a href=\"mailto:help@modtones.com\">help@modtones.com</a>. Send \"STOP\" to 66399 to opt-out.";
var PROMO_TERMS = "Available to all land line and wireless phones. Promotional phone calls are free of charge*. Phone calls may be sent between 8am and 9pm in the recipient's time zone. A limit of one phone call per day and two phone calls per week to a recipient is imposed. You must be at least 13 years of age. Minors must have parent's permission. See our <a href=\"javascript:void(0);\" onmouseup=\"show_faq_privacy_terms_popup('terms_and_conditions');\">Full Terms &amp; Conditions</a> for more info. For questions, please <a href=\"javascript:void(0);\" onmouseup=\"modal_close_bttn_onmouseup(); contact_us_onmouseup();\">Contact Us</a>.<br /><br />* Regular cellular voice rates may apply for your recipient.";
var PROMO_TERMS_URL = "The unique URL created will never expire. You must be at least 13 years of age. Minors must have parent's permission. See our <a href=\"javascript:void(0);\" onmouseup=\"show_faq_privacy_terms_popup('terms_and_conditions');\">Full Terms &amp; Conditions</a> for more info. For questions, please <a href=\"javascript:void(0);\" onmouseup=\"modal_close_bttn_onmouseup(); contact_us_onmouseup();\">Contact Us</a>.<br />";

// user feedback messages
var RT_WP_MV_INSTRUCTIONS = "You're almost done. Here are the next steps: A text message will be sent to your phone shortly. Follow the instructions in it to get your content. If you don't follow the instructions, American Gladiators will be um, unhappy. Good luck with that. And if your phone isn't supported or you don't download your content, you won't be billed for it.";
var CONTACT_US_THANKS_MSG = "Thanks for taking the time out to fill out our contact form! A special \"filter\" helps us sort through the \"good\" feedback, like when someone says \"we love you guys, you're the greatest\", and the \"bad\" feedback, like anything other than \"we love you guys, you're the greatest\".  If we're not sleeping or slobbering drunk on inexpensive domestic wine, we'll get back to you soon!";
var MSG_GENERIC_OBC_ERROR = "We were unable to send your phone call. The system may be experiencing difficulties. Please try again later.";
var MSG_OPT_OUT_THANKS_MSG = "If you received something from this system, there's like, a 99% chance that it was sent to you by someone who knows you, and a 1% chance it was sent by some jerk who doesn't know you.  As far as what percentage of the 99% of people who know you are jerks, we won't speculate, but since you've opted out, we'll bet at least one jerk knows you.<br /><br />As for us, we're just happy that people can't bother you using our service anymore.";
var MSG_DELIV_URL_SUCCESS = "Your link for a personalized American Gladiators message was created. It will never expire, so copy it from the field below, email it, instant message it, or print it on a T-shirt for all we care. Go on, make another. Better yet, buy something you freeloader!<br /><br />[PICKUP_URL]<br />";
var MSG_DELIV_URL_GENERIC_ERROR = "Something has gone horribly wrong and we were unable to create your link. The system may be experiencing difficulties. Please try again later.";
var MSG_PICKUP_URL_GENERIC_ERROR = "We were unable to locate your audio. Please make sure you copy and pasted the entire audio URL.";

var PROMO_SUCCESS_MSG = "Your personalized phone call from American Gladiators was sent. Delivery is immediate. Go on, send another. Better yet, buy something!";
var PROMO_SOLICIT1 = "Would you like to send a personalized message from American Gladiators to a friend for <b>free</b>*?<br /><br /><span>* Regular cellular voice rates may apply for your recipient.</span>";
var PROMO_SOLICIT2_OBC = "Would you like to send another personalized American Gladiators call to a friend for <b>free</b>*?<br /><br /><span>* Regular cellular voice rates may apply for your recipient.</span>";
var PROMO_SOLICIT2_URL = "Would you like to create another personalized American Gladiators link for <b>free</b>?";

var MSG_AUDIO_PICKUP_MSG = "Someone you know created this personalized American Gladiators message just for you.";
var MSG_AUDIO_PICKUP_SOLICIT = "Would you like to send your own personalized message from American Gladiators to a friend for <b>free</b>?";
var MSG_AUDIO_PICKUP_SOLICIT_OBC = "Would you like to send your own personalized message from American Gladiators to a friend for <b>free</b>*?<br /><br /><span>* Regular cellular voice rates may apply for your recipient.</span>";

var TAB_LABEL_PERSONALIZED = "MAKE YOUR OWN";
var TAB_LABEL_STATIC = "CLASSIC";
var HEADER_LOGO_URL = "";
var HEADER_LOGO_ALT = "American Gladiators";
var SISTER_SITE_URL = "";
var SISTER_SITE_ALT = "";

// create a global reusable animation instance used for hiliting errors
var ANIM_PULSE_ERRORS = (typeof VTAnimation == 'function') ? new VTAnimation(60,1500,0,2,'linear',[],pulse_error_onenterframe) : null;
