//Gallery Vorschau
this.screenshotPreview = function(){	
		
		xOffset = 10;
		yOffset = 10;

	jQuery("a.accopreview").hover(function(e){

		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		jQuery("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>");								 

		jQuery("#screenshot")
			.css("top",(e.pageY + 5) + "px")
			.css("left",(e.pageX - 230)+ "px")
			.fadeIn("fast");
								
    },
	function(){
		this.title = this.t;	
		jQuery("#screenshot").remove();
    });	
	jQuery("a.accopreview").mousemove(function(e){
		jQuery("#screenshot")
			.css("top",(e.pageY + 5) + "px")
			.css("left",(e.pageX - 230)+ "px")
			.fadeIn("fast");
	});		
	
	jQuery("a.accopreview").click(function(e){
		jQuery("#accoimage").attr("src",this.rel); 
	});	
};

//Kontingent Vorschau
this.kontingentPreview = function(){	
		
		xOffset = 10;
		yOffset = 10;

	jQuery(".kontingent a").hover(function(e){

		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		jQuery("body").append("<p id='kontingtenwindow'><iframe src='"+ this.rel +"' frameborder='0' height='135' width='425' scrolling='no'></iframe></p>");								 

		jQuery("#kontingtenwindow")
			.css("top",(e.pageY + 5) + "px")
			.css("left",(e.pageX + 5)+ "px")
			.fadeIn("fast");
								
    },
	function(){
		this.title = this.t;	
		jQuery("#kontingtenwindow").remove();
    });	
	jQuery(".kontingent a").mousemove(function(e){
		jQuery("#kontingtenwindow")
			.css("top",(e.pageY + 5) + "px")
			.css("left",(e.pageX + 5)+ "px")
			.fadeIn("fast");
	});			
};


//Starten
jQuery(document).ready(function($){
	screenshotPreview($);
	kontingentPreview($)
});
