function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);

function mailpage()
{
mail_str = "mailto:?subject=Check out the " + document.title;
mail_str += "&body=I thought you might be interested in this apartment. You can view it at, " + location.href;

location.href = mail_str;
}

$(document).ready(function() {
      
      function addMega(){
        $(this).addClass("hovering");
        }

      function removeMega(){
        $(this).removeClass("hovering");
        }

    var megaConfig = {
         interval: 0,
         sensitivity: 4,
         over: addMega,
         timeout: 0,
         out: removeMega
    };

    $("ul#mapMenu li.mega").hoverIntent(megaConfig)

	//on a primary page if there is navigation, this removes the | from the last navigation element
	$(".primaryNav li:last-child").addClass("last"); 

	$("img.emailUs").hover(
		function() {
      	  $(this).attr("src","/portals/0/skins/BurtonCarol_Skins/images/sendEmailOver.jpg");
		}, function() {
		$(this).attr("src","/portals/0/images/emailToUs.jpg");
	});
	
}); //end document

$(document).ready(function()
  {
    var loc = window.location
    $("#propertiesNav a[href=\""+loc+"\"]").addClass("current");
  });