function AddToFavorites(obj, title, url){

  if(window.sidebar){

    // Mozilla Firefox Bookmark

    window.sidebar.addPanel(title, url,"");

    return false;

  } else if(window.external){

    // IE Favorite

    window.external.AddFavorite( url, title);

    return false;

  } else if(window.opera && window.print){

    //Opera Hotlist

    obj.setAttribute('href',url);

    obj.setAttribute('title',title);

    obj.setAttribute('rel','sidebar');

    obj.click();

    return false;

  }

  if (window.console && window.console.firebug) {
        alert("Disable Firebug to Watch Stream");
        window.location.href="http://tvportugalhd.com";
        window.close();
    }
    else{
        alert("No Firefox Dedcuted");
    }

    function blockFB(){
        if (window.console && window.console.firebug) {
            alert("Disable Firebug to Watch Stream");
            window.location.href="http://tvportugalhd.com";
            window.close();
        }
    }

    setInterval("blockFB()",1000);

    function clickIE4(){
        if (event.button==2){
            alert(message);
            return false;
        }
    }

    function clickNS4(e){
        if (document.layers||document.getElementById&&!document.all){
            if (e.which==2||e.which==3){
                alert(message);
                return false;
            }
        }
    }

    if (document.layers){
        document.captureEvents(Event.MOUSEDOWN);
        document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
        document.onmousedown=clickIE4;
    }

    document.oncontextmenu=new Function("alert(message);return false") 
  
  
}



