$(document).ready(function(){

	//Products
	autoFill("#page-nl", 'Pagina titel...');
	autoFill("#page-en", 'Page title...');
	autoFill("#page-fr", 'Titre de page...');
	autoFill("#page-de", 'Seitename...');		

	autoFill("#type-nl", 'Groep...');
	autoFill("#type-en", 'Group...');
	autoFill("#type-fr", 'Groupe...');
	autoFill("#type-de", 'Gruppe...');		

	autoFill("#product-nl", 'Product...');
	autoFill("#product-en", 'Product...');
	autoFill("#product-fr", 'Produit...');
	autoFill("#product-de", 'Produkt...');		
	autoFill("#product-nr", 'Nr...');		
	autoFill("#product-description-nl", 'Omschrijving...');
	autoFill("#product-description-en", 'Description...');
	autoFill("#product-description-fr", 'Description...');
	autoFill("#product-description-de", 'Beschreibung...');
	autoFill("#product-ai-nl", 'Overige informatie...');
	autoFill("#product-ai-en", 'Other information...');
	autoFill("#product-ai-fr", 'Autres informations...');
	autoFill("#product-ai-de", 'Weitere Informationen...');
	
	//Job
	autoFill("#job_name", 'Functienaam...');
	autoFill("#job_number", 'Vacaturenummer...');
	autoFill("#job_department", 'Afdeling...');
	autoFill("#job_hours", 'Uren...');
	autoFill("#job_location", 'Standplaats...');
	autoFill("#job_about_job", 'Over de functie...');
	autoFill("#job_about_you", 'Over jou...');
	autoFill("#job_offer", 'Wij bieden...');
	autoFill("#job_more", 'Meer inforamtie...');
});

function autoFill(id, v){
		if($(id).val() == ""){
			$(id).css({ color: "#b2adad" }).attr({ value: v }).focus(function(){
				if($(this).val()==v){
					$(this).val("").css({ color: "#000" });
				}
			}).blur(function(){
				if($(this).val()==""){
					$(this).css({ color: "#b2adad" }).val(v);
				}
			});			
		}

}
