function getElementWithId(id)
{
	var obj;
	
	if(document.getElementById)
	{
		obj = document.getElementById(id);
	}
	else 
		if(document.all)
		{
			obj = document.all[id];
		}
	
	return obj;
}

function showBaraka()
{	
	getElementWithId("taiChiAnchor").style.color = "";			
	getElementWithId("kundaliniYogaAnchor").style.color = "";
	getElementWithId("buddhaBarAnchor").style.color = "";
	getElementWithId("salvadorDaliAnchor").style.color = "";
	getElementWithId("andyWarholAnchor").style.color = "";
	getElementWithId("barakaAnchor").style.color = "#9EC723";
	getElementWithId("aspartameAnchor").style.color = "";
	
	//reset the flashDiv content
	getElementWithId("flashContentDiv").innerHTML = "";	
	
	var stream = ""+
"<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width='360' height='270' codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab'>"+
"  <param name='custommode' value='none' />"+
"  <param name='previewImage' value='divxlogo.gif' />"+
"  <param name='autoPlay' value='true' />"+
"  <param name='src' value='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Baraka.divx' />"+
"<embed type='video/divx' src='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Baraka.divx' custommode='none' width='360' height='270' autoPlay='true'  divxlogo.gif'  pluginspage='http://go.divx.com/plugin/download/'>"+
"</embed>"+
"</object>";

	getElementWithId("mediaPlayerDiv").innerHTML = "<div align='center'><a href='../'>Home</a></div>"+stream;	

	getElementWithId("textDiv").style.display = "none";	
	getElementWithId("mediaPlayerDiv").style.display = "block";	
	getElementWithId("flashDiv").style.display = "none";	
}

function showBuddhaBar()
{	
	getElementWithId("taiChiAnchor").style.color = "";			
	getElementWithId("kundaliniYogaAnchor").style.color = "";
	getElementWithId("buddhaBarAnchor").style.color = "#9EC723";
	getElementWithId("salvadorDaliAnchor").style.color = "";
	getElementWithId("andyWarholAnchor").style.color = "";
	getElementWithId("barakaAnchor").style.color = "";
	getElementWithId("aspartameAnchor").style.color = "";
	
	//reset the flashDiv content
	getElementWithId("flashContentDiv").innerHTML = "";	
	
	var stream = ""+
"<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width='360' height='270' codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab'>"+
"  <param name='custommode' value='none' />"+
"  <param name='previewImage' value='divxlogo.gif' />"+
"  <param name='autoPlay' value='true' />"+
"  <param name='src' value='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Buddha Bar - Nature.divx' />"+
"<embed type='video/divx' src='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Buddha Bar - Nature.divx' custommode='none' width='360' height='270' autoPlay='true'  divxlogo.gif'  pluginspage='http://go.divx.com/plugin/download/'>"+
"</embed>"+
"</object>";

	getElementWithId("mediaPlayerDiv").innerHTML = "<div align='center'><a href='../'>Home</a></div>"+stream;	

	getElementWithId("textDiv").style.display = "none";	
	getElementWithId("mediaPlayerDiv").style.display = "block";	
	getElementWithId("flashDiv").style.display = "none";	
}

function showTaiChi()
{	
	getElementWithId("taiChiAnchor").style.color = "#9EC723";		
	getElementWithId("kundaliniYogaAnchor").style.color = "";
	getElementWithId("buddhaBarAnchor").style.color = "";
	getElementWithId("salvadorDaliAnchor").style.color = "";
	getElementWithId("andyWarholAnchor").style.color = "";
	getElementWithId("barakaAnchor").style.color = "";
	getElementWithId("aspartameAnchor").style.color = "";
	
	//reset the flashDiv content
	getElementWithId("flashContentDiv").innerHTML = "";	
	
	var stream = ""+
"<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width='360' height='270' codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab'>"+
"  <param name='custommode' value='none' />"+
"  <param name='previewImage' value='divxlogo.gif' />"+
"  <param name='autoPlay' value='true' />"+
"  <param name='src' value='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Tai Chi.divx' />"+
"<embed type='video/divx' src='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Tai Chi.divx' custommode='none' width='360' height='270' autoPlay='true'  divxlogo.gif'  pluginspage='http://go.divx.com/plugin/download/'>"+
"</embed>"+
"</object>";

	getElementWithId("mediaPlayerDiv").innerHTML = "<div align='center'><a href='../'>Home</a></div>"+stream;	

	getElementWithId("textDiv").style.display = "none";	
	getElementWithId("mediaPlayerDiv").style.display = "block";	
	getElementWithId("flashDiv").style.display = "none";	
}

