$(function(){
	
	/*if ($.browser.msie && $.browser.version < 7)
		$('img[src$=.png]').pngfix();*/

	$('img[hover],input[hover]').imghover();

	$('textarea[initValue],input[initValue]').initValue();

	// Home top 3
	function activateHomeArt(ele,i) {
		$(ele).parent().find('>div').removeClass('active');
		$('#home_top3_reacties>div').hide();
		$(ele).addClass('active');
		$('#home_top3_reacties>div:eq('+i+')').show();
	}

	$('#home_top3_reacties>div').hide();
	$('#home_top3_art>div').each(function(i){
		if (i==0) activateHomeArt(this,i);
		$(this).hover(function(){
			activateHomeArt(this,i);
		},function(){});
	});
    
    $("#registersubmit").click(function() {
        $("textarea").each(function() {
            var ta = $(this);
            if (ta.attr("initValue") == ta.val()) {
                ta.val("");
            }
        });
    });
    
    $("#ecardsubmit").click(function() {
        $("textarea").each(function() {
            var ta = $(this);
            if (ta.attr("initValue") == ta.val()) {
                ta.val("");
            }
        });
    });
});