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);

		if($(this).attr("title") != ""){ // checks if there is a title

		$(this).removeAttr("title").mouseover(function(){
				my_tooltip.css({opacity:0.9, display:"none"}).fadeIn(300);
		}).mousemove(function(kmouse){
				my_tooltip.css({left:kmouse.pageX+15, top:kmouse.pageY+15});
		}).mouseout(function(){
				my_tooltip.fadeOut(300);
		});

		}
	});
}

$(document).ready(function() {    
    //give the sidebar lists alternating background colors
    $('ul li ul').each(function() {
        $(this).children(':even').css('background-color','#ffffed');
        $(this).children(':odd').css('background-color','#ececdc');
    });
    
    $('div#footer *').removeAttr('style');
    
    // add the fancy tooltips to the blogroll links
    simple_tooltip("div#sidebar ul li.linkcat a","tooltip");
    
    // add big quotation mark for blockquotes
    $('div.post blockquote').prepend('<big>&quot;</big>');
    
});