
/**
 * (c)2007 LeP aka Lennart Pegel
 */
function dynLinks() {
	if (typeof $ == undefined) return;
	$.fn.css2 = function(x){try{this.css(x)}catch(e){}return this};
	$('#mrl').addClass('dyn');
	$( function() {
		$('#morelinks').css({marginTop:'30px'}).find('h5').css2({cursor:'pointer'}).bind('click',function() {
			var d = $('#morelinks div[@open]'),
				me = $(this).siblings('div:first');
				showme = function() {
					$(me).attr('open',1).slideDown(200);
				}
			if (d[0]==me[0]) return;
			if (d.length) {d.removeAttr('open').slideUp(200, showme)} else showme();
		}).bind('mouseover',function(){this.style.color='#999'}).bind('mouseout',function(){this.style.color=''});
		setTimeout(function(){$('#morelinks h5:first').trigger('click')},1000);
	});
}
