Element inside a website
Make a function.

function doStuff(obj, c) {
  obj.css({overflow: 'hidden', color: c}).fadeIn(400);
}


Then call it

$('#submenu').click(function () {
  doStuff($('#geregeld'), 'green');
});


(simplified example) 

Feel free to mess around: http://jsfiddle.net/rQFHt/