(function(window,undefined){

    // Prepare
    var History = window.History;// Note: We are using a capital H instead of a lower h
    if ( !History.enabled ) {
         // History.js is disabled for this browser.
         // This is because we can optionally choose to support HTML4 browsers or not.
        return false;
    }

    // Bind to StateChange Event
    History.Adapter.bind(window,'statechange',function(){// Note: We are using statechange instead of popstate
    
    var State = History.getState();// Note: We are using History.getState() instead of event.state

	if (State.url == "http://carterreagan.us/"){t_info();}
	else if (State.url == "http://carterreagan.us/info"){t_info();}
	else if (State.url == "http://carterreagan.us/work"){t_work();};

    History.log(State.data, State.title, State.url); 
    
    });

})(window);
