var contactusPanel = {
	interval : 0,
	top : -360,
	display : false,
	container : null,
	content : null,
	initialized : false,
	animating : false,
	toggle : function() {
		if(contactusPanel.animating) {
			return false;
		}
		contactusPanel.animating = true;
		if(!contactusPanel.initialized) {
			contactusPanel.container = document.getElementById('contactus');
			contactusPanel.content = contactusPanel.container.getElementsByTagName('div')[0];
			contactusPanel.initialized = true;
		}
		if(!contactusPanel.display) {
			contactusPanel.container.style.display = 'block';
			contactusPanel.display = true;
			contactusPanel.show();
			selects = document.getElementsByTagName('select');
			for(var i=0; i<selects.length; i++){
			selects[i].style.display= 'none';	
			}
		}
		else {
			selects = document.getElementsByTagName('select');
			for(var i=0; i<selects.length; i++){
			selects[i].style.display= 'inline';	
			}
			contactusPanel.hide();
		}
		return false;
	},
	show : function() {
		contactusPanel.interval = setInterval('contactusPanel.animationShow()', 40);
	},
	animationShow : function() {
		var targetTop = Math.ceil(contactusPanel.top*0.5);
		contactusPanel.content.style.top = targetTop + 'px';
		contactusPanel.top = targetTop;
		if(targetTop == 0) {
			clearInterval(contactusPanel.interval);
			contactusPanel.animating = false;
		}
	},
	hide : function() {
		contactusPanel.interval = setInterval('contactusPanel.animationHide()', 40);
	},
	animationHide : function() {
		var targetTop = Math.floor((contactusPanel.top-360)*0.5);
		contactusPanel.content.style.top = targetTop + 'px';
		contactusPanel.top = targetTop;
		if(targetTop == -360) {
			clearInterval(contactusPanel.interval);
			contactusPanel.animating = false;
			contactusPanel.container.style.display = 'none';
			contactusPanel.display = false;
		}
	}
}