<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 
<!-- Footer Bottom -->
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 
/*
function getfwindowHeight() {
	var fwindowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		fwindowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			fwindowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				fwindowHeight = document.body.clientHeight;
			}
		}
	}
	return fwindowHeight;
}
function setFooterBottom() {
	if (document.getElementById) {
		var fwindowHeight = getfwindowHeight();
		if (fwindowHeight > 0) {
			var fcontentHeight = document.getElementById('body').offsetHeight;
			var footerElement = document.getElementById('footer');
			var footerHeight  = footerElement.offsetHeight;
			if (fwindowHeight - (fcontentHeight + footerHeight) >= 0) {
				footerElement.style.position = 'absolute';
				footerElement.style.top = (fwindowHeight - footerHeight) + 'px';
			}
			else {
				footerElement.style.position = 'static';
			}
		}
	}
}
window.onload = function() {
	setFooterBottom();
}
window.onresize = function() {
	setFooterBottom();
}*/
// JavaScript Document



/*
 * Image preview script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 
this.tooltip_rightPreview = function(){	
	/* CONFIG */
		
		xOffset = 100;
		yOffset = -35;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.tooltip_right").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='tooltip_right'><img src='"+ this.href +"' alt='tooltip_right preview' />"+ c +"</p>");								 
		$("#tooltip_right")
			.css("top",(e.pageY - yOffset) + "px")
			.css("left",(e.pageX + (0)) + "px")
			.fadeIn("slow");						
    },
	function(){
		this.title = this.t;	
		$("#tooltip_right").remove();
    });	
	$("a.tooltip_right").mousemove(function(e){
		$("#tooltip_right")
			.css("top",(e.pageY - yOffset) + "px")
			.css("left",(e.pageX + (0)) + "px")
	});			
};


// starting the script on page load
$(document).ready(function(){
	tooltip_rightPreview();
});






////////////////////////////////////////////////////////////////////////////////////////////////

 
this.tooltip_leftPreview = function(){	
	/* CONFIG */
		
		xOffset = 100;
		yOffset = -35;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.tooltip_left").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='tooltip_left'><img src='"+ this.href +"' alt='tooltip_left preview' />"+ c +"</p>");								 
		$("#tooltip_left")
			.css("top",(e.pageY - yOffset) + "px")
			.css("left",(e.pageX + (-250)) + "px")
			.fadeIn("slow");						
    },
	function(){
		this.title = this.t;	
		$("#tooltip_left").remove();
    });	
	$("a.tooltip_left").mousemove(function(e){
		$("#tooltip_left")
			.css("top",(e.pageY - yOffset) + "px")
			.css("left",(e.pageX + (-250)) + "px")
			
	});			
};


// starting the script on page load
$(document).ready(function(){
	tooltip_leftPreview();
});





/*
 * Url preview script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 
this.screenshotPreview = function(){	
	/* CONFIG */
		
		xOffset = 100;
		yOffset = -35;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.screenshot").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>");								 
		$("#screenshot")
			.css("top",(e.pageY - 100) + "px")
			.css("left",(e.pageX + (0)) + "px")
			.fadeIn("slow");						
    },
	function(){
		this.title = this.t;	
		$("#screenshot").remove();
    });	
	$("a.screenshot").mousemove(function(e){
		$("#screenshot")
			.css("top",(e.pageY - 100) + "px")
			.css("left",(e.pageX + (0)) + "px")
	});			
};


// starting the script on page load
$(document).ready(function(){
	screenshotPreview();
});

// Animation fuer Produkte / Saecke


			$(document).ready(function(){
			  
				//erstmal werden alle divs ausgeblendet
				$('.anzeige').hide();
				
				// event für hover auf die divs legen
				$(".animation").hover(
					// Hover In
					function() {
						$(this).next(".anzeige:first:hidden").fadeIn("slow");
					},
					
					// Hover Out
					function() {
						var element = $(this).next(".anzeige:first:visible");
						var time = 250; // Time the div is visible (in milli sec.)
						var fade_out_function = function() { element.fadeOut("fast"); } // The function used for fading out
						
						var timeout = window.setTimeout(fade_out_function, time);
						
						element.hover(
							// Hover In
							function() {
								window.clearTimeout(timeout);
							},
							
							// Hover Out
							function() {
								timeout = window.setTimeout(fade_out_function, time);
							}
						);
					}
				);
			});
