function initDealsMap(mapStatStr) {
	var mapStatObj = {};
     mapStatsTmp = mapStatStr.split('|');
     var i = mapStatsTmp.length;
     while (i--){
         var tmp = mapStatsTmp[i].split(';');
         mapStatObj[tmp[0]] = {};
         mapStatObj[tmp[0]].name = tmp[1];
         mapStatObj[tmp[0]].listings = tmp[2];
         mapStatObj[tmp[0]].deals = tmp[3];
     }
     mapStatObj['findarental'] = {name:'World',listings:null,deals:null};
     
     mapStatsTmp = mapStatStr = null;
     
     var $hState = $('.h-state');
     var $hRentals = $('.h-rentals');
     var $hDeals = $('.h-deals');

     if(!jQuery.browser.msie) {
         $('#map_home').hover(function mapOver(){
             $('.map-hover').stop(true).animate({top:'-18px',opacity:'1'});
         },function mapOut(){
             $('.map-hover').stop(true).animate({top:'40px',opacity:'0'});
         });
     }else{
         if(jQuery.browser.version < 7) $('#map-image').css({marginTop:0});
         $('#map-image').hover(function mapOver(){
             $('.map-hover').stop(true).animate({top:'-18px'});//,width:'177px'});
         },function mapOut(){
             $('.map-hover').stop(true).animate({top:'90px'});//,width:'1px'});
         });
     }
     //We should set these via backend in the imagemap static file
     $('area').each(function(){
         var id = $(this).attr('href').split('/');
             id = id[id.length-1].split('.')[0];
         $(this).attr('rel', id);
     });
     
     $('area').mouseover(function areaover(){
         if($(this).attr('rel') == 'find-rental') {
             if(!jQuery.browser.msie) {
                 $('.map-hover').stop(true).animate({top:'40px',opacity:'0'});
             }else{
                 $hState.text('');
                 $hRentals.text('');
                 $hDeals.text('');
             }
             return false;
         }
         var id = $(this).attr('rel');
         $hState.text(mapStatObj[id].name);
         if (mapStatObj[id].listings == 0) {
        	    $hRentals.text('');
         } else {
                $hRentals.text('Rentals: '+mapStatObj[id].listings);
         }
         if (mapStatObj[id].deals == 0) {
        	    $hDeals.text('');
         } else {
        	    $hDeals.text('Deals: '+mapStatObj[id].deals);
         }
         
     });

     $('.map-hover').stop(true).css({top:'90px'});
}