var start_active_pic= 0;
var start_last_pic = 0;

 function rechts_start_galerie(ID) {
 	start_last_pic = $('startpic:'+ID);
	$$("#galerie img").each(function(item) { 
		var effect = new Fx.Style(item, 'opacity').set(0.5);
 		item.onmouseover = function () {
 			var effect = new Fx.Style(this, 'opacity').set(1);
 		}
 		item.onmouseout = function () {
 			var id = this.getAttribute('id'); 			
			nr = id.replace(/^(.*):(.*)$/, "$2");
 			if(nr != start_active_pic) var effect = new Fx.Style(this, 'opacity').set(0.5);
 		}
 		item.onclick = function () {
 			var id = this.getAttribute('id'); 			
			nr = id.replace(/^(.*):(.*)$/, "$2");
 			start_active_pic = nr;
 			$('start_big_pic').src="files/gallery/"+nr+".1.jpg";
 			var effect = new Fx.Style(start_last_pic, 'opacity').set(0.5);
 			start_last_pic = this;
 		}
	}); 
	var effect = new Fx.Style(start_last_pic, 'opacity').set(1);
}
 function news_clicks() {
 	$$("#content .newslang").each(function(item) { item.style.display = 'none';	}); 
 	
	$$("#content .newsclick").each(function(item) { 
			item.onclick = function () {
				var id = this.getAttribute('id');
				var nr = id.replace(/^newsclick:(.*)$/, "$1");
				var click = $(id).innerHTML;
				
				if(click == 'mehr') {
					new Effect.BlindUp('kurz:'+nr,{queue:'front'});
					new Effect.BlindDown('lang:'+nr,{queue:'end'});
					$(id).innerHTML = 'weniger';
					
					setTimeout("backheight();",2000);
				} else {
					new Effect.BlindUp('lang:'+nr,{queue:'front'});
					new Effect.BlindDown('kurz:'+nr,{queue:'end'});			
					$(id).innerHTML = 'mehr';
				}
			}
	}); 
   
}
