// Open popup window and center used for audio.php pics.php and video.php
var win= null;
function NewWindow(mypage,myname,w,h,scroll){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars='+scroll+',';
settings +='resizable=yes';
win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

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


// Open and Chat window, usteam window, or Fullscreen and center for video.php and webcam.html

function sonadorChat()
{
    window.open('chat.php','chatroom','width=550,height=580,resizable=yes');
}

function ustreamPage()
{
    window.open('http://www.ustream.tv/channel/sonador','ustream','width=,height=,resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,copyhistory=yes');
}

function Fullscreen()
{
    window.open('http://ustream.tv/b4x7vUZyHFvUuQURcfJjyg.usc','Fullscreen','fullWindow,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no');
    window.moveTo(0, 0);
    window.resizeTo(screen.width, screen.height);
}
