Cufon.replace('.title h1, .content h2, .content h3, .sidebar h2, .blue-button, .site-menu li a, #location-button, .footer-locations li a');

var $Q = jQuery.noConflict();

$Q(document).ready(function() {
	// find all links that begin with "http://"
    $Q('a[href^="http://"],a[href^="https://"]').filter(function(){ 
		// filter out links that have the same domain name as the current page
		return this.hostname && this.hostname !== location.hostname; 
	})
        
	// add a CSS class of "external" to each external link (for styling)
	.addClass("external")
	
	// inform visitor that link will open in new window
	.attr( 'title', 'Link will open in new window')
	
	// open link in new window once clicked
	.click( function() {
			window.open(this.href);
			return false;
	});
	
	$Q('#locations').css('marginTop','-50px');
	
	$Q('#location-button').toggle(
		function() {
			$Q('#locations').animate({
				marginTop : 0
			})
		},
		function() {
			$Q('#locations').animate({
				marginTop: -50
			})
		}
	
	)
	
	$Q('.menu-nav-hidden').hide();
	
	$Q('.menu-sidebar h2').toggle(
		function() {
			$Q(this).next().slideDown();
		},
		function() {
			$Q(this).next().slideUp();
		}
	
	)
});