
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 disableSelection(target)
	{
        if (typeof target.onselectstart!="undefined") //IE route
            target.onselectstart=function(){return false}
        else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
            target.style.MozUserSelect="none"
        else
            target.onmousedown=function(){return false}
        target.style.cursor = "default"
    }
    disableSelection(document.body)

    var message="Function Disabled!";
*/
    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 Adbrite()
{
document.write(String.fromCharCode(60,83,67,82,73,80,84));
document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1244357&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));
}



function Chat()
{

document.write('<div id="cboxdiv" style="text-align: center; line-height: 0"><div><iframe frameborder="0" width="187" height="573" src="http://www7.cbox.ws/box/?boxid=134864&amp;boxtag=jr1s3f&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#EAB412 1px solid;" id="cboxmain"></iframe></div><div><iframe frameborder="0" width="187" height="107" src="http://www7.cbox.ws/box/?boxid=134864&amp;boxtag=jr1s3f&amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#EAB412 1px solid;border-top:0px" id="cboxform"></iframe></div></div>');

//document.write('<div id="cboxdiv" style="text-align: center; line-height: 0"><iframe frameborder="0" width="187" height="573" src="http://www7.cbox.ws/box/?boxid=134864&amp;boxtag=jr1s3f&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#EAB412 1px solid;" id="cboxmain"></iframe><iframe frameborder="0" width="187" height="107" src="http://www7.cbox.ws/box/?boxid=134864&amp;boxtag=jr1s3f&amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#EAB412 1px solid;border-top:0px" id="cboxform"></iframe></div>');
//document.write('<object width="190" height="700" id="obj_1249862257528"><param name="movie" value="http://tvportugalsitevu.chatango.com/group"/><param name="wmode" value="transparent"/><param name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param name="flashvars" value="cid=1249862257528&a=FDE614&b=100&c=333333&d=333333&f=64&g=333333&j=333333&k=666666&l=FDE614&m=FFFFFF&n=333333&o=88&s=1&t=0&v=0"/><embed id="emb_1249862257528" src="http://tvportugalsitevu.chatango.com/group" width="190" height="700" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" allowFullScreen="true" flashvars="cid=1249862257528&a=FDE614&b=100&c=333333&d=333333&f=64&g=333333&j=333333&k=666666&l=FDE614&m=FFFFFF&n=333333&o=88&s=1&t=0&v=0"></embed></object>')
}


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


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