function showKundaliniYoga()
{	
	getElementWithId("taiChiAnchor").style.color = "";				
	getElementWithId("kundaliniYogaAnchor").style.color = "#9EC723";
	getElementWithId("buddhaBarAnchor").style.color = "";
	getElementWithId("salvadorDaliAnchor").style.color = "";
	getElementWithId("andyWarholAnchor").style.color = "";
	getElementWithId("barakaAnchor").style.color = "";
	getElementWithId("aspartameAnchor").style.color = "";
	
	//reset the flashDiv content
	getElementWithId("flashContentDiv").innerHTML = "";	
	
	var stream = ""+
"<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width='360' height='270' codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab'>"+
"  <param name='custommode' value='none' />"+
"  <param name='previewImage' value='divxlogo.gif' />"+
"  <param name='autoPlay' value='true' />"+
"  <param name='src' value='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Kundalini Yoga.avi' />"+
"<embed type='video/divx' src='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Kundalini Yoga.avi' custommode='none' width='360' height='270' autoPlay='true'  divxlogo.gif'  pluginspage='http://go.divx.com/plugin/download/'>"+
"</embed>"+
"</object>";

	getElementWithId("mediaPlayerDiv").innerHTML = "<div align='center'><a href='../'>Home</a></div>"+stream;	

	getElementWithId("textDiv").style.display = "none";	
	getElementWithId("mediaPlayerDiv").style.display = "block";	
	getElementWithId("flashDiv").style.display = "none";	
}

function showSalvadorDali()
{	
	getElementWithId("taiChiAnchor").style.color = "";				
	getElementWithId("kundaliniYogaAnchor").style.color = "";
	getElementWithId("buddhaBarAnchor").style.color = "";
	getElementWithId("salvadorDaliAnchor").style.color = "#9EC723";
	getElementWithId("andyWarholAnchor").style.color = "";
	getElementWithId("barakaAnchor").style.color = "";
	getElementWithId("aspartameAnchor").style.color = "";
	
	//reset the flashDiv content
	getElementWithId("flashContentDiv").innerHTML = "";	
	
	var stream = ""+
"<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width='360' height='270' codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab'>"+
"  <param name='custommode' value='none' />"+
"  <param name='previewImage' value='divxlogo.gif' />"+
"  <param name='autoPlay' value='true' />"+
"  <param name='src' value='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Salvador Dali - Journey of a Man.divx' />"+
"<embed type='video/divx' src='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Salvador Dali - Journey of a Man.divx' custommode='none' width='360' height='270' autoPlay='true'  divxlogo.gif'  pluginspage='http://go.divx.com/plugin/download/'>"+
"</embed>"+
"</object>";

	getElementWithId("mediaPlayerDiv").innerHTML = "<div align='center'><a href='../'>Home</a></div>"+stream;	

	getElementWithId("textDiv").style.display = "none";	
	getElementWithId("mediaPlayerDiv").style.display = "block";	
	getElementWithId("flashDiv").style.display = "none";	
}

function showAndyWarhol()
{	
	getElementWithId("taiChiAnchor").style.color = "";				
	getElementWithId("kundaliniYogaAnchor").style.color = "";
	getElementWithId("buddhaBarAnchor").style.color = "";
	getElementWithId("salvadorDaliAnchor").style.color = "";
	getElementWithId("andyWarholAnchor").style.color = "#9EC723";
	getElementWithId("barakaAnchor").style.color = "";
	getElementWithId("aspartameAnchor").style.color = "";
	
	//reset the flashDiv content
	getElementWithId("flashContentDiv").innerHTML = "";	
	
	var stream = ""+
"<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width='360' height='270' codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab'>"+
"  <param name='custommode' value='none' />"+
"  <param name='previewImage' value='divxlogo.gif' />"+
"  <param name='autoPlay' value='true' />"+
"  <param name='src' value='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Andy Warhol - Cinema.divx' />"+
"<embed type='video/divx' src='http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Andy Warhol - Cinema.divx' custommode='none' width='360' height='270' autoPlay='true'  divxlogo.gif'  pluginspage='http://go.divx.com/plugin/download/'>"+
"</embed>"+
"</object>";

	getElementWithId("mediaPlayerDiv").innerHTML = "<div align='center'><a href='../'>Home</a></div>"+stream;	

	getElementWithId("textDiv").style.display = "none";	
	getElementWithId("mediaPlayerDiv").style.display = "block";	
	getElementWithId("flashDiv").style.display = "none";	
}

function showAspartame()
{		
	getElementWithId("taiChiAnchor").style.color = "";				
	getElementWithId("kundaliniYogaAnchor").style.color = "";
	getElementWithId("buddhaBarAnchor").style.color = "";
	getElementWithId("salvadorDaliAnchor").style.color = "";
	getElementWithId("andyWarholAnchor").style.color = "";
	getElementWithId("barakaAnchor").style.color = "";
	getElementWithId("aspartameAnchor").style.color = "#9EC723";
	
	//reset the flashDiv content
	getElementWithId("flashContentDiv").innerHTML = "";	

	//create the player and insert it into the page
	var s1 = new SWFObject('mediaplayer/player.swf','ply','360','270','9','#9EC723');
	s1.addParam('allowfullscreen','true');
	s1.addParam('allowscriptaccess','always');
	s1.addParam('flashvars','file=http://www.rabihdagher.com/library/shares/library/Video/Documentaries/Sweet Misery, A Poisoned World.flv&autostart=true&backcolor=#9EC723');
	s1.write('flashContentDiv');

	getElementWithId("textDiv").style.display = "none";	
	getElementWithId("mediaPlayerDiv").style.display = "none";	
	getElementWithId("flashDiv").style.display = "block";
}
