$(function() {
    $('#slideshow').slideshow({
        timeout: 5500
    });
});

/** A js function to open a new window that is centered on the screen */
function openWindow(mypage,myname,w,h,scroll,resizable){
    //resizable should equal 'resizable' string to turn it on
    //defaults for empty parameters
    scroll = typeof(scroll) != 'undefined' ? scroll : 'yes';
    resizable = typeof(resizable) != 'undefined' ? resizable : 'resizable';

    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+','+resizable;
    win = window.open(mypage,myname,settings,false);
}