$(document).ready(function () {

	var sHeadline = $('.page-navigator').find('a').eq(2).html();

	if ((sHeadline==null))
		sHeadline = $('.page-navigator').find('b').html();

	if (sHeadline!="")	
	{
		$("#lasfHeaderContainer").html( sHeadline );
	}

	// initialize Input fields
	inputInitValue();
	
});

/*******************************************
FUNCTIONS
*******************************************/


/* Clear and set initial value of input fields */
function inputInitValue() {

	$("*[@behaviours='inputInitValue']").focus(function() {

		if (!$(this).attr("oldValue")) {
			$(this).attr("oldValue", $(this).attr("value"));
		}
		
		if ($(this).attr("value") == $(this).attr("oldValue")) {
			$(this).attr("value", "");
		}
	});
	
	$("*[@behaviours='inputInitValue']").blur(function() {
	
		if (!$(this).attr("value")) {
				$(this).attr("value", $(this).attr("oldValue"));
		}
	});
}