<!-- --><script>
$(function(){
    $(".notice, .warning, .message").
        append("<span class=\"sub\">(click to hide)</span>").
        click(function(){
            $(this).fadeOut("fast");
        })
        .css("cursor", "pointer");

    $.support.placeholder = (function(){
        var i = document.createElement('input');
        return 'placeholder' in i;
    })();

    if ($.support.placeholder)
        $("input#search").attr({
            placeholder: "Search..."
        });

    if ($("#debug").size())
        $("#wrapper").css("padding-bottom", $("#debug").height());

    $("#debug .toggle").click(function(){
        if (Cookie.get("hide_debug") == "true") {
            Cookie.destroy("hide_debug");
            $("#debug h5:first span").remove();
            $("#debug").animate({ height: "33%" });
        } else {
            Cookie.set("hide_debug", "true", 30);
            $("#debug").animate({ height: 15 });
            $("#debug ul li").each(function(){
                $("<span class=\"sub\"> | "+ $(this).html() +"</span>").appendTo("#debug h5").first();
            })
        }
    })

    $("input#slug").live("keyup", function(e){
        if (/^([a-zA-Z0-9\-\._:]*)$/.test($(this).val()))
            $(this).css("background", "")
        else
            $(this).css("background", "#ff2222")
    })

    if (Cookie.get("hide_debug") == "true") {
        $("#debug").height(15);
        $("#debug ul li").each(function(){
            $("<span class=\"sub\"> | "+ $(this).html() +"</span>").appendTo("#debug h5").first();
        })
    }
})

$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});

$(document).ready(function() {

	//When page loads...
	$(".form-content").hide(); //Hide all content
	$("ul.form-tabs li:first").addClass("active").show(); //Activate first tab
	$(".form-content:first").show(); //Show first tab content

	//On Click Event
	$("ul.form-tabs li").click(function() {

		$("ul.form-tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".form-content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});

$(document).ready(function(){			
    $('textarea.expand').elastic();
  });	



$(function () {

	var hiddendivs = $('.hidden'); //selector for all the hidden div's
	var showmore = $('a.showhidden');

	showmore.live('click', function() {
		$(this).toggleClass('on')
		$(this).prevAll('.hidden:first').slideToggle(200)
		this.blur()
		return false;
	})

});

$(document).ready(function(){
    $(".tweet-pz").tweet({
        username: "pinchzoom",
        join_text: "auto",
        avatar_size: 32,
        count: 5,
        fetch: 20,
        filter: function(t){ return ! /^@\w+/.test(t["tweet_raw_text"]); },
        auto_join_text_default: "we said,", 
        auto_join_text_ed: "we",
        auto_join_text_ing: "we were",
        auto_join_text_reply: "we replied to",
        auto_join_text_url: "we were checking out",
        loading_text: "loading tweets..."
    });
});

$(document).ready(function(){
    $(".tweet-pz3").tweet({
        username: "pinchzoom",
        join_text: "auto",
        avatar_size: 32,
        count: 3,
        fetch: 20,
        filter: function(t){ return ! /^@\w+/.test(t["tweet_raw_text"]); },
        auto_join_text_default: "we said,", 
        auto_join_text_ed: "we",
        auto_join_text_ing: "we were",
        auto_join_text_reply: "we replied to",
        auto_join_text_url: "we were checking out",
        loading_text: "loading tweets..."
    });
});

$(document).ready(function(){
    $(".tweet-fling").tweet({
        username: ["fling"],
        count: 5,
        fetch: 20,
        filter: function(t){ return ! /^@\w+/.test(t["tweet_raw_text"]); },
        loading_text: "loading tweets..."
    });
});

$(document).ready(function(){
    $(".tweet-chezza").tweet({
        username: ["cherylgledhill"],
        count: 5,
        fetch: 20,
        filter: function(t){ return ! /^@\w+/.test(t["tweet_raw_text"]); },
        loading_text: "loading tweets..."
    });
});


$(document).ready(function(){
    $(".tweet-gleddy").tweet({
        username: ["gleddy"],
        count: 5,
        fetch: 20,
        filter: function(t){ return ! /^@\w+/.test(t["tweet_raw_text"]); },
        loading_text: "loading tweets..."
    });
});

$(document).ready(function(){
    $(".tweet-ktamura").tweet({
        username: ["ktamura"],
        count: 5,
        fetch: 20,
        filter: function(t){ return ! /^@\w+/.test(t["tweet_raw_text"]); },
        loading_text: "loading tweets..."
    });
});


<!-- --></script>

