window.onload = function ()
{    
	var navigation = document.getElementById ('navigation');    	
	var children = navigation.childNodes;
	var length = children.length;
	    	
	for (var i = 0; i < length; i++) 
	{    	
		if (children[i].nodeType == 1) {   	    	
			children[i].onmouseover = function ()
			{
				this.className = 'hover';
			}
	
			children[i].onmouseout = function ()
 			{
				this.className = '';
			}
		}
	}
}

function changeSubaction ()
{
    var subaction = document.getElementById ('subaction').value;
    var input = document.getElementById ('newsletter_member_name');
    var label = document.getElementById ('newsletter_member_name_label');
    
    
    switch (subaction) {
        case 'signup':
            input.style.display = 'block';
            label.style.display = 'block';      
            break;
        
        case 'signout':
            input.style.display = 'none';
            label.style.display = 'none';           
            break;
    }
}
