$(document).ready(function(){

	var value = '';	
		
	$('input:text').each(function() {
	if($(this).attr('value') == 'null' )
		$(this).attr('value','');
	});
	
	$("#cn-file-win32").attr('checked', 'checked');
	// on focus, change css class and set value to empty
	$("input").focus(function(){
		if($(this).hasClass("default")){
			value = $(this).attr('value');
			$(this).attr('value','');
			$(this).removeClass("default");
			$(this).addClass("textin");
		}

	});

	// on blur, check if value is empty set value and css class to default
	$("input").blur(function(){

		if($(this).hasClass("textin") && $(this).attr('value') == '' ){

			$(this).attr('value',value);
			$(this).removeClass("textin");
			$(this).addClass("default");

		}

	});


	// input 4 submitbuttons with class input_submit
	$(".input_submit").hover(

			function(){
				$(this).removeClass("input_submit")
				$(this).addClass("input_submit_hover");
			},
			function(){
				$(this).removeClass("input_submit_hover");
				$(this).addClass("input_submit");
			}
	);
					

});
