// checar si vamos a usar la version con certifica o no
if(usarCertifica){
  //var tvAztecaPlayerURL = 'FlvPlayerTmp_mvsusa_cc_0908111126.swf';
  var tvAztecaPlayerURL = 'http://static.aztecadeportes.com/dep_videos/swf/FlvPlayerTmp_mvsusa_cc_0908121108.swf';
}else{
  //var tvAztecaPlayerURL = 'FlvPlayerTmp_mvsusa_sc_0908111138.swf';
  var tvAztecaPlayerURL = 'http://static.aztecadeportes.com/dep_videos/swf/FlvPlayerTmp_mvsusa_sc_0908111822.swf';
}

var tituloVideo = 'M\u00e9xico vs EUA';

var tvAztecaPlayerWidth = '481';
var tvAztecaPlayerHeight = '333';

function tvAztecaGetSWFTag(width,height,id,align,allowScriptAccess,allowFullScreen,movie,loop,menu,quality,scale,wmode,bgcolor){
    var returnValue = null;
    if(navigator.appName.match(/Microsoft/i) != null){
        returnValue = 
            "<object"+
            " classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"+
            " codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0'"+
            " width='"+width+"'"+
            " height='"+height+"'"+
            " id='"+id+"'"+
            " align='"+align+"'"+
            " >"+
            "<param name='allowScriptAccess' value='"+allowScriptAccess+"' />"+
            "<param name='allowFullScreen' value='"+allowFullScreen+"' />"+
            "<param name='movie' value='"+movie+"' />"+
            "<param name='loop' value='"+loop+"' />"+
            "<param name='menu' value='"+menu+"' />"+
            "<param name='quality' value='"+quality+"' />"+
            "<param name='scale' value='"+scale+"' />"+
            "<param name='wmode' value='"+wmode+"' />"+
            "<param name='bgcolor' value='"+bgcolor+"' />"+
            "</object>";
    }else{
        returnValue = 
            "<embed"+
            " src='"+movie+"'"+
            " loop='"+loop+"'"+
            " menu='"+menu+"'"+
            " quality='"+quality+"'"+
            " scale='"+scale+"'"+
            " wmode='"+wmode+"'"+
            " bgcolor='"+bgcolor+"'"+
            " width='"+width+"'"+
            " height='"+height+"'"+
            " name='"+id+"'"+
            " align='"+align+"'"+
            " allowScriptAccess='"+allowScriptAccess+"'"+
            " allowFullScreen='"+allowFullScreen+"'"+
            " type='application/x-shockwave-flash'"+
            " pluginspage='http://www.adobe.com/go/getflashplayer'"+
            " />";
    }
    return returnValue;
}
function tvAztecaReturnSWFObject(id){
    return (navigator.appName.match(/Microsoft/i) != null)?window[id]:document[id];
}
function tvAztecaPlayStream(){
    tvAztecaReturnSWFObject('flvplayer').notifyPlay(new Array('','Deportes',tituloVideo,'','',tvAztecaPrevio,'','','','','','',''));
}
function playNext(){
    tvAztecaReturnSWFObject('flvplayer').notifyPlay(new Array('','Deportes',tituloVideo,'','',urlStream,'','','','','','',''));
    //playNext = function(){};
}
function tvAztecaTryToPlayStream(){
    try{
        tvAztecaPlayStream();
    }catch(e){
        setTimeout(tvAztecaPlayStream,500);
    }
}
// .....................................................................................................................................................
document.write(
               "<div id='tvAztecaFLVPlayerContainer'>"+
               tvAztecaGetSWFTag(tvAztecaPlayerWidth,tvAztecaPlayerHeight,'flvplayer','middle','always','true',tvAztecaPlayerURL+'?v=&tit='+encodeURIComponent(tituloVideo)+'&cat=Deportes&url='+encodeURIComponent(tvAztecaPrevio)+'&dur=00%3A00&vid=&camp=&rank=&fec=&id_certifica=107148','false','false','high','noscale','opaque','#000000')+
               "</div>"
               );
