Impressum = function(){
//private vars
var defaults={
				  path:'/impressum/',
				  templatePath:"template/"
			     }
	
_init = function(){
	this.impressum=new Array();
	var _this = this;

	//reads the json file
	readJson = function(val){
			for(i in val.impressum){
							o=val.impressum[i];
							_o=o.description;
							_this.impressum.push(o)
					 	}
			//get the template
			var _templateImpressum=new TemplateReader();
				_templateImpressum.read(defaults.path+defaults.templatePath+"impressum.html","#impressumContainer");
	
			//update template with values
			chainParams={".desc":"{description}"};
			_templateImpressum.update(_this.impressum,"#impressumContainer", chainParams);
			
					}
					jQuery.ajax({
					url: '/impressum/json/impressum.json',
					dataType: 'json',
					success: readJson,
					async:false
					});
		}
// initialize the object, creates image and url from json	
_init();		
		
  }