function simple_tooltip(target_items, name){
 $(target_items).each(function(i){
		$("body").append("<div class='"+name+"' id='"+name+i+"'><p>"+$(this).attr('title')+"</p></div>");
		var my_tooltip = $("#"+name+i);

        var position = $(this).position();
		$(this).removeAttr("title").focus(function(){
				my_tooltip.css({opacity:0.8, display:"none", left:position.left+325, top:position.top}).fadeIn(400);
		}).blur(function(){
				my_tooltip.fadeOut(400);
		});
	});
}


$( document ).ready(function(){
	$('.blink')
		.focus(function(){
			if($(this).attr('value') == $(this).attr('title')){
                if($(this).attr('id') == 'revenue'){
                    $(this).attr({ 'value' : '$' })
                } else if($(this).attr('id') == 'website'){
                    $(this).attr({ 'value' : 'http://' })
                } else {
                    $(this).attr({ 'value' : '' });
                }
            }
				
		})
		.blur(function(){
            if($(this).attr('id') == 'revenue' && $(this).attr('value') == '$'){
                $(this).attr({ 'value' : $(this).attr('title') });
            } else if ($(this).attr('id') == 'website' && $(this).attr('value') == 'http://'){
                $(this).attr({ 'value' : $(this).attr('title') });
            } else if($(this).attr('value') == '')
				$(this).attr({ 'value' : $(this).attr('title') });
		})

    simple_tooltip('input.tt','tooltip');

    $('.freeEval').click(function(){
        $('.btm-holder').toggle('slide');
        return false;
    })
});