$('#header .top a.design, #header .top a.template, #header .top a.contact')
	.each(function () {
		var thiz = this;
		$(thiz)
			.click(function () {
				$('#header-hidden-information')
					.stop()
					.slideUp('medium', function () {
						var id = $(thiz).attr('class');
						var curr = false;
						
						$(this).find('div').each(function () {
							if ($(this).css('display') == 'block') {
								curr = $(this).attr('class');
							}
							$(this)
								.css('display', 'none');
						});
						
						if (curr != id) {
							$(this)
								.find('.' + id)
									.css('display', 'block')
									.end()
								.slideDown('slow', function () {
									$(thiz)
										.css('display', 'none')
										.css('display', 'block');
								});
						} else {
							curr = false;
						}
					});
				return false;
			});
	});