   
    var siteRE = /http:\/\/[\w\.]*thehoneybrothers\.com/;
    
    function pageload(hash) {
      // hash doesn't contain the first # character.
      if(hash == 'submit') {
        return;	
      }
      if(hash) {
        // restore ajax loaded state
        $("#ajaxified-content").load(hash + " #ajaxified-content", {}, ajaxify);
      } else {
//          alert('window location:' + window.location);
        /*
          this If statement right here checks to see if they tried to access a page besides the homepage without the hash
          and if so, loads the correct page instead of defaulting to the homepage for a url like shiftb.com/news/
          (as opposed to shiftb.com/#/news)
        */
        if ( window.location.href.match(/^http:\/\/[\w\.]*thehoneybrothers\.com[\/\w]*$/) ) {
          $("#ajaxified-content").load(window.location.href+" #ajaxified-content", {}, ajaxify);
        } else {
          $("#ajaxified-content").load("/ #ajaxified-content", {}, ajaxify);
        }
      }
    }
    
    $(document).ready(function(){
      // Initialize history plugin.
      // The callback is called at once by present location.hash.
      $("#ajaxified-content").empty();
      $.historyInit(pageload);
      ajaxify();
    });

    function ajaxify() {
 			
		$('#slideshow').flash({
		    src: '/template_files/sidebar/kenburns_multi_fd.swf',
		    width: 300,
		    height: 200
		});
 			
		  $("a").not(".thickbox,.downloads").each(function() {
		    if ( this.href.match(siteRE) && this.href.indexOf('#') == -1 ) {
		      this.href = this.href.replace(siteRE, '#');
 
          $(this).click(function() {
            var hash = this.href;
            hash = hash.replace(/^.*#/, '').replace(/\/$/, '');
            // moves to a new page.
            // pageload is called at once.
            $.historyLoad(hash);
            return false;
          });
		    }
		  });
		  
	
		$('form').each(function() {
			if ( this.action.match(siteRE) ) {
			  $(this).submit(function() {
				$("#ajaxified-content").load(this.action+" #ajaxified-content", $(this).find(":input").serializeArray(), ajaxify);
			  $.historyLoad(hash);
				return false;
			  });
			}
		});
				
      	setup_tb();
    
       $('#mycarousel').jcarousel({
        vertical: true,
        scroll: 3
	    });
         

    }