var hattrup={
	init: function(){
		$.address.value('/');
	},
	start: function(){
		$.address.value('/');
	},
	buecher: function(){
		$.address.value('hattrup/buecher/ ');
	},
	veroeffentlichungen: function(){
		$.address.value('hattrup/Veroeffentlichungen/');
	},
	curriculumVitae: function(){
		$.address.value('hattrup/curriculumVitae/ ');
	},
	downloads: function(){
		$.address.value('hattrup/downloads/ ');
	},
	aktuell: function(){
		jQuery('#aktuell').load('contents/aktuell.asp');
	}
};

var main = {
	init: function(){
		jQuery('#navigation').load('contents/navigation.htm');
		jQuery('#maincontent').load('contents/start.htm',main.aktuell);
	},
	load: function(page){
		if(page=='start.htm')
			jQuery('#maincontent').load('contents/start.htm',main.aktuell);
		else
			jQuery('#maincontent').load('contents/'+page);
	},
	edit: function(){
		//contentType: "application/x-www-form-urlencoded;charset=ISO-8859-15",
		jQuery.ajax({
        type: "GET",
        url: 'aktuell.asp',
        //contentType: "text/html;charset=ISO-8859-1",
        dataType: 'text',
        success: function(data){
						jQuery('.wymeditor').wymeditor({
							html: data,
							lang: "de",
							basePath: "/clients/hattrup/scripts/wymeditor/"
						});
					}
				});
	},
	aktuell: function(){
		jQuery('#aktuell').load('contents/aktuell.asp');
	}
}
