<!--videomodcontent-->
    // Use a variable to reference the embedded SWF file.
    var flashVideoPlayer;
    
    /* When the HTML page loads (through the onLoad event of the <body> tag), it calls the initialize() function. */
    function initialize() {
        /* Check whether the browser is IE. If so, flashVideoPlayer is
window.videoPlayer. Otherwise, it's document.videoPlayer. The
videoPlayer is the ID assigned to the <object> and <embed> tags. */
        var isIE = navigator.appName.indexOf("Microsoft") != -1;
        flashVideoPlayer = (isIE) ? window['videoPlayer'] : document['videoPlayer'];
<!--Focus on label ie7-->	
	if(document.all && navigator.appVersion.indexOf("MSIE")>-1 && navigator.appVersion.indexOf("Windows")>-1)
	{
		var a = document.getElementsByTagName("label");
    	for(var i=0,j=a.length;i<j;i++){
		  if(a[i].hasChildNodes && a[i].childNodes.item(0).tagName == "IMG")
		  {
			a[i].childNodes.item(0).forid = a[i].htmlFor;
			a[i].childNodes.item(0).onclick = function()
			{
			  var e = document.getElementById(this.forid);
			  switch(e.type)
			  {
				case "radio": e.click(); break;
				case "checkbox": e.click(); break;
				case "button": e.click(); break;
				case "text": case "password": case "textarea": e.focus(); break;
			  }
			}
		  }
	}
<!--End Focus on label ie7-->
    }
    }

    /* When the user clicks the play button in the form, update the videoStatus text area, and call the playVideo() function within the SWF file, passing it the URL of the FLV file. */
    function callFlashPlayVideo() {
        var comboBox = document.forms['videoForm'].videos;
        var video = comboBox.options[comboBox.selectedIndex].value;
        updateStatus("____" + video + "____");
        flashVideoPlayer.playVideo("http://www.golfe-saint-tropez-information.com/video/player/sequence/" + video);
    }

    // Call the pauseResume() function within the SWF file.
    function callFlashPlayPauseVideo() {
        flashVideoPlayer.pauseResume();
    }
	
	// Call the pauseMute() function within the SWF file.
    function callFlashMuteVideo() {
        flashVideoPlayer.pauseMute();
    }

    /* The updateStatus() function is called from the SWF file from the onStatus() method of the NetStream object. */
    function updateStatus(message) {
        document.forms['videoForm'].videoStatus.value += message + "\n";
    }

<!--End videomodcontent-->