//<!-- easing -->
$(document).ready(function(){

	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
		map.checkResize() 
	});
	$(".btn-slide").click(function(){
		$("#panel_container").slideToggle("slow");
		$(this).toggleClass("active"); return false;
		map.checkResize() 
	});
});

//<!-- noble count chars remaining -->
$(document).ready(function () {
	$('#message_box').NobleCount('#text_count',{					
		on_negative: 'go_red',					
		on_positive: 'go_green',					
		max_chars: 140
	});				
});

// auto-populate the box
$(function() {

	// grab the init text from the textarea title
	$('#message_box').example(function() {
	 return $(this).attr('title'); 
	});

});

<!-- coda slider -->
$().ready(function() {
	$('#coda-slider-1').codaSlider();
});


<!-- ajax message form -->

// prepare the form when the DOM is ready 
$(document).ready(function() { 
	// bind form using ajaxForm 
	$('#message_form').ajaxForm({ 
		// target identifies the element(s) to update with the server response 
		target: '#message_box_status', 
 
		// success identifies the function to invoke when the server response 
		// has been received; here we apply a fade-in effect to the new content 
		success: function() { 
			$('#message_box_status').fadeIn('slow'); 
		} 
	}); 
});

$(document).ready(function() { 

	var containerText = document.getElementById('drawing_message');

	if (!Modernizr.canvas) {
		containerText.innerHTML = 'Unfortunately your browser will not support the drawing software.  Please consider upgrading to or using one of these modern browsers: <a href="http://www.mozilla.com/firefox/">FIREFOX 3.0+</a>, <a href="http://www.apple.com/safari/">SAFARI 3.0+</a>, <a href="http://www.google.com/chrome">CHROME 3.0+</a>, <a href="http://www.opera.com/">OPERA 10.0+</a>, IPHONE 1.0+, or ANDROID 1.0+.';
	}

	containerText.style.visibility = 'visible';		


});

