$(document).ready(function(){ 
	//Sitespecific javascript here
	
	//clear inputs and textboxes'
		$('#search_input').focus(function(){
			if ($('#search_input').val() != "") {
				var theValue = "";
				$('#search_input').val('');
			};
		
		});
		$('#user').focus(function(){
			if ($('#user').val() != "") {
				var theValue = "";
				$('#user').val('');
			};
		
		});
		$('#password').focus(function(){
			if ($('#password').val() != "") {
				var theValue = "";
				$('#password').val('');
			};
		
		});
		$('input,textarea').blur(function(){
			//Check that the value is empty for the element
			if ($(this).val()== null || $(this).val()== "") {
				//Check if the input should have a default value
				if ($(this).is('#search_input')){
					$(this).val("Fyll i sökord");
				};
				if ($(this).is('#user')){
					$(this).val("Användarnamn");
				};
				if ($(this).is('#password')){
					$(this).val("password");
				};
			};
			
			
		});
		/*Table styling*/
		$('table.row tr:nth-child(even)').addClass('even');
		$('table.row tr:nth-child(odd)').addClass('odd');
		$('table.column td:nth-child(even)').addClass('even');
		$('table.column td:nth-child(odd)').addClass('odd');

	
});