// JavaScript Document
addLoadEvent(changeLan);
function changeLan(){
	var imgPath="images/";
	var changepic=document.getElementById("change");
	var salutatory=document.getElementById("salutatory");
	changepic.style.cursor="pointer";
	changepic.onclick=function(){
		var str=this.src;
		var s = str.lastIndexOf("/");
		var temp=str.substring(s==-1?0:s+1,str.length);
		switch(temp){
			 case "change_btn_tw.gif":
				this.src=imgPath+"change_btn_gb.gif";
				salutatory.innerHTML="<img src='images/cn_tw.gif' alt='welcome' />";
				break;
			 case "change_btn_gb.gif":
				this.src=imgPath+"change_btn_en.gif";
				salutatory.innerHTML="<img src='images/cn_gb.gif' alt='welcome' />";
				break;
			 case "change_btn_en.gif":
				this.src=imgPath+"change_btn_tw.gif";
				salutatory.innerHTML="Welcome to the CLASS website, an informational site dedicated to providing information on the Chinese language and Chinese culture.  CLASS offers a platform for K-12 teachers to communicate with each other, exchange ideas, and network with other members with the purpose of encouraging more students to learn Chinese.  One of our main goals is to ensure that the teaching of Chinese becomes an integral part of the mainstream American educational system.";
				break;
		}
	}
}
