function Messages(){
	this.lang = "xx";
	
	var meta = document.getElementsByTagName("meta");
	for (var i = 0; i < meta.length; i++) {
		if (meta[i].attributes["http-equiv"] && meta[i].attributes["http-equiv"].value == "Content-Language") {
			this.lang = meta[i].getAttribute("content");
		}
	}
	
	this.translations = {
		search : {
			de : "suchen",
			en : "search"
		}
	}
	
	this.getLocalString = function(key) {
		return this.translations[key] ? this.translations[key][this.lang] : null;
	}
}

var messages = new Messages();
