/**
 * Scripts to have pop ups over the event links
 */

jQuery(function(){

jQuery.bt.defaults.closeWhenOthersOpen = true;
 
  var pop = jQuery('div.pop');
  
  if (pop.length > 0)
  (
   
   pop.each(function() {
   var target = jQuery(this);   
   
   target.bt(
   {
    ajaxPath: ["jQuery(this).attr('href')"],
    strokeStyle: '#aec8e8',
    fill: '#fff',
    strokeWidth: 2,
    trigger:'click',
    width: 400
   }
   );
    }
   )
   )


var poplink = jQuery('span.poplink');
  
  if (poplink.length > 0)
  (   

    jQuery('span.poplink').each(function() {
  
   var target = jQuery(this);   
   
   target.bt(
   {
    ajaxPath: ["jQuery(this).attr('href')"],
    strokeStyle: '#aec8e8',
    fill: '#fff',
    strokeWidth: 2,
    trigger: 'click',
    width: 400
   }
   );
  
 }
 )
 );

if (jQuery('a.btnTop').length > 0)
  (jQuery('a.btnTop').bt({}));

if (jQuery('input.evtSearchTxt').length > 0)
  (jQuery('input.evtSearchTxt').bt({}));

}
)
