function load_video(num, service, cc)
{
	var videos = 
	[
		["-- Introduction: An Explanation --", "Introduction to Treasure Inside <br />Life: I overlook my greatest treasure!", "27084734","http://www.youtube.com/v/ZeyuNh_Dcyw?fs=1&rel=0&showinfo=0&color1=0x3a3a3a&color2=0x999999"],
		["Discovery #1 ... Plain Sight","When my heart is open, I can see the magic that is here. <br />Right here. Obvious. In front of me.","4684691","http://www.youtube.com/v/Ejfagz7xDLQ?fs=1&rel=0&showinfo=0&color1=0x3a3a3a&color2=0x999999"],
		["Discovery #2 ... My Busy Life","I live a very busy life, but am I too busy <br />to see the magic that is right here?","18393830","http://www.youtube.com/v/H4_nM9FmAAE?fs=1&rel=0&showinfo=0&color1=0x3a3a3a&color2=0x999999"],
		["Discovery #3 ... My Other Home","I have two homes: one is my house, the other is inside of me.<br />There is something to discover.", "5760909", "http://www.youtube.com/v/CU8N0kWzDBg?fs=1&rel=0&showinfo=0&color1=0x3a3a3a&color2=0x999999"],
		["Discovery #4 ... 2 Directions","I can look in two totally different directions. One direction <br />you can also see, and the other is inside of myself.", "6182434", "http://www.youtube.com/v/ynQOwECtaak?fs=1&rel=0&showinfo=0&color1=0x3a3a3a&color2=0x999999"],
		["Discovery #5 ... A Dubious Metaphor","A profound metaphor ... but maybe it's not quite appropriate??", "18395094", "http://www.youtube.com/v/QoNWO4aj4kE?fs=1&rel=0&showinfo=0&color1=0x3a3a3a&color2=0x999999"],
		["Discovery #6 ... The Bellfield Lunar Anomaly","I learned a way to feel the flow of life up close. Instead of an empty vacuum, life itself becomes a miraculous dance.", "7773996", "http://www.youtube.com/v/Pa7tLrERgGM?fs=1&rel=0&showinfo=0&color1=0x3a3a3a&color2=0x999999"],
		["Discovery #7 ... My Radio Store","Talk, sounds, lots to hear -- but I am learning that music also comes from the other direction. The song of life.", "10377845", "http://www.youtube.com/v/x1O5PY4EZs4?fs=1&rel=0&showinfo=0&color1=0x3a3a3a&color2=0x999999"],
		["Discovery #8 ... Not Noticed But Obvious","I live my days playing the game of My Life ... and I find that I stand <br />on a layer ... the life that allows me to play.", "12301613", "http://www.youtube.com/v/JjsO3qpv73Q?hl=en_US&showinfo=0&rel=0&fs=1"],
		["Discovery #9 ... That Tiny Layer","When I don't feel the life in me, it's like I don't see my own feet!", "18395206", "http://www.youtube.com/v/WtQvZYE9Row?hl=en_US&showinfo=0&rel=0&fs=1"],
		["Discovery #10 ... The Bucket","When I hold the most basic, then I behold the most beautiful.", "20109283", "http://www.youtube.com/v/kjz8qEs0T0U?hl=en_US&fs=1&showinfo=0&rel=0"],
		["Discovery #11... Tsunami Thoughts","Hell on earth can happen, but that source is here <br />whenever I turn to it.", "25419133", "http://www.youtube.com/v/C3JcDPDO_2M?hl=en_US&fs=1&showinfo=0&rel=0"],
		["Discovery #12 ... No Thanks, Santa!","... whether you bring me gifts <br />or just leave coal.", "33486832", "http://www.youtube.com/v/UNVbcT6sJLI?hl=en_US&fs=1&showinfo=0&rel=0"],
		["Discovery #13 ... Treasure!","... Dig, dig, dig ...<br />There's gold in them thar hills!", "31799574", ""],
		["Discovery #14 ... The Story of Home","The answer lies in everyone feeling inside life itself.<br />There's something to learn!", "36608594", "http://www.youtube.com/v/XLl0NvubPdE?hl=en_US&fs=1&showinfo=0&rel=0"],
	]; 
	
	document.getElementById('title').innerHTML = videos[num][0];
	document.getElementById('description').innerHTML = videos[num][1];
	var loader="";
	
	if(service == "vimeo")
	{
		loader = "<iframe src=\"http://player.vimeo.com/video/"+videos[num][2]+"?title=0&amp;byline=0&amp;portrait=0\" width=\"560\" height=\"320\" frameborder=\"0\"></iframe>";
	}
	else if(service == "youtube")
	{
		loader = "<object width=\"560\" height=\"340\"><param name=\"movie\" value=\""+videos[num][3];
		if (typeof cc == "undefined")
		{
			loader += "&cc_load_policy=0\"></param>"
		}
		else
		{
			loader += "&hl="+cc+"&cc_load_policy=1\"></param>";
			loader += "<param name=\"cc_load_policy\" value=\"1\"></param>";
		}
		loader +="<param name=\"allowFullScreen\" value=\"true\"></param>";
		loader +="<param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\""+videos[num][3];
		if (typeof cc == "undefined")
		{
			loader += "&cc_load_policy=0"
		}
		else
		{
			loader += "&hl="+cc+"&cc_load_policy=1";
		}		
		loader +="\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"560\" height=\"340\"></embed></object>";
	}
	
	document.getElementById('video').innerHTML = loader;
	if(typeof(document.getElementById('youtube')) != "undefined" && document.getElementById('youtube') != null)
	{
		document.getElementById('youtube').onclick = function() { load_video(num, 'youtube') };
	}
	if(typeof(document.getElementById('cc-english')) != "undefined" && document.getElementById('cc-english') != null)
	{
		document.getElementById('cc-english').onclick = function() { load_video(num, 'youtube', 'en_US') };
	}
	var i;
	for(i=0; i<videos.length; i++)
	{
		document.getElementById('video-link-'+i).setAttribute("class", "inactive-video"); 
		document.getElementById('video-link-'+i).setAttribute("className", "inactive-video"); 		
	}
	
	if(typeof(document.getElementById('video-link-'+num)) != "undefined" && document.getElementById('video-link-'+num) != null)
	{
		document.getElementById('video-link-'+num).setAttribute("class", "active-video"); 
		document.getElementById('video-link-'+num).setAttribute("className", "active-video"); 
	}
	return false;
}

window.onload = function() 
{
	load_video(0, 'vimeo');
}

