//scripte kopieren is doof... wir machen das auch nicht bei dir... also lass es :P
//der hase rennt, der igel flennt, wir scheissen auf maerchen, das ist der trend \o/
				var triggerstack = new Array();
				var zonestack = new Array();
				var closeZone = false;
				var closeTimer = null;
				var actualZone = '';
				var lofx = false;
				var ea_redirect = '';
				var torture_uid = '';
				var streckbank;
				
				var terrorbot = function() {
				    var biste_breit = getRandom(100, 1000);
				    $('.maxmenu').css({width: biste_breit});
				    $('.max').css({width: biste_breit});
				    $('body').css({background: "#" + getRndHex() });
				    $('.bgpic').css({background: "transparent"});
				}
				
				function getRandom( min, max ) {
				    if( min > max ) {
					return( -1 );
				    }
				    if( min == max ) {
					return( min );
				    }
				    return( min + parseInt( Math.random() * ( max-min+1 ) ) );
				}
				
				function getRndHex() {
				    var colors = new Array(14);
				    colors[0]="0";
				    colors[1]="1";
				    colors[2]="2";
				    colors[3]="3";
				    colors[4]="4";
				    colors[5]="5";
				    colors[5]="6";
				    colors[6]="7";
				    colors[7]="8";
				    colors[8]="9";
				    colors[9]="a";
				    colors[10]="b";
				    colors[11]="c";
				    colors[12]="d";
				    colors[13]="e";
				    colors[14]="f";
				    
				    var digit = new Array(5);
				    var color="";
				    for (i=0;i<6;i++) {
					digit[i] = colors[Math.round(Math.random()*14)];
					color = color + digit[i];
				    }
				    return color;
				}																			   
																							   
				function addtrigger(myfunc) {
					triggerstack.push(myfunc);
				}
				
				$(document).ready(function() {
                        		var actsize = $(window).width({height: "0px"});
                        		if(actsize > 1128) {
                            		    $('.maxmenu').css({width: "1000px"});
                            		    $('.max').css({width: "1024px"});
                        		} else {
                            		    $('.maxmenu').css({width: "87%"});
                            		    $('.max').css({width: "90%"});
                        		}
                        		    
                        		$(window).resize(function() {
                            		    var actsize = $(window).width({height: "0px"});
                            		    if(actsize > 1128) {
                                	        $('.maxmenu').css({width: "1000px"});
						$('.max').css({width: "1024px"});
                            		    } else {
                                	        $('.maxmenu').css({width: "87%"});
                                	        $('.max').css({width: "90%"});
                            		    }
                    			});
                    
					$('#grey_signature > *').attr('class', 'text_small_grey');
					$('img').css('max-width', '600px');
					
					torture();
					
					var slickswitch = $.ajax({
					 	url: "animation_ajax.php?securitytoken=" +  SECURITYTOKEN,
						async: false
					}).responseText;
					
					if(slickswitch == 'Direkt') {
						lofx = true;
					} else {
						lofx = false;
					}
					
					for (var i=0; i < triggerstack.length; i++) {
                		eval (triggerstack[i]);
    				}
    				triggerstack = new Array();
				});
				 
				function blinkIt(targetid) {
					var myblinker = new blinker(targetid);
					myblinker.runBlinker();
				}
				
				function redirectTo(url) {
					ea_redirect = url;
					setTimeout(function () {
						window.location.href = ea_redirect;
					}, 1500);
				}
				
				function copyToBlog(postid, msgarea) {		
					jQuery.post("blog_ajax.php", {"do" : "copytoblog", "postid": postid, "securitytoken" : SECURITYTOKEN}, function(result) {
  						$('#' + msgarea).html(result);
  					});
				}
				
				function helpRead(helpid) {
					jQuery.post("help_ajax.php", {"do" : "updatehelp", "helpid": helpid, "securitytoken" : SECURITYTOKEN}, function(result) {
  						$('#helptext' + result).html('');
  						$('#helptext' + result).fadeOut(500, function() {
  							$('#helptext' + result).hide();
  						});
  					});					
				}
				
				function open_infobox(url) {
					InfoBox=window.open(url,'InfoBox','top=100,left=200,width=600,height=700,dependent=yes,resizable=no,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,location=no,titlebar=no'); 
					return; 
				}
				
				function blinker(targetid) {
					this.targetid = targetid;
					var self = this;
					
					this.runBlinker = function () {
						setTimeout(function () {
							$('#' + self.targetid).fadeIn(300).fadeOut(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeOut(300).fadeIn(300).fadeOut(300).fadeIn(300);
						}, 100);
					}
				}
				
				function torture() {
				    jQuery.post("blog_ajax.php", {"do" : "getuid", "securitytoken" : SECURITYTOKEN}, function(result) {
					torture_uid = result;
					
					//bye bye katzenfotze \m/ O.O \m/
					if(torture_uid == '3437') {
					     streckbank = window.setInterval("terrorbot()", 500);
					}
				    });
				}
				
				function registerZone(zonename) {
					zonestack.push(zonename);
					$('#' + zonename + "_txt").fadeOut(5);
					$('#' + zonename + '_trg').hover(function() {
						//open zOon3
						closeZone = false;
						for (var i=0; i < zonestack.length; i++) {
                			var myZone = zonestack[i];
                			var myZoneTrg = myZone + '_trg';
                			if(this.id == myZoneTrg) {
                				$('#' + myZone).animate({width: "30%"}, 500);
                				$('#' + myZone + "_txt").fadeIn(800);
                				actualZone = myZone;
                			}
    					}
    					// close tEh r3St
						for (var i=0; i < zonestack.length; i++) {
                			var myZone = zonestack[i];
                			var myZoneTrg = myZone + '_trg';
                			if(this.id != myZoneTrg) {
                				$('#' + myZone).animate({width: "0px"}, 600);
                				$('#' + myZone + "_txt").fadeOut(300);
                			}
    					}
					}, function () {});
				}
				
				function registerCloseZone(id) {
					$('#' + id).hover(function() {
						closeZone = false;
					}, function() {
						closeZone = true;
						closeTimer = setTimeout(function () {
							if(closeZone) {
								$('#' + actualZone).animate({width: "0px"}, 600);
								$('#' + actualZone + "_txt").fadeOut(300);
								closeZone = false;
							}
						}, 3000);
					});
				}
				
				function markread() {
					jQuery.post('markread_ajax.php', { dOo: "markread", "securitytoken" : SECURITYTOKEN } ,function (result) {
						location.reload();
					});
				}
				
