engine.pageLoad(function() {
	var locations = {
		"home": "changes",
		"please": "insult",
		"thebnp": "thebnp",
		"moos": "projects_moo",
		"passwords": "passwords",
		"carousels": "projects_carousel",
		"norwich.bands": "norwichbands",
		"notes": "notes",
		"notes2": "notes2"
	};

	var host = window.location.hostname;

	var page = "home";

	if(typeof(engine.getVars["page"]) != "undefined") {
		page = engine.getVars["page"].replace(/[\/\\\.]/g, "");
	} else {
		for(var name in locations) {
			if(host.indexOf(name) == 0) {
				page = name;
			}
		}
	}
	
	engine.change("content", locations[page]);
});
