function openPeople(){
var sw= screen.availWidth/2;
var sh = screen.availHeight/2;
//these numbers are based on the size of the window opening.
//wh is the height
//ww is the width
var wh = 280/2;
var ww = 340/2;
xpos=  sw - ww;
ypos = sh - wh;
var features = "height=300,width=380,left=" + xpos + ",top=" + ypos;
new_window = window.open('../_mov/mov_people.html', '', features);
}
function openPerformance(){
var sw= screen.availWidth/2;
var sh = screen.availHeight/2;
//these numbers are based on the size of the window opening.
//wh is the height
//ww is the width
var wh = 280/2;
var ww = 450/2;
xpos=  sw - ww;
ypos = sh - wh;
var features = "height=300,width=450,left=" + xpos + ",top=" + ypos;
new_window = window.open('../_mov/mov_performance.html', '', features);
}
function openSchedule(){
var sw= screen.availWidth/2;
var sh = screen.availHeight/2;
//these numbers are based on the size of the window opening.
//wh is the height
//ww is the width
var wh = 480/2;
var ww = 720/2;
xpos=  sw - ww;
ypos = sh - wh;
var features = "height=480,width=720,left=" + xpos + ",top=" + ypos;
new_window = window.open('http://www.sbduc.com/Schedule.html', '', features);
}
function openVideo(){
var sw= screen.availWidth/2;
var sh = screen.availHeight/2;
//these numbers are based on the size of the window opening.
//wh is the height
//ww is the width
var wh = 358/2;
var ww = 593/2;
xpos=  sw - ww;
ypos = sh - wh;
var features = "height=358,width=593,left=" + xpos + ",top=" + ypos;
new_window = window.open('loadbike.html', '', features);
}
function openInCenter(url)
{
var sw= screen.availWidth/2;
var sh = screen.availHeight/2;
//these numbers are based on the size of the window opening.
//wh is the height
//ww is the width
var wh = 270/2;
var ww = 322/2;
xpos=  sw - ww;
ypos = sh - wh;
newwindow = window.open(url,"popup","height=270,width=322,top="+ypos+",left="+xpos+",screenX="+xpos+",screenY="+ypos+",directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
newwindow.focus();
}
function openGallery(url)
{
var sw= screen.availWidth/2;
var sh = screen.availHeight/2;
//these numbers are based on the size of the window opening.
//wh is the height
//ww is the width
var wh = 473/2;
var ww = 770/2;
xpos=  sw - ww;
ypos = sh - wh;
newwindow = window.open(url,"popup","height=473,width=770,top="+ypos+",left="+xpos+",screenX="+xpos+",screenY="+ypos+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no");
newwindow.focus();
}
