$(function() {
		
	$('a.external').attr('target', '_blank');
	
	$('a.tip').qtip({
	   position: {
		  at: 'top center',
		  my: 'bottom center'
	   }, 
	   style: {
			 classes: 'ui-tooltip-dark ui-tooltip-rounded'
	   }
	});
	
	if ($("input.focus-clear").length > 0) {
		
		$("input.focus-clear").each(function(i) {
		
		$defaulttext = $(this).val();
		
				$(this).focus(function() {
					//$defaulttext = $(this).val();
					if ($(this).val() == $defaulttext) {
						$(this).val('');
					}
				}).blur(function() {
					if ($(this).val() == '') {
						$(this).val($defaulttext);
					}
				}).keypress(function() {
					$(this).removeClass("focus-clear");
				});
		});
		
	}
	
});


