
        //jQuery.noConflict();
    
      //var videoArray = new Array('LxGIeNnnaCU','pS4i2oUHtgI','vU8W7TOIaLA','XpAR15kjxWk','uSXNm4VmDII','F8t3PVJeSu0','mSy6EJagZ1I');
      var videoCount = videoArray.length;
      var ytplayer;
      jQuery(document).ready(function(){
          ytplayer = document.getElementById("videoDiv");
          ytcontrol = document.getElementById("videoControls");
          var servername = jQuery("#videoDiv").attr("title");
          var proto = jQuery("#videoDiv").attr("name");
         
          if(proto == '443' || proto == 'https:')
          {
                var protocol = "https://";
          }
          else if(proto == '80' || proto == 'http:')
          {
               var protocol = "http://"; 
          }
          
          host = protocol + servername;
          
          /*
          *     Check the flash version and give output
          */ 
          
          if(!FlashDetect.installed)
          {
             ytplayer.innerHTML = "<img src='"+host + videoImageUrl+"'><br/><span style='font-weight:bold;'>Hello, you either have Flash plugin turned off or an old version of Adobe's Flash Player.<br/><a href='http://www.adobe.com/go/getflashplayer/'>Get the latest Flash player to view this video.</a> </span>";    
             ytcontrol.innerHTML = "";    
          }
          else
          {
            ytplayer.innerHTML = '<object type="application/x-shockwave-flash" data="'+host+'/ovlg-video-testimonials/flvplayer.swf" width="278" height="175" id="VideoPlayback">' + 
                                  '<param name="movie" value="'+ host +'/ovlg-video-testimonials/flvplayer.swf" />' + 
                                  '<param name="allowScriptAcess" value="sameDomain" />' + 
                                  '<param name="quality" value="best" />' + 
                                  '<param name="bgcolor" value="#FFFFFF" />' + 
                                  '<param name="wmode" value="transparent" />' + 
                                  '<param name="allowfullscreen" value="true" />' + 
                                  '<param name="salign" value="TL" />' + 
                                  '<param name="FlashVars" value="&amp;file='+ host + videoArray[0] +'&amp;height=175&amp;image='+ host + videoImageUrl + '&amp;width=278&amp;backcolor=0xFFFFFF&amp;location='+ host +'/ovlg-video-testimonials/flvplayer.swf&amp;showdigits=false&amp;autostart=false" />' + 
                                '</object>';
          }
          
          
                                    });
          

          
      
      /*function updateHTML(elmId, value) 
      {
        document.getElementById(elmId).innerHTML = value;
      }*/ 
      /*function onPlayerError(errorCode) 
      {
        alert("An error occured of type:" + errorCode);
      }*/ 
      /*function onYouTubePlayerReady(playerId) 
      {
        ytplayer = document.getElementById("ytPlayer");
        ytplayer.addEventListener("onError", "onPlayerError");
      } */
      /*function loadPlayer()         
      {
        var videoID = videoArray[0];
        var params = { allowScriptAccess: "always" , WMode: "transparent"};
        var atts = { id: "ytPlayer" };
        swfobject.embedSWF( "/ovlg-video-testimonials/" + videoID + ".FLV", 
                           "videoDiv", "278", "175", "8", null, null, params, atts);
                           
        ytplayer = document.getElementById("ytPlayer");
        alert(ytplayer.data);
        alert("in loadPlayer2");
      } */
      /*function _run() 
      {
        alert("in run 2");
        loadPlayer();
        
      }
      
      google.setOnLoadCallback(_run); */
       
      function loadVideo(choice) 
      {
        
        var selectBox = document.getElementById("current_video").value;
        ytplayer = document.getElementById("videoDiv");
        var servername = jQuery("#videoDiv").attr("title");
        var proto = jQuery("#videoDiv").attr("name");

        if(proto == '443' || proto == 'https:')
          {
                var protocol = "https://";
          }
          else if(proto == '80' || proto == 'http:')
          {
               var protocol = "http://"; 
          }
          
          host = protocol + servername;
        
        switch(choice)
        {
            case 'prev':
                if((selectBox=='0')||(selectBox=='-1'))
                {
                    index = videoCount - 1; 
                }
                else
                {
                    index =  parseInt(selectBox) - 1;
                }
                document.getElementById("current_video").value = index;
            break;
            case 'next':
                if(selectBox == (videoCount - 1) )
                {
                    index = 0; 
                }
                else if(selectBox=='-1')
                {
                    index = 1; 
                }
                else
                {
                    index =  parseInt(selectBox) + 1;
                }
                document.getElementById("current_video").value = index;
            break;
        }
        
        var videoUrl = videoArray[index];
        
        /*
        *     Check the flash version and give output
        */
            if(!FlashDetect.installed)
            {
                 ytplayer.innerHTML = " <span style='font-weight:bold;'>Hello, you either have Flash plugin turned off or an old version of Adobe's Flash Player.<br/><a href='http://www.adobe.com/go/getflashplayer/'>Get the latest Flash player to view this video.</a> </span>";    
            }
            else
            {   ytplayer.innerHTML = '<object type="application/x-shockwave-flash" data="'+ host +'/ovlg-video-testimonials/flvplayer.swf" width="278" height="175" id="VideoPlayback">' + 
                                      '<param name="movie" value="'+ host +'/ovlg-video-testimonials/flvplayer.swf" />' + 
                                      '<param name="allowScriptAcess" value="sameDomain" />' + 
                                      '<param name="quality" value="best" />' + 
                                      '<param name="bgcolor" value="#FFFFFF" />' + 
                                      '<param name="wmode" value="transparent" />' + 
                                      '<param name="allowfullscreen" value="true" />' + 
                                      '<param name="salign" value="TL" />' + 
                                      '<param name="FlashVars" value="&amp;file='+ host + videoUrl + '&amp;height=175&amp;&amp;width=278&amp;backcolor=0xFFFFFF&amp;location='+ host +'/ovlg-video-testimonials/flvplayer.swf&amp;showdigits=false&amp;autostart=true" />' + 
                                    '</object>';       
            
            }
        
        /*if(ytplayer) 
        {
          ytplayer.loadVideoById(videoID);
        } */
      }
      
      
      
  