$(function(){$('.bubble').each(function(){var distance=10;var time=250;var hideDelay=250;var hideDelayTimer=null;var beingShown=false;var shown=false;var trigger=$('.trigger',this);var popup=$('.popup',this).css('opacity',0);$([trigger.get(0),popup.get(0)]).mouseover(function(){if(hideDelayTimer)clearTimeout(hideDelayTimer);if(beingShown||shown){return;}else{beingShown=true;popup.css({top:-60,left:0,display:'block'}).animate({top:'-='+distance+'px',opacity:1},time,'swing',function(){beingShown=false;shown=true;});}}).mouseout(function(){if(hideDelayTimer)clearTimeout(hideDelayTimer);hideDelayTimer=setTimeout(function(){hideDelayTimer=null;popup.animate({top:'-='+distance+'px',opacity:0},time,'swing',function(){shown=false;popup.css('display','none');});},hideDelay);});});});jQuery(document).ready(function($){$(".wpfp-link").click(function(){dataBack=$(this).parent();loadingImg=$(this).prev();loadingImg.removeClass("wpfp-hideloading");loadingImg.addClass("wpfp-showloading");url=document.location.href;params=$(this).attr("href");params=params.replace("?","");$.get(url,params,function(data){loadingImg.removeClass("wpfp-showloading");loadingImg.addClass("wpfp-hideloading");dataBack.html(data);});return false;});});function checkEmail(){var email=document.getElementById('email');var filter=/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;if(!filter.test(email.value)){alert('Please provide a valid email address');email.focus
return false;}}
