// JavaScript Document
(function($){$.fn.Zoomer=function(b){var c=$.extend({speedView:200,speedRemove:400,altAnim:false,speedTitle:400,debug:false},b);var d=$.extend(c,b);function e(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}if(d.speedView==undefined||d.speedRemove==undefined||d.altAnim==undefined||d.speedTitle==undefined){e('speedView: '+d.speedView);e('speedRemove: '+d.speedRemove);e('altAnim: '+d.altAnim);e('speedTitle: '+d.speedTitle);return false}if(d.debug==undefined){e('speedView: '+d.speedView);e('speedRemove: '+d.speedRemove);e('altAnim: '+d.altAnim);e('speedTitle: '+d.speedTitle);return false}if(typeof d.speedView!="undefined"||typeof d.speedRemove!="undefined"||typeof d.altAnim!="undefined"||typeof d.speedTitle!="undefined"){if(d.debug==true){e('speedView: '+d.speedView);e('speedRemove: '+d.speedRemove);e('altAnim: '+d.altAnim);e('speedTitle: '+d.speedTitle)}$(this).hover(function(){$(this).css({'z-index':'10'});$(this).find('img').addClass("hover").stop().animate({marginTop:'0',marginLeft:'0',top:'0',left:'0',width:'130px',height:'95px',padding:'0'},d.speedView);if(d.altAnim==true){var a=$(this).find("img").attr("alt");if(a.length!=0){$(this).prepend('<span class="title">'+a+'</span>');$('.title').animate({marginLeft:'0',marginTop:'0'},d.speedTitle).css({'z-index':'10','position':'absolute','float':'left'})}}},function(){$(this).css({'z-index':'0'});$(this).find('img').removeClass("hover").stop().animate({marginTop:'0',marginLeft:'0',top:'0',left:'0',width:'112px',height:'82px',paddingRight:'8px'},d.speedRemove);$(this).find('.title').remove()})}}})(jQuery);

$(document).ready(function(){
 	
	
		 
		$("a.infob").mouseover(function(){
				
			$("body").append('<span class="infobulles"></span>');
			var bulle=$(".infobulles:last");
			bulle.append($(this).attr("title"));
	$(this).attr("title","");
			var postop=225;
		
			var posleft=$(this).find('img').offset().left;
			bulle.css({
					  left:posleft,
					  top:postop-10,
					  opacity:0
					});
				bulle.animate({
					  top:postop,
					  opacity:0.99
					});
			});   
		$(".infob ").mouseout(function(){
							var bulle=$(".infobulles:last");	
							$(this).attr("title",bulle.text());
					bulle.animate({
					  opacity:0
					},600,"linear",function(){ $(".infobulle").remove(); });
								
								 });
		$('.infob').Zoomer({speedView:200,speedRemove:400,altAnim:false,speedTitle:400,debug:false});


});

$(function(){
		 
		$(".zonbulle").mouseover(function(){
			$("body").append('<span class="infobulle"></span>');
			var bulle=$(".infobulle:last");
			bulle.append($(this).attr("title"));
	$(this).attr("title","");
			var postop=$(this).offset().top-$(this).height() - 124;
			var posleft=$(this).offset().left+($(this).width()/2)-(bulle.width()/2);
			
			bulle.css({
					  left:posleft,
					  top:postop-10,
					  opacity:0
					});
				bulle.animate({
					  top:postop,
					  opacity:0.99
					});
			});   
		$(".zonbulle").mouseout(function(){
							var bulle=$(".infobulle:last");	
							$(this).attr("title",bulle.text());
					bulle.animate({
					  top:$(this).offset().top+10,
					  opacity:0
					},600,"linear",function(){ $(".infobulle").remove(); });
								
								 });
});



