    // directions:  
    // make sure u have a div called videoPlayerContainer with the embed code for a video player in it.
    // an input called textVideoUrl
    //  an input called textVideoCode
    // and then trigger the video switch by making a call to OnVideoClick('2023434112', 'cheese') with the 
    // corresponding video id and caption to be placed in the header text.
    
    function VideoTrack(videoId)
    {
        OnVideoClickTwo(videoId);    
    }
	
	function OnVideoClick(videoId)
    {
        LoadVideo(videoId);    
    }
    
    function LoadVideo(videoId)
    {
        var myspaceVidContain = document.getElementById('myspaceVid');
		var theLinksContain = document.getElementById('theLinks');
		theLinksContain.innerHTML =  '<a href="http://vids.myspace.com/index.cfm?fuseaction=vids.addToProfileConfirm&videoid=' + videoId + '">Add to Profile</a>';  
        myspaceVidContain.innerHTML = '<embed id="videoPlayer" src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=' + videoId + '&type=video&a=1&sr=0" type="application/x-shockwave-flash" width="406" height="330"></embed>';  

    }
    
    function OnVideoClickTwo(videoId)
    {
        
        LoadVideoTwo(videoId);
       
    }    
    
    function LoadVideoTwo(videoId)
    {
        var myspaceVid = document.getElementById('myspaceVid');
		var theLinks = document.getElementById('theLinks');
		theLinks.innerHTML = '<a href="http://vids.myspace.com/index.cfm?fuseaction=vids.addToProfileConfirm&videoid=' + videoId + '">Add to Profile</a>';   
        myspaceVid.innerHTML = '<embed id="videoPlayer" src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=' + videoId + '&type=video&a=1&sr=0" type="application/x-shockwave-flash" width="406" height="330"></embed>';   
		

    }