<!--This makes the movies a little easier to swap. Also turn off the QT cache to prevent caching bugs.-->

function movieSwap(theValue) {
	
	var content_choice = "";
	
	if (theValue == "0")
	{
		content_choice = '<img src="img/missionstatement.jpg" width="360" height="256" border="0">';
	}
	else if (theValue == "1")
	{
		content_choice = '<a href="mailto:heath@thegrassrootsmovie.com"><img src="img/contact.gif" width="360" height="256" border="0"></a>';
	}
	else
	{
		switch (theValue)
		{
			
			case "2":
				movie_target="http://www.thegrassrootsmovie.com/media/annab@deantv_Large.mov";
				break;
				
			case "3":
				movie_target="http://www.thegrassrootsmovie.com/media/mediamatters@deantv_Large.mov";
				break;
				
			case "4":
				movie_target="http://www.thegrassrootsmovie.com/media/dariusmitchell@deantv_Large.mov";
				break;
				
			case "5":
				movie_target="http://www.thegrassrootsmovie.com/media/nycbrutality@deantv_Large.mov";
				break;

			case "6":
				movie_target="http://www.thegrassrootsmovie.com/media/frankenbrawl@deantv_Large.mov";
				break;
				
			default:
		
		}

		theMovie=document.mainmovie;
		
		if(theMovie!=null)
		{
			//alert(theMovie.GetURL());
			
			theMovie.Stop();
			
			window.scroll(0,0);
			
			theMovie.SetURL(movie_target);
			
			return;
		}
		else
		{
		
			window.scroll(0,0);
		
			content_choice='<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="360" height="256" id="mainmovie"> <PARAM name="src" value="'+movie_target+'"> <EMBED HEIGHT=256 WIDTH=360 SRC="'+movie_target+'" TYPE="video/quicktime" PLUGINSPAGE="www.apple.com/quicktime/download" CACHE="false" EnableJavaScript="true" LOOPING="false" NAME="mainmovie" /> </OBJECT>';
		}
	}
	
	document.getElementById("movie").innerHTML = content_choice;

};

test='<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="360" HEIGHT="256" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"><PARAM name="SRC" VALUE="http://www.thegrassrootsmovie.com/media/frankenbrawl@deantv_Large.mov"><PARAM name="AUTOPLAY" VALUE="true"><PARAM name="CONTROLLER" VALUE="true"><EMBED SRC="http://www.thegrassrootsmovie.com/media/frankenbrawl@deantv_Large.mov" WIDTH="360" HEIGHT="256" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED></OBJECT>'