function defaultInputTextFocus() {
	if($(this).val() == inputText[$(this).attr("name")]) {
		$(this).val("").removeClass("faded");
	}
}
function defaultInputTextBlur() {
	if($(this).val() == "") {
		$(this).val(inputText[$(this).attr("name")]).addClass("faded");

	}
}
$(document).ready(function(){
	$(".dT").focus(defaultInputTextFocus).blur(defaultInputTextBlur);
	
	$('.tooltip').each(function(){ // loop through all elements of class tooltip
		var target = $(this).attr("tgt");
		$('#tip'+target).css('display','none'); // hide the tip content
				//window.alert($("#tip"+target).html());
		$(this).tooltip({ // setup the main tooltips code
			bodyHandler: function() {
				return $("#tip"+target).html();
			},
			showURL: false,
			left: -75,
			top: 15
		}); // end tooltip() function
	}); // end each() function
	
    $(".open-sidebar").click(function () {
		$(".sidebar-bottom").toggle("slow");
		$(".open-sidebar").toggle("slow");
    });
	
});

//.css({ "-moz-opacity":".50", "filter":"alpha(opacity=50)", "opacity":".50" }  )
