/**
 * @project Millenium Hotspot
 * @author Kevin Chileong lee
 */

$(document).ready(function(){
	
	if ($("body").attr("id") == "home")
	{
		//Dummy Hotspot Div erstellen
		var hotspot1 = $("<div id=\"hotspot_buecher\" class=\"hotspot1\"><img src=\"/fileadmin/images/siteelements/hotspot.gif\" /></div>");
		var hotspot2 = $("<div id=\"hotspot_autoren\" class=\"hotspot2\"><img src=\"/fileadmin/images/siteelements/hotspot.gif\" /></div>");
		var hotspot3 = $("<div id=\"hotspot_ebooks\" class=\"hotspot3\"><img src=\"/fileadmin/images/siteelements/hotspot.gif\" /></div>");
		var hotspot4 = $("<div id=\"hotspot_ueberuns\" class=\"hotspot4\"><img src=\"/fileadmin/images/siteelements/hotspot.gif\" /></div>");
		
		
		//Hotspot		
		$("#banner").append(hotspot1);
		$("#banner").append(hotspot2);
		$("#banner").append(hotspot3);
		$("#banner").append(hotspot4);
		
		//Bei Klick auf Papeterie wechseln
		/*
		$("#hotspot_papeterie").click(function(){
			$(location).attr("href", "/papeterie.html");
		});
		$("#hotspot_autoren").click(function(){
			$(location).attr("href", "/koenigsteiner-autoren.html");
		});
		$("#hotspot_ebooks").click(function(){
			$(location).attr("href", "/ebooks.html");
		});
		$("#hotspot_ueberuns").click(function(){
			$(location).attr("href", "/wir-uber-uns.html");
		});*/
		
		
		//Hotspot positionieren
		$(".hotspot1").css("position", "absolute").css("top", 130).css("left", 480);
		$(".hotspot1").addClass("pointer");
		
		$(".hotspot2").css("position", "absolute").css("top", 200).css("left", 405);
		$(".hotspot2").addClass("pointer");
		
		$(".hotspot3").css("position", "absolute").css("top", 130).css("left", 400);
		$(".hotspot3").addClass("pointer");
		
		$(".hotspot4").css("position", "absolute").css("top", 165).css("left", 690);
		$(".hotspot4").addClass("pointer");

	}
});
