<!--
bannerNum = 0;
theImages = new Array();


theImages[0] = new Image();
theImages[0].src = "http://www.jtf.org.tw/psyche/banner/dm11.png";

theImages[1] = new Image();
theImages[1].src = "http://www.jtf.org.tw/psyche/banner/200905banner.jpg";

theImages[2] = new Image();
theImages[2].src = "http://www.jtf.org.tw/psyche/banner/20091129-run.JPG";

theImages[3] = new Image();
theImages[3].src = "http://www.jtf.org.tw/psyche/banner/2010sport100.jpg";

// _self 同一視窗連結
// _blank 開新視窗連結

function clickBanner()
{



	if (bannerNum == 0)
		window.open("http://www.jtf.org.tw/psyche/melancholia/overblue.asp","_self");	

	

                 if (bannerNum == 1)
	window.open("http://www.jtf.org.tw/psyche/files/日子難過別讓心也難過30秒CF.wmv","_self");

	if (bannerNum == 2)
		window.open("http://www.jtf.org.tw/psyche/activities/20091129.asp","_self");	

                 if (bannerNum == 3)
		window.open("http://www.jtf.org.tw/psyche/20091209.asp","_self");	

}

function rotateBanner()
{
	bannerNum++;

	if (bannerNum > 3) // 設定返回第一個圖檔的上限
		bannerNum = 0;

	document.ListImage.src = theImages[bannerNum].src;
	setTimeout("rotateBanner()",4000); // 圖檔更換的時間, 1/1000秒
}

//-->
