﻿
    var MM_contentVersion = 6;
    var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
    if (plugin) {
        var words = navigator.plugins["Shockwave Flash"].description.split(" ");
        for (var i = 0; i < words.length; ++i) {
            if (isNaN(parseInt(words[i])))
                continue;
            var MM_PluginVersion = words[i];
        }
        var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
    }
    else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0
   && (navigator.appVersion.indexOf("Win") != -1)) {
        document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
        document.write('on error resume next \n');
        document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
        document.write('</SCR' + 'IPT\> \n');
    }
   /* var d =  document.createElement("VideoContent");
    
    if (MM_FlashCanPlay) {
        d.innerHTML = '<object width="235" height="195"><param name="movie" value="http://www.youtube.com/v/cUr7DikJ4LU&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/cUr7DikJ4LU&hl=en&fs=1" WMODE="transparent" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="235" height="195"></embed></object>';
    } else {
        d.innerHTML = '<span style="color:Red">To watch this video, <a href="http://www.adobe.com/go/getflash/" target=_blank>download</a> and install the latest version of <a href="http://www.adobe.com/go/getflash/" target=_blank>Flash</a> on your computer.</span><br><img src="img/home/video.png" />';
    }
    
    document.myVideo.appendChild(d);*/


function playFlash(playAnyways)
{
    if(!document.getElementById('divCover') || playAnyways)
    {
        document.getElementById("whiteSpace").style.display = 'none';
        if (MM_FlashCanPlay) {
            document.getElementById('VideoContent').innerHTML = '<span style="font-size:11px; color:#0054A4; font-weight:bold;">Negociacion de Deuda Versus Negociacion....</span><object width="235" height="195"><param name="movie" value="http://www.youtube.com/v/DjNm7XcK7Ek&showinfo=0&rel=0&hl=en_US&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/DjNm7XcK7Ek&showinfo=0&rel=0&hl=en_US&fs=1" WMODE="transparent" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="235" height="195"></embed></object>';
            } else {
                document.getElementById('VideoContent').innerHTML = '<span style="color:Red">To watch this video, <a href="http://www.adobe.com/go/getflash/" target=_blank>download</a> and install the latest version of <a href="http://www.adobe.com/go/getflash/" target=_blank>Flash</a> on your computer.</span><br><img src="img/home/video.png" />';
            }
   }
}

function videoHome(url, title, w, h) {
    document.getElementById('VideoContent').innerHTML = '<span style="font-size:11px; color:#0054A4; font-weight:bold;">' + title + '</span><object width="' + w + '" height="' + h + '" id="movietarget"><param name="movie" value="' + url + '"/><param name="allowFullScreen" value="true"/><param name="allowscriptaccess" value="always"/><embed src="' + url + '" id="moviesrc"  type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + w + '" height="' + h + '"></embed></object>';
}


function video(url, title, w, h) {
    document.getElementById('video').innerHTML = '<h2>' + title + '</h2><object width="' + w + '" height="' + h + '" id="movietarget"><param name="movie" value="' + url + '"/><param name="allowFullScreen" value="true"/><param name="allowscriptaccess" value="always"/><embed src="' + url + '" id="moviesrc"  type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + w + '" height="' + h + '"></embed></object>';
}

