document.observe("dom:loaded", function() {
	
	jar = new CookieJar({ expires:3600, path: '/' });
	
	if ($$("div.class-feedback-form").length > 0){
		var input = $$("input#contentCameFrom");
		if(input.length > 0){
			input[0].value = jar.get("info").camefrom;
			if (console) console.debug(jar.get("info").camefrom);
		}
	}
	else{
		var obj = $$('div.attribute-header h1');
		if (obj.length > 0){
			jar.put('info', {"camefrom": obj[0].innerHTML});
		}
		else{
			jar.remove("info");
		}
	
		if (console) console.debug(jar.get("info"));
	}
});



