$(document).ready(function(){
	/* Activate PNG Fix */
	$(document).pngFix(); 
	
	/* Activate Tooltip */
	$(".tooltip").append("<em></em>");
	
	$(".tooltip").hover(function() {
		$(this).find("em").fadeIn();
		var hoverText = $(this).attr("title");
	    $(this).find("em").text(hoverText);
	}, function() {
		$(this).find("em").hide();
	});
	
	/* Activate Accordion */
	
	$('#list-accordion').accordion({	
			header:'.ac_main',		
			autoheight: false			
	});
   
   $('.popeye').popeye();
		$('.formular-text').each(function() {
			var default_value = this.value;
			$(this).focus(function() {
				if(this.value == default_value) {
					this.value = '';
					$(this).css('color', '#000');
					$(this).css('border','1px solid #006ab2');
					$(this).css('font-style','normal');
				}
			});
			$(this).blur(function() {
				if(this.value == '') {
					$(this).css('color', '#646464');
					$(this).css('border','1px solid #b6bbba');
					this.value = default_value;
					$(this).css('font-style','italic');
				}
    });
});
    
    
});


