$.fn.flvbox = function(conf){
		$(this).each(function(){
			/*
			Klick Event
			*/
			$(this).click(function(e){
				/*
				Deklarationen
				*/
				var width = conf["width"] ? conf["width"]:600;
				var height = conf["height"] ? conf["height"]:400;
				var closeButton = conf["closeButton"] ? conf["closeButton"]:"img/close.png";
				var href = $(this).attr("href");
				
				/*
				Wenn kein href angegen
				*/
				if( $(this).attr("href") == "" ) return;
				
				/*
				Link funktionalität streichen
				*/
				e.preventDefault();
				
				/*
				Base Url Testen
				*/
				if($("head").find("base").length>0) href = "/"+href;
				
				/*
				Lightbox Html
				*/
				$("body").append(''+
					'<div id="flvbox">'+
						'<div id="background"></div>'+
						'<div id="element">'+
							'<div class="flash"></div>'+
						'</div>'+
						'<div class="close">'+
							'<img src="'+closeButton+'" alt="close" />'+
						'</div>'+
					'</div>'+
				'');
				
				//alert((conf["player"]) ? conf["player"] : "/mediaplayer.swf");
				//alert($(this).attr("href"));
				
				$("#flvbox #element .flash").flash({
					"src": "./"+(conf["player"]) ? conf["player"] : "/swf/mediaplayer.swf",
					"width": width+"px",
					"height": height+"px",
					"wmode": 'transparent',
					"flashvars" : {
						"file" : "/"+$(this).attr("href")
					}
				});
				
				/*
				Lightbox CSS
				*/
				$("#flvbox").css({
					"position":"fixed",
					"top":"0px",
					"left":"0px",
					"width":"100%",
					"height":"100%",
					"zIndex" : 4000
				});
				
				/*
				Background CSS
				*/
				$("#background").css({
					"position":"absolute",
					"top":"0px",
					"left":"0px",
					"width":"100%",
					"height":"100%",
					"background":"#000",
					"opacity":0.5
				}).hide();
				
				/*
				Element CSS
				*/
				$("#element").css({
					"position":"absolute",
					"top":"50%",
					"left":"50%",
					"zIndex":4010,
					"border":"2px solid #fff"
				});
					var marginLeft = width/2 * -1;
					var marginTop = height/2 * -1;
				$("#element").css({
					"width":width,
					"height":height,
					"marginLeft":marginLeft,
					"marginTop":marginTop
				});
				
				/*
				Close Button CSS
				*/
				$("#flvbox .close").css({
					"position":"absolute",
					"top":"50%",
					"left":"50%",
					"zIndex":4020,
					"marginLeft" : -marginLeft + 10,
					"marginTop" : marginTop -10,
					"cursor" : "pointer"
				});
				
				/*
				Close Button Event
				*/
				$("#flvbox .close").click(function(){
					$("#flvbox").remove();
					$("#element").remove();
					$("#background").fadeOut("slow",function(){
						$("#flvbox").remove();
					});
				});
				
				/*
				FadeIn
				*/
				$("#background").show();
			});
		});
	}