Y.use('node-base', 'node-style', function(Y){


    /**
     * Overlay Labels verwalten
     */
    var searchTypes = Y.all('#searchform ul li');
	

    searchTypes.each(function(type){

		type.on('click',function(e){
			removeAllCss();
			this.addClass('active');
			showForm();
		});
		
    });

	showForm();

	function removeAllCss()
	{
		searchTypes.each(function(type){
			type.removeClass('active');
		});
	}
	function showForm()
	{
		searchTypes.each(function(type){
			if ( type.get('className') == 'active') {
				Y.one('#'+ type.get('id') +'Form').setStyle('display','');
			} else {
				Y.one('#'+ type.get('id') +'Form').setStyle('display','none');
			}
		});
	}
});
