﻿$(document).ready(function(){
     //** toggle the menu using the class
     //** this gets the cells of the first row of the table with the class name "tbl_rl_nav" and adds the events
     $('TABLE .tbl_rl_nav TR:first').children().mouseover(function(event){
        toggleNavMenu(this);
     }
     );
     
     $('TABLE .tbl_rl_nav TR:first').children().mouseout(function(event){
        toggleNavMenu(this);
     }
     );
     
   });



function lkbResContactMaintenance_Click()
{
    if(OpenMaintEmailPopup)
    {
        OpenMaintEmailPopup();
    }
}

function toggleNavMenu(obj)
{
    var td = $(obj);
    
    if(!td.is('.selected'))
        $(obj).toggleClass('hover');
}

function js_lnkOpenMaintRequest_Click()
{
    //** the OpenMaintEmailPopup function is located in PropertySite.js
    if(OpenMaintEmailPopup)
    {
        OpenMaintEmailPopup();
    }
}

//- We removed the popup feature and just added the facebook section to the home page. 4.21.11 
//function OpenFacebookFanPopup() {
//    $("#faceBook").show("slow");
//}

//function CloseFacebookFanPopup()
//{
//    $("#faceBook").hide("slow");
//}
