function resizeChannels(t) { t = document.getElementById("channels"); var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } myh = myHeight-333; if(myh < 1) myh = 1; t.style.height = myh; resizeBanners(); } function resizeBanners() { t = document.getElementById('fbanner'); if(t) { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } var myh = myHeight-530; var myw = myWidth-770-20; if(myh < 1) myh = 1; if(myw < 1) myw = 1; t.style.height = myh; t.style.width = myw; } } function sup(URL) { id = 'sup'; eval("page =" + "window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=821,height=600,left = 107,top = 164');"); page.focus(); } function sup(URL) { id='sup'; eval("page =" + "window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=822,height=600,left = 107,top = 164');"); page.focus(); } function closePlayer() { playerDiv = document.getElementById("player"); playerDiv.style.visibility = "hidden"; vid = parent.document.frames["vid"]; document.getElementById('vid').style.width = "1px"; document.getElementById('vid').style.height = "1px"; document.getElementById('vid').src = "blank.php"; vid.src = "blank.php"; vid.style.visibility = "hidden"; document.getElementById("active").value = 0; } function detach() { var playerDiv; playerDiv = parent.document.getElementById("player"); detached = parent.document.getElementById("detached"); if(detached.value == 0) { detached.value = 1; playerDiv.style.visibility = "hidden"; ifv = parent.document.getElementById("vid"); var URL = ifv.src; ifv.src = "blank.php"; //ifv.innerHTML = ""; day = new Date(); id2 = "v"; try { page2 = window.open(URL, id2, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=353,height=427,left = 10,top = 10'); page2.focus(); } catch(e) { alert("Player could not be detached on your computer"); playerDiv.style.visibility = "visible"; detached.value = 0; } } else { playerDiv.style.visibility = "visible"; detached.value = 0; ifv = parent.document.getElementById("vid"); if(page2) { ifv.src = page2.location.href; page2.close(); } } }