// JavaScript Document

function go_pagetop () {
    scrollTo(0, 0);
    return false;
}

function open_material (href) {
    var new_window = window.open(href, 'material', 'scrollbars=yes,resizable=yes,width=500,height=500');
    new_window.focus();
    return false;
}

function open_movie (href) {
    var new_window = window.open(href, 'movie', 'scrollbars=yes,resizable=yes,width=500,height=400');
    new_window.focus();
    return false;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,popupwidth,popupheight) { //v2.0
  if (navigator.userAgent.indexOf('Safari') >= 0) {
    window.open(theURL,winName,'width=' + (popupwidth + 1) + ',height=' + (popupheight + 1) + ',resizable=yes');
  } else {
    window.open(theURL,winName,'width=' + popupwidth + ',height=' + popupheight + ',resizable=yes');
  }
}