// Video catalog.
// Format: video_id::Video Title::base_file_name::long_description
// NOTE: excape all single-quotes (') as necessary.
var vidPath = '/Corporate/US/English/flash_viewers/';
var videoInfo = new Array();
videoInfo = ['10606001::Have It All::' + vidPath + 'haveitall_v5::', 
					   '10606002::The Isagenix Compensation Plan::' + vidPath + 'comp_plan_v3::',
					   '10606003::Magic Diet?::REMOVED::This file has been removed. Please see updated links from www.isagenix.com/tours.dhtml',
					   '10606004::Isagenix Founders::' + vidPath + 'founders_v3::',
					   '10606005::Million Dollar Earners::' + vidPath + 'millionaires_v2::',
					   '10606006::Becky Natrajan, M.D.::' + vidPath + 'dr_dr_truth_v2-2::',
					   '10606007::Dr. Tony O\'Donell::' + vidPath + 'tonyodonell::',
					   '10606008::Dr. Dennis Harper::' + vidPath + 'dr_harper_v2-2::',
					   '10606009::Canal 4 Puerto Rico (Spanish)::' + vidPath + 'prnews::',
					   '10606010::Take Control of Your Health::' + vidPath + 'take_control_health3::',
						 '10606011::George Ledbetter - KOLD 13 News::' + vidPath + 'g_ledbetter_v1-2::',
						 '10606012::Cleansing Health Benefits::' + vidPath + 'fox31_cleansing_benefits::Cleansing Health Benefits - Fox31 News Segment, Denver, CO',
						 '10606013::Skin Benefits::' + vidPath + 'fox31_skin_benefits::Skin Benefits - Fox31 News Segment, Denver, CO',
						 '10606014::TV8 Good Morning Vail::' + vidPath + 'tv8_good_morning_vail::TV8 Good Morning Vail Television News Segment - Interviewing Dr. Becky Natrajan',
						 '10606015::Isagenix Athletes Presentation at<br>2006 Celebration::' + vidPath + 'athletes::Isagenix Athletes Presentation at 2006 Celebration<br>with Rick Despain',
						 '10606016::100 pound club Interview at<br>2006 Celebration::' + vidPath + '100_lb_club::100 pound club Interview at 2006 Celebration<br>with Rick Despain',
						 '10606017::Brian Bailey::' + vidPath + 'ath_brian_bailey::Isagenix Athletes Presentation at 2006 Celebration',
						 '10606018::D’Marko Blewett::' + vidPath + 'ath_dmarko_blewett::Isagenix Athletes Presentation at 2006 Celebration',
						 '10606019::Master Fernando Camareno::' + vidPath + 'ath_fernando_camareno::Composite 2006 Celebration, 2005 Celebration',
						 '10606020::George Ledbetter::' + vidPath + 'ath_george_ledbetter::Isagenix Athletes Presentation at 2006 Celebration',
						 '10606021::Michelle Despain Hoeger::' + vidPath + 'ath_michelle_despain::Isagenix Athletes Presentation at 2006 Celebration',
						 '10606022::Hector Maldonado::' + vidPath + 'wl_hector_maldonado::2006 Celebration onstage with 100 lb Club',
						 '10606023::Kim Olson::' + vidPath + 'wl_kim_olson::2006 Celebration onstage with 100 lb Club',
						 '10606024::Larry Fuchs::' + vidPath + 'wl_larry_fuchs::2006 Celebration onstage with 100 lb Club. Recipient of 2006 &quot;Most Inspirational Award&quot;.',
						 '10606025::Health Journal Television::' + vidPath + 'HJTV_small::'
					  ];


// Audio catalog.
// Format: audio_id::Audio Title::base_file_name::long_description
// NOTE: excape all single-quotes (') as necessary.
var audioPath = '/Corporate/US/English/flash_viewers/';
var audioInfo = new Array();
audioInfo = ['10608001::Set Yourself Free::' + audioPath + 'syf_cd::Learn how to set yourself Free. Enjoy health and wealth.'
						];
/*
					   '10607002::TITLE::BASENAME::long_desc',
					   '10607003::TITLE::BASENAME::long_desc'
					   '10607004::TITLE::BASENAME::long_desc',
					   '10607005::TITLE::BASENAME::long_desc',
					   '10607006::TITLE::BASENAME::long_desc',
					   '10607007::TITLE::BASENAME::long_desc',
					   '10607008::TITLE::BASENAME::long_desc',
					   '10607009::TITLE::BASENAME::long_desc'
					  ];
*/



// Get the catalog info based on the ID to look up and which catalog.
// Return an object with the appropriate values set.
// Valid values for the catalog are 'vidInfo' and 'audioInfo'.
function getCatInfo(idLookup, catalog) {
	var objInfo = new Object();
	objInfo.id = '';
	objInfo.title = '';
	objInfo.base = '';
	objInfo.longDesc = '';
	var catLen;
	
	if (catalog == 'videoInfo' || catalog == 'audioInfo') {
		catLen = eval(catalog + '.length');
	} else { // Invalid value passed for catalog.
		return objInfo;
	}
	
	for (var x=0; x<catLen; x++) {
    var parts = new Array();
		parts = eval(catalog + "[x].split('::')");
		
		if (idLookup == parts[0]) {
			objInfo.id = parts[0];
			objInfo.title = parts[1];
			objInfo.base = parts[2];
			objInfo.longDesc = parts[3];
		}
	}
	
	return objInfo;
}


