/*
  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 -->

