$(function() {

	$("li < a.active").css("property", "value");

	$('#login input').each(function(){
		var default_val = $(this).val()
		$(this).focus(function(){
			if ($(this).val() == default_val) $(this).val('')
		})
		$(this).blur(function(){
			if ($(this).val() == '') $(this).val(default_val)
		})
	})
	p_toggle = $('.parent').toggle(
		function(){
			$(this).next('.child').show()
			.css('display','table-row')
			$(this).find('a').each(function(){
				$(this).hide()
				$(this).after('<span class="tmp_link">'+$(this).text()+'</span>')
			})
		},
		function(){
			$(this).next('.child').hide()
			$(this).find('.tmp_link').remove()
			$(this).find('a').show()
			
		}
	)
	p_toggle
	.click(function(){$(this).toggleClass('active')})
	.css('cursor', 'pointer')
	.next('.child').hide()
	
//	$('.grandfather').click(function() {$('.parent').click()})
//	.css('cursor', 'pointer')
})
