$(document).ready(function() { 
	$(".autoclear").click(function() { 
if ($(this).val() == $(this).attr('defaultValue')) $(this).val(""); 
}) 
.blur(function() { 
if ($(this).val() == "") $(this).val($(this).attr('defaultValue')); 
}); 

 $('div.entry:last').addClass('last');	
  $('div.entrya:last').addClass('last');	
  $('div.leftbar:first').addClass('first');	
   $('div.post:first').addClass('first');	
 
 $('li.widget_recent_entries ul li:last').addClass('last');	
////

$(".dropdown dd ul li a").click(function() {
    var text = $(this).html();
    $(".dropdown dt a span").html(text);
    $(".dropdown dd ul").hide();
}); 
 

$(document).bind('click', function(e) {
    var $clicked = $(e.target);
    if (! $clicked.parents().hasClass("dropdown"))
        $(".dropdown dd ul").hide();
});


$(".dropdown2 dd ul li a").click(function() {
    var text = $(this).html();
    $(".dropdown2 dt a span").html(text);
    $(".dropdown2 dd ul").hide();
}); 
 

$(document).bind('click', function(e) {
    var $clicked = $(e.target);
    if (! $clicked.parents().hasClass("dropdown2"))
        $(".dropdown2 dd ul").hide();
});





$(".dropdown dt a").click(function() {
    $(".dropdown dd ul").toggle();
});


$(".dropdown2 dt a").click(function() {
    $(".dropdown2 dd ul").toggle();
});


 


});
 
