// JAVASCRIPT DOCUMENT

// RESIZE WINDOW TO FULL SIZE AND MOVE TO (0,0)

// window.moveTo(0,0)
// window.resizeTo(screen.width,screen.height)

// DATE

var my_date = new Date();

var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

function insert_date() {
    document.write('<span id="date">' + days[my_date.getDay()] + ', ' + months[my_date.getMonth()] + ' ' + my_date.getDate() + ', ' + my_date.getFullYear() + '<\/span>');
}

//    <script type="text/javascript">
//    <!--
//        document.write('Today is ' + months[my_date.getMonth()] + ' ' + my_date.getDate() + ', ' + my_date.getFullYear() + '.');
    // -->
//    </script>

// POPUP WINDOW SETTINGS
function popupWindow(url, description, width, height) {
    swidth = ((screen.availWidth/2)-(width/2));
    sheight = ((screen.availHeight/2)-(height/2));
    newWindow = window.open(url,description,"width="+ width +",height="+ height +",screenY="+ sheight +",screenX="+ swidth +",top=" + sheight + ",left=" + swidth + ",resizeable=no,scrollbars=yes,toolbar=no,status=yes,menubar=no,location=no");
    newWindow.focus();
}

// SHOWCASE WORK
function launchShowcase(file, title, width, height, swf) {
    var showW = width + 74;
    var showH = height + 64;
    swfCheck = swf;
    swidth = ((screen.width/2)-(showW/2));
    sheight = ((screen.height/2)-(showH/2));
    newWindow = window.open('/portfolio/showcase?file='+file+"&width="+width+"&height="+height+"&title="+title+"&swf="+swfCheck,'vid','width='+ showW +',height='+ showH +',screenY='+ sheight +',screenX='+ swidth +',top=' + sheight + ',left=' + swidth + ',resizeable=no,scrollbars=yes,toolbar=no,status=yes,menubar=no,location=no');
    newWindow.focus();
}