﻿$(document).ready(function(){ 
    $('.gallery a').lightBox();
    
    $(".ReadNews").button({
        icons: {primary: 'ui-icon-script'}
    });
    
     $( ".WebsiteAlert" ).dialog({
        autoOpen: true,
        modal: true,
        buttons: {
            "Close": function() {
                $( this ).dialog( "close" );
            }
        }
    }); 
     
    $(".ui-dialog-titlebar").hide() 
    
    $(".FeaturedImage").hover( 
      function () { 
        var imgID = this.id.replace("FeaturedImage_","");
        $("#FeaturedImageText_"+imgID).fadeTo('fast',0.7);
      },  
      function () { 
        var imgID = this.id.replace("FeaturedImage_","");
        $("#FeaturedImageText_"+imgID).fadeOut();
      } 
    );     
    
    
    $(".Button").button();
    $(".Back").button({
        icons: {primary: 'ui-icon-arrowthick-1-w'}
    });

    $(".Button").removeClass("invisible");



    $(document).bind('contextmenu', function(e){
         return false; 
    }); 


});







