/**
 * Scripts to have pop ups over the event links
 */

$(function() {

    $("input[id$='txtSearchKeyword']").keypress(function(event) {
        if (event.which == 13) {
            $("input[id$='imgBtnSearch']").click();
            return false;
        }
    });



    jQuery.bt.defaults.closeWhenOthersOpen = true;

    var pop = $('div.pop');

    if (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.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
   }
   );
    }
 )
 );

    if ($('a.btnTop').length > 0)
        ($('a.btnTop').bt({}));

    if ($('input.evtSearchTxt').length > 0)
        ($('input.evtSearchTxt').bt({}));

})


