/**
 * Scripts to have pop ups over the event links
 */
 
$(function(){

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


  var poplink = $('span.poplink');
  if ((poplink != null) && (poplink.length > 0))
  (   

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

 var topButton = $('a.btnTop');
if ((topButton != null) && (topButton.length > 0))
  (topButton.bt({}));

  var evtSearchTxt = $('input.evtSearchTxt');
if ((evtSearchTxt != null) && (evtSearchTxt.length > 0))
  (evtSearchTxt.bt({}));

}
)
