jQuery.noConflict();

jQuery(document).ready(function(){
	
	/*
 * remove italic property when focused in text-fields
 * 
 * */

	//Restore all inputs-texts
	jQuery("input:text").each(function(index, Element){
		jQuery(this).val(jQuery(this).attr("title"));
	});
	
	jQuery("form input:text").each(function(){
		jQuery(this).keypress(onFormIntroKeypress);
	});
	
	jQuery("form input:password").each(function(){
		jQuery(this).keypress(onFormIntroKeypress);
	});

	jQuery("#toolbar-search-curfield .inputtext, #loginFormWrapper .inputtext").focus(function(){
		jQuery(this).css("font-style","normal");
		var curValue = jQuery(this).val();
		if(curValue == jQuery(this).attr("title")){
			jQuery(this).val("");
		}

	});
	jQuery("#toolbar-search-curfield .inputtext, #loginFormWrapper .inputtext").blur(function(){
		jQuery(this).css("font-style","italic");
		var curValue = jQuery(this).val();
		
		if(curValue == ""){
			jQuery(this).val(jQuery(this).attr("title"));
		}
	});
});
