
function openTvPlayer(szQs) {
        var szUrl = new String("http://multimedia.terra.com/ot_frameset.asp");
        if (szQs != "") {
                szUrl += szQs;
        }
        window.open(szUrl, "entplayer","height=615,width=800,toolbar=0,directories=0, location=0,status=0,scrollbars=1,resize=1,menubar=0,copyhistory=1");

}

function mm(url,pref) {
        options = "scrollbars=no,height=470,width=700";
        if (pref == null) pref = 0;
        newWindow = window.open("http://www.terra.com/multimedia/mm_choice3.html?video="+url+"&pref="+pref,'mmedia',options);
}

function mm3(url,pref) {
    options = "scrollbars=no,height=470,width=700";
    if (pref == null) pref = 0;
    newWindow = window.open("http://www.terra.com/multimedia/mm_choice3.html?video="+url+"&pref="+pref,'mmedia',options);
}

function openaudio(url,pref) {
        options = "scrollbars=no,height=470,width=475";
        if (pref == null) pref = 0;
        newWindow = window.open("http://www.terra.com/deportes/audio/chama_elija.html?audio="+url+"&pref="+pref,'audio',options);
}

function open_galeria(id) { //v2.0
options = "scrollbars=no,height=550,width=500";
  window.open("http://www.terra.com/deportes/galeria/frameset.cfm?galeria="+id,'galeria',options);
}


ordval=Math.floor (Math.random()*1000000);

function GetDomain () {
var url = ""+window.location+"";
if (url.indexOf("terra.com.pr",0) != -1)
        pcountry = "pr";
else
        pcountry = "us";
}
GetDomain();

ppubli = pcountry + ".terra.deportes/home";
ppublicidad = pcountry + ".terra.deportes/home";
pextrapubli = ";niv=0;ga=us_depo";

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function audio(audiofile) {
	options = "scrollbars=no,height=200,width=285";
	newWindow = window.open("http://www.terra.com/multimedia/audio/audio.html?audio="+audiofile,'audio',options);
}

function bbc(radio) {
        window.open("http://php.terra.com/radio/bbc/bbc.php?r_channel="+radio,"terradiobbc","width=626,height=440,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no");
}

function bbcradio(radio) {
        window.open("http://php.terra.com/radio/bbcradio/bbc.html?af="+radio,"bbcradio","width=626,height=440,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no");
}

