
function weatherChange() {
	var btn = document.getElementById("weatherBtn");
	btn.onclick = function(){
		if(this.className == "close") {
			this.className = "open";
			$('weatherData').morph('error', {
				style: 'height:265px;',
				duration: 0.7
			});
			return false;
		} else {
			this.className = "close";
			$('weatherData').morph('error', {
				style: 'height:80px;',
				duration: 0.7
			});
			return false;
		}
	}
}


/* event listener
============================================================*/
function addEvent(elm,listener,fn){
	try{
		elm.addEventListener(listener,fn,false);
	}catch(e){
		elm.attachEvent("on"+listener,fn);
	}
}

addEvent(window,"load",weatherChange);
// E N D