/*
  FOR MIT OCW CHINESE WORKFORCE.
  POST NEWS, UPDATES, REPORTS, ACTIVITIES.
*/
<!--Begin: By Pen Jen Yuan 2005/01/28 -->
function PostBoard()
{
	
	NEWS = new Array();
	/*
	Array 
	line 1 : Title,
	line 2: Caption,
	line 3: URL.
	*/
	
	NEWS.push(new Array(
		"OOPS調查局 ─ 背景資料統計",
		"請點我進入閱讀",
		"Global/oops/survey/index.htm"
		));		
		
	NEWS.push(new Array(
		"誠徵各領域義工",
		"編輯、翻譯、審定、協助剪貼網頁、PHP程式設計、BLOG架設管理、網頁設計、Wiki架設。只要你有這些專長，又願意協助分享知識的網友，請趕快來報到。",
		"",
		"意者請來信：oops.translator@gmail.com",
		"mailto:oops.translator@gmail.com"
		));
		
	NEWS.push(new Array(
		"徵求義務編輯",
		"由於本計劃的翻譯量極大，因此需要擁有經驗者協助處理稿件。希望能夠擁有翻譯經驗，能對照原文修正中文的翻譯錯誤，同時潤飾翻譯完成的中文。您的主要工作將會是讓讀者更快速地看到更正確的文章，並且讓譯者能夠知道自己所犯的錯誤，同時也從中學習。請有這方面專業技能者能拔刀相助！",
		""
		));
		
	NEWS.push(new Array(
		"徵求簡體校閱",
		"由於本計劃亦有簡體版http://www.myoops.org/cocw/，但大部分的翻譯是從繁體譯者手中產出，因此在簡體專有名詞和詞句上難免會有轉檔所不及或錯誤之處。因此徵求各領域的簡體讀者，利用目前大陸通用學術譯名，協助我們校正目前簡體版的翻譯，讓更多大陸讀者能夠讀到更符合他們閱讀習慣的知識！",
		"",
		"意者請來信：oops.translator@gmail.com",
		"mailto:oops.translator@gmail.com"
		));
		
	document.write ("<marquee bgcolor=#FFFFFF scrollamount='2' scrolldelay='75' direction= 'up' width='100%' height=100 id=xiaoqing3 onmouseover=xiaoqing3.stop() onmouseout=xiaoqing3.start()>");
	for (i=0;i<NEWS.length;i++)
	{
		document.write ("<CENTER><font color=black>"+ NEWS[i][0] +"</font></CENTER>");
		document.write ("<CENTER><font color=#aaaaaa>");
		for (j=1;j<NEWS[i].length;j++)
		{
			if(0 != NEWS[i][j+1].length)
			{
			  if ( NEWS[i][j+1].toString().indexOf("http"))
			    document.write("<a href='"+ NEWS[i][j+1] + "'>" + NEWS[i][j] + "</a><br>");
			  else
				  document.write("<a href='"+ NEWS[i][j+1] + "' target='_new'>" + NEWS[i][j] + "</a><br>");
			}
			else
			{
				document.write(NEWS[i][j] + "<br>");
			}
			j++;
		}
		document.write ("</font></CENTER>");
		document.write("<br>");
	}
	document.write ("</marquee>");
}
function PostCourseUpdate()
{
	update = new Array();
	
	    update.push( new Array(
      "2009.02.25",
      "7.340 2005秋季課程：奈米生命：病毒與裝配導論",
      "mit/Biology/7-340Fall-2005/CourseHome/index.htm",
      "10.492-1 2004秋季課程：整合化學工程專題II：流程控制設計",
      "mit/Chemical-Engineering/10-492-1Fall-2004/CourseHome/index.htm",
      "10.675J 2004秋季課程：分子與延伸系統的量子力學電腦運算",
      "mit/Chemical-Engineering/10-675JFall-2004/CourseHome/index.htm"
      ));
	
	
      update.push( new Array(
      "2009.02.09",
      "9.322J / 7.67J 2005秋季課程：遺傳神經生物學 - 完成",
      "mit/Brain-and-Cognitive-Sciences/9-322JFall-2005/CourseHome/index.htm",
      "9.520 2003春季課程：統計學習理論及應用",
      "mit/Brain-and-Cognitive-Sciences/9-520Statistical-Learning-Theory-and-ApplicationsSpring2003/CourseHome/index.htm",
      "7.391 / 7.931 2005秋季課程：概念中心教學",
      "mit/Biology/7-391Fall-2005/CourseHome/index.htm",
      "7.90J / 6.874J 2005春季課程：計算性實用基因體",
      "mit/Biology/7-90JSpring-2005/CourseHome/index.htm",
      "7.012 2004秋季課程：生物學導論",
      "mit/Biology/7-012Fall-2004/CourseHome/index.htm",
      "5.068 2005春季課程：無機化學中之物理方法",
      "mit/Chemistry/5-068Spring-2005/CourseHome/index.htm"
      ));
	
      update.push( new Array(
      "2009.02.03",
      "221.688.81 基層衛生照護的社會和行為基礎 - 完成",
      "jhsph/courses/SocialBehavioralFoundations/index.htm",
      "4.602 2004春季課程：現代藝術與大眾文化",
      "mit/Architecture/4-602Spring2004/CourseHome/index.htm",
      "5.04 2004秋季課程：無機化學原理II",
      "mit/Chemistry/5-04Fall-2004/CourseHome/index.htm",
      "5.73 2002秋季課程：量子力學導論I",
      "mit/Chemistry/5-73Introductory-Quantum-Mechanics-IFall2002/CourseHome/index.htm"
      ));
	
	    update.push( new Array(
      "2009.02.02",
      "21H.346 2005秋季課程：1660-1815的法國：啟蒙、革命、拿破崙",
      "mit/History/21H-346Fall-2005/CourseHome/index.htm"
      ));

		document.write ("<marquee scrollamount='2' scrolldelay='75' direction= 'up' width='160' id=xiaoqing height='150' onmouseover=xiaoqing.stop() onmouseout=xiaoqing.start()>");
		for (i=0;i<update.length;i++)
		{
			document.write ("<font color=#990000>"+ update[i][0] +"</font><BR>");
			for (j=1;j<update[i].length;j++)
			{
				if(0 != update[i][j+1].length)
				{
				  if ( update[i][j+1].toString().indexOf("http"))
					  document.write ("<a href='"+ update[i][j+1] + "'>" + update[i][j] + "</a><br>");
					 else
					  document.write ("<a href='"+ update[i][j+1] + "' target='_new'>" + update[i][j] + "</a><br>");
					  
				}
				else
				{
					document.write (update[i][j] + "<br>");
				}
				j++;
			}
			document.write("<br>");
		}
		document.write ("</marquee>");
}
function PostMedia()
{
	Media = new Array();

	Media.push( new Array(
		"2008.12.29",
		"台灣/交大規劃建置網路平台　開放分享大學教材",
		"http://www.cdnews.com.tw/cdnews_site/docDetail.jsp?coluid=121&docid=100617590",
		"數位開放課程 上網也可讀大學",
		"http://www.libertytimes.com.tw/2008/new/dec/25/today-life10.htm",
		"上網免費修課！ 臺灣開放式課程聯盟成立",
		"http://web.ner.gov.tw/culturenews/culture/culture-detail.asp?id=96012",
		"台大交大等課程 免費上網學",
		"http://www.awakeningtw.com/awakening/news_center/show.php?itemid=2299",
		"大學課程上網看 可抵學分",
		"http://mag.udn.com/mag/campus/storypage.jsp?f_ART_ID=168291",
		"大學課程開放 網路旁聽不用錢",
		"http://www.lihpao.com/news/in_p1.php?art_id=27003",
		"開放式課程上網免費進修",
		"http://mag.udn.com/mag/campus/storypage.jsp?f_MAIN_ID=13&f_SUB_ID=33&f_ART_ID=168362"
		));

	document.write ("<marquee scrollamount='2' scrolldelay='75' direction= 'up' width='160' id=xiaoqing2 height='150' onmouseover=xiaoqing2.stop() onmouseout=xiaoqing2.start()>");
	for (i=0;i<Media.length;i++)
	{
		document.write ("<font color=#990000>"+ Media[i][0] +"</font><BR>");
		for (j=1;j<Media[i].length;j++)
		{
			if(0 != Media[i][j+1].length)
			{
			  if ( Media[i][j+1].toString().indexOf("http"))
			    document.write ("<a href='"+ Media[i][j+1] + "'>" + Media[i][j] + "</a><br>");
				 else
				  document.write ("<a href='"+ Media[i][j+1] + "' target='_new'>" + Media[i][j] + "</a><br>");
			}
			else
			{
				document.write(Media[i][j] + "<br>");
			}
			j++;
		}
		document.write("<br>");
	}
	document.write ("</marquee>");
}
function PostReport()
{
	Report = new Array();
		
	Report.push( new Array(
		"2009.08.18",
		"OOPS 電子報2009年莫拉克特別號",
		"Global/oops/epaper/20090814.htm"
		));
		
	Report.push( new Array(
		"2009.07.11",
		"OOPS 電子報2009年六月號",
		"Global/oops/epaper/20090630.htm"
		));
		
	Report.push( new Array(
		"2009.06.21",
		"OOPS 電子報2009年五月號",
		"Global/oops/epaper/20090531.htm"
		));
		
	Report.push( new Array(
		"2009.05.10",
		"OOPS 電子報2009年四月號",
		"Global/oops/epaper/20090430.htm"
		));

	document.write ("<marquee scrollamount='2' scrolldelay='75' direction= 'up' width='160' id=xiaoqing4 height='150' onmouseover=xiaoqing4.stop() onmouseout=xiaoqing4.start()>");
	for (i=0;i<Report.length;i++)
	{
		document.write ("<font color=#990000>"+ Report[i][0] +"</font><BR>");
		for (j=1;j<Report[i].length;j++)
		{
			if(0 != Report[i][j+1].length)
			{
			  if ( Report[i][j+1].toString().indexOf("http"))
			    document.write ("<a href='"+ Report[i][j+1] + "'>" + Report[i][j] + "</a><br>");
				 else
				  document.write ("<a href='"+ Report[i][j+1] + "' target='_new'>" + Report[i][j] + "</a><br>");
			}
			else
			{
				document.write(Report[i][j] + "<br>");
			}
			j++;
		}
		document.write("<br>");
	}
	document.write ("</marquee>");
}
<!--Begin: By Pen Jen Yuan 2005/01/28 -->

<!--Start: By Pen Jen Yuan 2006/05/26 -->
function getCourseUpdate(goidx)
{
	var baseYear=2004;
	var upYear=2009;
	var selidx=1;
	obj = document.getElementById("updateLst");
  	tempRate=new Option;
	tempRate.value=0;
	tempRate.text="最近";
	tempRate.selected= false;
	obj.options[0]=tempRate;
	for(i=(upYear-baseYear);i>=1;i--) 
  	{
    		tempRate=new Option;
    		tempRate.value=baseYear+i-1;
    		tempRate.text=tempRate.value+"年";
    		tempRate.selected= false;
    		obj.options[selidx]=tempRate;
    		selidx ++;
  	}
  	if(goidx == 0)
  	{ obj.options[0].selected=true; }
	else
	{ obj.options[upYear - goidx].selected=true; }  	
}
function gotoCourseUpdate(goidx)
{
	if (goidx == 0)
	{
		top.location="indexupdate.htm";
	}
	else
	{
		top.location="indexupdate"+goidx+".htm";
	}
}
<!--End: By Pen Jen Yuan 2006/05/26 -->
