$(document).ready( function () {
	$("#sidebarleft a:contains('Inscrivez')").addClass('more');
	$("a[class*='tag-link']").css({ "color": "#1DB4CE"});
	$("#commentform input[type*='submit']").addClass('sendbutton');
	$("#captcha_code").css({ "width": "172px"});

	/* START commentform  */
	$('#commentform #author').val('Votre Nom');
	$('#commentform #email').val('Votre email (ex: nom@domaine.fr)');
	$('#commentform #url').val('Site web (http://...)');
	$('#commentform #comment').val('Tapez votre message ici');
	$('#commentform #captcha_code').val('CAPCHA CODE');
	
	$('#commentform .commentbox, #commentform .textfield, #commentform #captcha_code').focus(function(){ 
	
		if($(this).val() == 'Votre Nom') {
			$(this).val('');
		}		
		if($(this).val() == 'Votre email (ex: nom@domaine.fr)') {
			$(this).val('');
		}		
		if($(this).val() == 'Site web (http://...)') {
			$(this).val('');
		}		
		if($(this).val() == 'Tapez votre message ici') {
			$(this).val('');
		}		
		if($(this).val() == 'CAPCHA CODE') {
			$(this).val('');
		}
	});	
	$('#commentform .commentbox, #commentform .textfield, #commentform #captcha_code').blur(function(){ 
	
		if($(this).attr('id') == 'author' && $(this).val() == '') {
			$(this).val('Votre Nom');
		}
		if($(this).attr('id') == 'email' && $(this).val() == '') {
			$(this).val('Votre email (ex: nom@domaine.fr)');
		}	
		if($(this).attr('id') == 'url' && $(this).val() == '') {
			$(this).val('Site web (http://...)');
		}	
		if($(this).attr('id') == 'comment' && $(this).val() == '') {
			$(this).val('Tapez votre message ici');
		}	
		if($(this).attr('id') == 'captcha_code' && $(this).val() == '') {
			$(this).val('CAPCHA CODE');
		}
	});
	/* END commentform  */	
	
	/* Category */
	$('.separate').eq(0).removeClass();
});
