
function openvideo(stream,logo) {
	video = window.open('stream.php?stream='+stream+'&logo='+logo,'finestra','scrollbars=no,resizable=no,width=370,height=292,status=no,location=no,toolbar=no'); video.focus();	
};

var tabs = {
    activeclass: 'activetab',
    deactiveclass: 'deactivetab',
    struct: new Array(),
    add: function(name, elementi, pulsanti) {
        this.struct[name] = new Array();
        this.struct[name]['buttons'] = new Array();
        this.struct[name]['elems'] = new Array();
        var i;
        if (typeof(elementi)=='object'&&(elementi instanceof Array)){
            for (i=0; i<elementi.length; i++){
                this.struct[name]['elems'][i]=document.getElementById(elementi[i]);
            }
        }
        if (typeof(pulsanti)=='object'&&(pulsanti instanceof Array)){
            for (i=0; i<pulsanti.length; i++){
                this.struct[name]['buttons'][i]=document.getElementById(pulsanti[i]); 
            }
        }
    },
    selector: function(name, divelem, buttonsel) {
        var i;
        for (i=0; i<this.struct[name]['buttons'].length; i++){
            this.struct[name]['buttons'][i].className = this.deactiveclass;
        }        
        buttonsel.className = this.activeclass;
        for (i=0; i<this.struct[name]['elems'].length; i++){
            this.struct[name]['elems'][i].style.display = 'none';
            this.struct[name]['elems'][i].style.visibility = 'hidden';
        }
        document.getElementById(divelem).style.visibility = 'visible';
        document.getElementById(divelem).style.display = 'block';
    }
};