(function($){  
	$.fn.LightContent = function(options) {  
		
		var ladeURL = options.url;
		var ladeTITLE = options.title;
		
		return this.each(function() {   
			// editieren des links
			$(this).attr("href", "javascript: ;");
			// setzen des EventListeners onClick
			$(this).click(function() {

				OpenLightContent(ladeURL, ladeTITLE );
				
			});
		});  
	};  
})(jQuery); 

function OpenLightContent(ladeURL, ladeTITLE )
{
if(!$("#lpAnfrage-overlay").attr("id"))
{
	// code hinzufuegen
	// Style setzen
	var overlayStyle = "position: fixed; top: 0px; left: 0px; width: 100%; height: " + $(document).height() + "px; z-index: 99; background-color: #000000;";
	
	if( $.browser.msie ) 
		overlayStyle += "filter: alpha(opacity:0);";
	else
		overlayStyle += "opacity: 0;";
	
	// Overlayer setzen
	$("body").append("<div id=\"lpAnfrage-overlay\" style=\"" + overlayStyle + "\"></div>");
		//EventListener auf lpAnfrage-overlay
		$("#lpAnfrage-overlay").dblclick(function(){
			$("#lpAnfrage-overlay").remove();
			$("#lpAnfrage-content").remove();
		});
		// Animation fadeIn
		$("#lpAnfrage-overlay").fadeTo(500, 0.6);
	
	// Style content setzen
	var contentStyle = "position: fixed; top: 50%; left: 50%; width: 50px; height: 50px; margin-left: -25px; margin-top: -25px; z-index: 100; background-color: #ffffff; border: 5px solid #636363; -moz-border-radius: 20px;";
	
	// ABFRAGE IE 6.0 muss eingebaut werden
	
	$("body").append("<div id=\"lpAnfrage-content\" style=\"" + contentStyle + "\"></div>");
	
	$.get(ladeURL, {}, function(data, textStatus) {
		$("#lpAnfrage-content").append("<div id=\"lpAnfrage-head\" style=\"display: none; -moz-border-radius-topleft: 15px; -moz-border-radius-topright: 15px;\"><span></span><h3>" + ladeTITLE + "</h3><a href=\"javascript: ;\" title=\"Schlie&szlig;en\">x</a></div>");
		$("#lpAnfrage-content").append( data );
			$("#lpAnfrage-head a").click(function(){
				$("#lpAnfrage-overlay").remove();
				$("#lpAnfrage-content").remove();
			});
		$("#lpAjax").css("display", "none");
		$("#lpAnfrage-content").animate({ width: $("#lpAjax").width(), height: $("#lpAjax").height(), marginLeft: "-" + ( $("#lpAjax").width() / 2 ), marginTop: "-" + ( $("#lpAjax").height() / 2 ) }, 500, "linear", function(){ $("#lpAjax").fadeIn(); $("#lpAnfrage-head").fadeIn(); });
	});
}
				
}

function GetNewPlayer() {
	$("#got_me_yay").html("Please wait we are fetching your details...");
	$("#got_me_yay").html("<img src=\"/sig/" + $("#get_me").val() + "/hellbringer/1/\" />");
}

function CreateChart( divid, lines ) {
	plot1 = $.jqplot(divid, lines, {
        axes:{
            xaxis:{
                renderer:$.jqplot.DateAxisRenderer,              
                rendererOptions:{
                    tickRenderer:$.jqplot.CanvasAxisTickRenderer},
                    tickOptions:{fontSize:'7pt', fontFamily:'Tahoma', angle:0, fontWeight:'normal', fontStretch:1}
            }
        },
        seriesDefaults: {
        	shadow: false,
        	color: '#ff8800',
        	markerRenderer: $.jqplot.MarkerRenderer,
        	markerOptions: {
        		show: true,
        		style: 'filledCircle',
        		size: 6,
        		color: '#ff8800'
        	}	        	
        },
        highlighter: {sizeAdjust: 7.5, opacity: 1},
			cursor: {show: false},
			grid: {
				shadow: false,
				borderWidth: 1.0
			}
        
    });
	
}

$(document).ready(function(){
	
});