// JavaScript Document
    // 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 OnVideoClick(videoId)
    {
        LoadVideo(videoId);
       
    }
    
    function LoadVideo(videoId)
    {
        var videoPlayerContainer = document.getElementById('videoPlayerContainer');
        videoPlayerContainer.innerHTML = '<embed id="videoPlayer" src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=' + videoId + '&type=2&type=video&sr=0&a=1" type="application/x-shockwave-flash" width="389" height="251"></embed>';
        

    }
	
	
	