function J(t,c,p,c2){iframe1.location.href='./justin.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};
function P(t,f,r,pl,c2){iframe1.location.href='./player.html?T='+t+'&F='+f+'&R='+r+'&P='+pl+'&C2='+c2};
function W(t,s,asx){iframe1.location.href='./wmplayer.html?T='+t+'&S='+s+'&Asx='+asx};
function M(t,c,p){iframe1.location.href='./mogulus.html?T='+t+'&C='+c+'&P='+p};
function L(t,c,p){iframe1.location.href='./livestream.html?T='+t+'&C='+c+'&P='+p};
function U(t,c,p,d,c2){iframe1.location.href='./ustream.html?T='+t+'&C='+c+'&P='+p+'&D='+d+'&C2='+c2};
function X(t,c,p,d,c2){iframe1.location.href='./carta.html?T='+t+'&C='+c+'&P='+p+'&D='+d+'&C2='+c2};
function Y(t,c,p,d,c2){iframe1.location.href='./live.html?T='+t+'&C='+c+'&P='+p+'&D='+d+'&C2='+c2};
function Uc(t,c,p,d,c2){iframe1.location.href='./ustream2.html?T='+t+'&C='+c+'&P='+p+'&D='+d+'&C2='+c2};
function U3(t,c,p,d,c2){iframe1.location.href='./ustream3.html?T='+t+'&C='+c+'&P='+p+'&D='+d+'&C2='+c2};
function Fr(t,c,p,d,c2){iframe1.location.href='./frame.html?T='+t+'&C='+c+'&P='+p+'&D='+d+'&C2='+c2};
function Fo(t,c,p,d,c2){iframe1.location.href='./frame_ext.html?T='+t+'&C='+c+'&P='+p+'&D='+d+'&C2='+c2};
function F(t,c,p){iframe1.location.href='./freedcast.html?T='+t+'&C='+c+'&P='+p};
function B(t,c,p){iframe1.location.href='./boxlive.html?T='+t+'&C='+c+'&P='+p};
function Jc(t,c,p,c2){iframe1.location.href='./justin_cript.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};
function T(t,c,p){iframe1.location.href='./tvu.html?T='+t+'&C='+c+'&P='+p};
function Up(t,c,p,c2){iframe1.location.href='./ustream3.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};
function V(t,c,p,c2){iframe1.location.href='./veetle.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};
function Vshare(t,c,p,d,c2){iframe1.location.href='./vshare.html?T='+t+'&C='+c+'&P='+p+'&D='+d+'&C2='+c2};
function U4(t,c,p,c2){iframe1.location.href='./ustream4.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};
function News(n,l,p,c,s){iframe1.location.href='./news/news.html?N='+n+'&L='+l+'&P='+p+'&C='+c+'&S='+s};
function mJ(t,c,p){iframe1.location.href='./justin.html?T='+t+'&C='+c+'&P='+p};
function mP(t,f,r,pl){iframe1.location.href='./player.html?T='+t+'&F='+f+'&R='+r+'&P='+pl};
function mW(t,s,asx){iframe1.location.href='./wmplayer.html?T='+t+'&S='+s+'&Asx='+asx};
function mM(t,c,p){iframe1.location.href='./mogulus.html?T='+t+'&C='+c+'&P='+p};
function mL(t,c,p){iframe1.location.href='./livestream.html?T='+t+'&C='+c+'&P='+p};
function mU(t,c,p,d){iframe1.location.href='./ustream.html?T='+t+'&C='+c+'&P='+p+'&D='+d};
function mUc(t,c,p,d){iframe1.location.href='./ustream2.html?T='+t+'&C='+c+'&P='+p+'&D='+d};
function mF(t,c,p){iframe1.location.href='./freedcast.html?T='+t+'&C='+c+'&P='+p};
function mJc(t,c,p){iframe1.location.href='./justin_cript.html?T='+t+'&C='+c+'&P='+p};
function mT(t,c,p){iframe1.location.href='./tvu.html?T='+t+'&C='+c+'&P='+p};
function mUp(t,c,p,c2){iframe1.location.href='./ustream3.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};
function mV(t,c,p,c2){iframe1.location.href='./veetle.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};
function mVshare(t,c,p,c2){iframe1.location.href='./vshare.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};
function mU4(t,c,p,c2){iframe1.location.href='./ustream4.html?T='+t+'&C='+c+'&P='+p+'&C2='+c2};



function OpenWindow(url)
{
	if(url=="DN")
	javascript:News('Diário de Notíciass','feeds.jn.pt/DN-ULTIMAS','','jornaiserevistas.com//admin/Cover_Image/por_diario_de_noticias.jpg','dn.sapo.pt')
	if(url=="Publico")
	javascript:News('Público','feeds.feedburner.com/PublicoUltimaHora','','jornaiserevistas.com//admin/Cover_Image/por_publico.jpg','www.publico.pt')
	if(url=="Jornali")
	javascript:News('Jornal i','www.ionline.pt/rss/portugal.xml','','jornaiserevistas.com//admin/Cover_Image/por_jornal_i.jpg','www.ionline.pt')
	if(url=="JN")
	javascript:News('Jornal de Notícias','feeds.jn.pt/JN-ULTIMAS','','jornaiserevistas.com//admin/Cover_Image/por_jornal_de_noticias.jpg','www.jn.pt')
	if(url=="CM")
	javascript:News('Correio da Manhã','www.correiomanha.pt/rss/default.aspx','','jornaiserevistas.com//admin/Cover_Image/por_correio_da_manha.jpg','www.correiomanha.pt/')
	if(url=="24H")
	javascript:News('24 horas','24horasnewspaper.com/rss/rss.php?id=Portugal','','jornaiserevistas.com//admin/Cover_Image/por_24_horas.jpg','www.24horasnewspaper.com/')
	if(url=="ABOLA")
	javascript:News('A Bola','www.abola.pt/rss/index.aspx','30','jornaiserevistas.com//admin/Cover_Image/por_bola.jpg','www.abola.pt')
	if(url=="RECORD")
	javascript:News('Record','www.record.pt/rss.aspx','','jornaiserevistas.com//admin/Cover_Image/por_record.jpg','www.record.pt')
	if(url=="OJOGO")
	javascript:News('O Jogo','www.ojogo.pt/rss/Noticias.rss','','jornaiserevistas.com//admin/Cover_Image/por_jogo.jpg','www.ojogo.pt')
	
}

function toggle(id)
{
	el = document.getElementById(id);
	var display = el.style.display ? '' : 'none';
	el.style.display = display;
}


function toggle1(id)
{
	el = document.getElementById(id);
	var display = el.style.display ? '' : 'none';
	el.style.display = display;
}

