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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function fwLoadMenus() {
  if (window.fw_menu_0) return;
    window.fw_menu_0_1 = new Menu(" 認 識 圖 書 館 ",149,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#006699","#3399ff");
    fw_menu_0_1.addMenuItem(" 圖 書 館 的 功 能","location='/class/lib_func.html'");
    fw_menu_0_1.addMenuItem(" 圖 書 館 的 類 型","location='/class/lib_type.html'");
    fw_menu_0_1.addMenuItem(" 圖 書 館 的 資 訊 服 務","location='/class/service.html'");
     fw_menu_0_1.hideOnMouseOut=true;
    window.fw_menu_0_2 = new Menu(" 圖 書 館 的 資 源",149,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#006699","#3399ff");
    fw_menu_0_2.addMenuItem(" 圖 書 的 檢 索","location='/class/guide.html'");
    fw_menu_0_2.addMenuItem(" 期 刊 新 聞 的 檢 索","location='/class/ref_error.html_serv.html'");
    fw_menu_0_2.addMenuItem(" 參 考 資 源 的 種 類","location='/class/ref_book1.html'");
    fw_menu_0_2.addMenuItem(" 電 子 資 料 庫","location='/class/database.html'");
    fw_menu_0_2.addMenuItem(" 網 路 資 源","location='/class/resource.html'");
     fw_menu_0_2.hideOnMouseOut=true;
    window.fw_menu_0_3 = new Menu(" 檢 索 技 巧 與 策 略",149,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#006699","#3399ff");
    fw_menu_0_3.addMenuItem(" 要 怎 麼 開 始","location='/class/search_skill.html'");
    fw_menu_0_3.addMenuItem(" 資 訊 檢 索","location='/class/retrieve.html'");
     fw_menu_0_3.hideOnMouseOut=true;
  window.fw_menu_0 = new Menu("root",149,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#006699","#3399ff");
  fw_menu_0.addMenuItem(fw_menu_0_1,"location='/class/index.html'");
  fw_menu_0.addMenuItem(fw_menu_0_2,"location='/#'");
  fw_menu_0.addMenuItem(fw_menu_0_3,"location='/#'");
  fw_menu_0.addMenuItem(" 資 料 蒐 集 報 告 撰 寫","location='/class/collect.html'");
   fw_menu_0.hideOnMouseOut=true;
   fw_menu_0.childMenuIcon="/img/arrows1.gif";

  fw_menu_0.writeMenus();
}
function my_date(){
  var days = new Array(8);
  days[1] = "日";
  days[2] = "一";
  days[3] = "二";
  days[4] = "三";
  days[5] = "四";
  days[6] = "五";
  days[7] = "六";
  var months = new Array(13);
  months[1] = "January";
  months[2] = "February";
  months[3] = "March";
  months[4] = "April";
  months[5] = "May";
  months[6] = "June";
  months[7] = "July";
  months[8] = "August";
  months[9] = "September";
  months[10] = "October";
  months[11] = "November";
  months[12] = "December";
  var dateObj = new Date()
  var wday = days[dateObj.getDay() + 1]
  var lmonth = months[dateObj.getMonth() + 1]
  var date = dateObj.getDate()
  var fyear = dateObj.getYear()
  if (fyear <1000) fyear += 1900;
  return( lmonth + " " + date + ", " + fyear)

}