$(document).ready(function(){	
	$("a[rel=lightbox]").lightBox({
		imageLoading:images.loading,
		imageBtnPrev:images.prev,
		imageBtnNext:images.next,
		imageBtnClose:images.close,
		imageBlank:images.blank
	});	
	

	
	$("map#Prev area").click(function(){
		Prev = imgPath+$(this).attr("title")+".gif";
		$("img#Iso")
			.attr("useMap","#Map"+$(this).attr("class"))
			.attr("src",imgPath+$(".price.iso table#"+$(this).attr("title")+" tbody tr:first").attr("class")+".gif")
			.show();
		$("h4#Isohead").css("color","#707173");
		$(".price.iso table").hide();
		$(".price.iso table#"+$(this).attr("title")).show();
	}).mouseover(function(){
		$("img#Prev").attr("src",imgPath+$(this).attr("title")+".gif");
	}).mouseout(function(){
		$("img#Prev").attr("src",Prev);	
		$("tr."+$(this).attr("title")+" td").css("background","#92C899");	
	});
	
	$("map.Iso area").mouseover(function(){
		$("img#Iso").attr("src",imgPath+$(this).attr("title")+".gif");
		$("tr."+$(this).attr("title")+" td").css("background","#4DAF6C");
	}).mouseout(function(){
		$("tr."+$(this).attr("title")+" td").css("background","#92C899");	
	}).click(function(){
		if($("tr."+$(this).attr("title")+" td:first").attr("class")!="")
		window.open(
				pdfPath+$("tr."+$(this).attr("title")+" td:first").attr("class")+".pdf", 
				"Zweitfenster", 
				"scrollbars=yes"
			)
	});
	
	$("div.iso table tbody tr").mouseover(function(){
		$(this).children("td").css("background","#4DAF6C");
		if($(this).children("td.type").text()!="Werkraum")
			$("img#Iso").attr("src",imgPath+$(this).attr("class")+".gif");
		else
			$("img#Iso").attr("src",imgPath+$(this).attr("class")+"_leer.gif");
	}).mouseout(function(){
		$(this).children("td").css("background","#92C899");
	}).click(function(){
		if($("td:first",this).attr("class")!="")
		window.open(
				pdfPath+$("td:first",this).attr("class")+".pdf", 
				"Zweitfenster", 
				"scrollbars=yes"
			)
	});
});
