// JavaScript Document
function switchState(id, visibleStateCSS) {
// Locate and update our popup window
	new Effect.SlideDown(id);
	
	object = document.getElementById(id);	
	
	object.className = visibleStateCSS;	
	 
	return false;
}

function togglelogin(state){
	myWidth.toggle();
	opacityEffect.toggle();
	
	if (state == "hide"){
		Element.hide('loginimg');
		Element.show('loginaltimg');
	}	
	else{
		Element.show('loginimg');
		Element.hide('loginaltimg');
	}		
	
}

