// You can change the top portion in the main page by simply editing
// the following two variables. Remember it must be in a single line!!!
// Use NOTEPAD to edit this file. This file must be saved in Unicode format!!!!

// This one is for traditional Chinese main page
var tchPastorWord = "為林牧師宣教工作及健康禱告。</li><li>為師母在家照顧女兒林聖心禱告。</li><li>請收看講道宣教錄影錄音。";

// This one is for simplified Chinese main page
var schPastorWord = "为林牧师宣教工作及健康祷告。</li><li>为师母在家照顾女儿林圣心祷告。</li><li>请收看讲道宣教录影录音。";

// This one is for English main page
var enPastorWord = "Pray for the <b>safety</b> and <b>health</b> of Pastor David when on mission trip.</li><li>Pray for Pastor's wife Bonnie taking care of baby girl Michelle</b>!</li><li>Please view the ministry videos and pray that many lives will be <b>changed</b> through this website.";

// Edit sermon title here: T-chinese, S-chinese, English
var latestSermonTitle  = Array( "等候聖靈降臨", "等候圣灵降临", "Waiting upon the Holy Spirit" );
var latestMissionTitle = Array( "中國宣教 2006-07", "中国宣教 2006-07", "China Mission 2006-07" );

var videoLocation = "http://www.todmi.org/media/video/";

// These are the mission video locations and titles
var missionVideos = Array(
	Array("china05-06.wmv", "2005-06年中國宣教回顧", "2005-06年中国宣教回顾", "2005-06 China Mission"),
	Array("china05.wmv", "2005年中國宣教回顧", "2005年中国宣教回顾", "2005 China Mission"),
	Array("china04.wmv", "2004年中國宣教回顧", "2004年中国宣教回顾", "2004 China Mission"),
	Array("china03-04.wmv", "2003-04年中國宣教回顧", "2003-04年中国宣教回顾", "2003-04 China Mission"),
	Array("china02-03.wmv", "2002-03年中國宣教回顧", "2002-03年中国宣教回顾", "2002-03 China Mission"),
	Array("china01.wmv", "2001年中國宣教回顧", "2001年中国宣教回顾", "2001 China Mission"),
	Array("china00-01.wmv", "2000年中國宣教回顧", "2000年中国宣教回顾", "2000 China Mission"),
	Array("china99-00.wmv", "1999-2000年中國宣教回顧", "1999-2000年中国宣教回顾", "1999-2000 China Mission")
);
	
function getTchPastorWord() {
    return tchPastorWord;
}

function getSchPastorWord() {
    return schPastorWord;
}

function getEnPastorWord() {
    return enPastorWord;
}

function getMissionVideosContent(index)
{
    var result = "";
	for (var i = 0; i < missionVideos.length; i++) {
    	var item = missionVideos[i];
    	result += "<li><a href=\"" + videoLocation + item[0] + "\">" + item[index] + "</a></li>";
    }
    return result;
}

function getEnVideoContent()
{
    var mission = latestMissionTitle[2];
    var result = "<ul class=\"newslist\"><li><b>Latest Mission Video:</b> <a href=\"" + videoLocation + "latest/mission.wmv\">" +
						               mission + "</a></li>";
  	return result + getMissionVideosContent(3) + "</ul>";
}

// There is the section for latest videos
function getTchVideoContent() {
    var sermon = latestSermonTitle[0];
    var mission = latestMissionTitle[0];
    var result = "<ul class=\"newslist\"><li>最新講道錄影: <a href=\"" + videoLocation + "latest/Message.wmv\">" +
			sermon + "</a></li><li>最新宣教影片: <a href=\"" + videoLocation + "latest/mission.wmv\">" +
						               mission + "</a></li>";
  	return result + getMissionVideosContent(1) + "</ul>";
}

function getSchVideoContent() {
    var sermon = latestSermonTitle[1];
    var mission = latestMissionTitle[1];
    var result = "<ul class=\"newslist\"><li>最新讲道录影: <a href=\"" + videoLocation + "latest/Message.wmv\">" +
			sermon + "</a></li><li>最新宣教影片: <a href=\"" + videoLocation + "/latest/mission.wmv\">" +
						               mission + "</a></li>";
  	return result + getMissionVideosContent(2) + "</ul>";
}