$(document).ready(function() {
    
    // Dropdown links for main menu
    $("#linkbar").ptMenu();
    
    // for breadcrumb navigation; adds double arrow symbol to each li except for the last (the page you're on)
    $("#bread_crumbs ul li").not("li:last").append(" &raquo;"); 
    
    // Deletes and replaces input values
    $("input").not("#submit, .submit, #searchsubmit").each(function() {
	   var default_value = this.value;
	   $(this).focus(function() {
	       if(this.value == default_value) {
	           this.value = '';
	       }
	   });
	   $(this).blur(function() {
	       if(this.value == '') {
	           this.value = default_value;
	       }
	   });
	});
	
	var twitter_account = $("#twitter_account").text();
	
	$("#twitter_content").tweet({
		join_text: "auto",
		username: twitter_account,
		loading_text: "Loading latest tweet...",
		count: 1,
		auto_join_text_default: ""
	});
});


