 		var Kunde = new Array();
		var Projekt = new Array();
							
		var HP = {};
		HP.Windows = {};
		
		HP.Windows.ScrollerLink = new Class({	
			Implements: [Events,Options],
		
		    // Defaultoptionen wenn nicht gesetzt
		    options: {
				Offset		: 180,
				innerFrame 	: "innerFrame",
				ItemWidth	: 180
		    },
		
			

			
			//
			// 
			//
			moveLeft : function() {
				this.updatePosition(this.PictureIndex-1);
				this.fireEvent("onMoveLeft");
				//document.getElementById("kunde").innerHTML = Kunde[this.PictureIndex];
				//document.getElementById("projekt").innerHTML = Projekt[this.PictureIndex];
				document.getElementById("Rahmen").innerHTML = Projekt[this.PictureIndex][0]["Rahmen"];
				document.getElementById("Feedback").innerHTML = Projekt[this.PictureIndex][0]["Feedback"];
				if( Projekt[this.PictureIndex][0]["id"] != 0 ) {
					document.getElementById("impressionsLink").innerHTML = "<b><i><a href='#' onclick='return popup("+Projekt[this.PictureIndex][0]["id"]+");' style='color:#8A4A6F;'>Impressionen (bitte anklicken)</a></i></b>";
				} else {
					document.getElementById("impressionsLink").innerHTML = "";
				}
				if( Projekt[this.PictureIndex][0]["pdf"] != "" ) {
					document.getElementById("pdf").innerHTML = "<br /><a href='pdf/"+Projekt[this.PictureIndex][0]["pdf"]+"' target='_blank' style='color:#8A4A6F;'><i>PDF-Download</i></a>";
				} else {
					document.getElementById("pdf").innerHTML = "";
				}
			},
			
			//
			//
			//
			moveRight : function() {
				this.updatePosition(this.PictureIndex+1);
				this.fireEvent("onMoveRight");
				//document.getElementById("kunde").innerHTML = Kunde[this.PictureIndex];
				//document.getElementById("projekt").innerHTML = Projekt[this.PictureIndex];
				document.getElementById("Rahmen").innerHTML = Projekt[this.PictureIndex][0]["Rahmen"];
				document.getElementById("Feedback").innerHTML = Projekt[this.PictureIndex][0]["Feedback"];
				if( Projekt[this.PictureIndex][0]["id"] != 0 ) {
					document.getElementById("impressionsLink").innerHTML = "<b><i><a href='#' onclick='return popup("+Projekt[this.PictureIndex][0]["id"]+");' style='color:#8A4A6F;'>Impressionen (bitte anklicken)</a></i></b>";
				} else {
					document.getElementById("impressionsLink").innerHTML = "";
				}
				if( Projekt[this.PictureIndex][0]["pdf"] != "" ) {
					document.getElementById("pdf").innerHTML = "<br /><a href='pdf/"+Projekt[this.PictureIndex][0]["pdf"]+"' target='_blank' style='color:#8A4A6F;'><i>PDF-Download</i></a>";
				} else {
					document.getElementById("pdf").innerHTML = "";
				}
			},
			
			updatePosition : function(idx) {
				//var l = parseFloat(this.innerFrame.style.left);
				
				if (idx > this.getImageItems().length -3 ) {
					idx = 0;
				}
				if(idx < 0 ){
					idx = this.getImageItems().length -3;
				}
				this.SlideFx.start(
					this.options.ItemWidth * idx * -1
				);
				this.PictureIndex = idx;
			},
			
			onTweenComplete : function() {
				this.PictureIndex = parseFloat(this.innerFrame.style.left) / (-1*this.options.ItemWidth);
			},
			
			//
			// getImageItems
			//
			getImageItems : function() {
				var a = [];
				for(var i in this.innerFrame.childNodes) {
					if (this.innerFrame.childNodes[i].nodeName != "DIV") continue;
					
					a.push(this.innerFrame.childNodes[i]);
				}
				return a;
			},
			
			//
			// onDomready / Window.loaded
			//
			setup : function() {
				this.innerFrame = $(this.options.innerFrame);				
				
				var c = 1;
				var n = this.getImageItems();
				var node;
				
				for( var i=0; i < n.length; i++ ) {
					node = n[i];
					node.style.position = "absolute";
					node.style.left = ((c++ * this.options.ItemWidth) - this.options.Offset) + "px";
					node.style.top = "0px";
				}
				
				this.innerFrame.style.left = "0px";
				
				
				
				this.SlideFx = new Fx.Tween(this.innerFrame, {
					property 	: "left",
					transition 	: Fx.Transitions.Sine.easeOut
				});
				
				
				
				this.SlideFx.addEvent("complete", this.onTweenComplete.bind(this));

				this.updatePosition(this.PictureIndex);
				
			},
		
			// Konstruktor
			initialize : function(options) {
				this.PictureIndex = 0;
				window.addEvent("load", this.setup.bind(this));
			}
		});
		
		var T = new HP.Windows.ScrollerLink();

