var mapArray = new Array();
mapArray['franklin'] = '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=100353061632858410958.000497517e791dbbbe49d&amp;ll=43.449305,-71.641846&amp;spn=0.043618,0.072956&amp;z=13&amp;output=embed"></iframe><br /><small>View <a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=100353061632858410958.000497517e791dbbbe49d&amp;ll=43.449305,-71.641846&amp;spn=0.043618,0.072956&amp;z=13&amp;source=embed" style="color:#0000FF;text-align:left">NH Self Storage - Franklin</a> in a larger map</small>';
mapArray['gilford'] = '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr=Gilford,+10+Gilford+East+Drive,+NH+03249&amp;daddr=&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=43.049917,-71.460035&amp;sspn=0.007135,0.021136&amp;ie=UTF8&amp;ll=43.567698,-71.422537&amp;spn=0.006295,0.008688&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=d&amp;source=embed&amp;saddr=Gilford,+10+Gilford+East+Drive,+NH+03249&amp;daddr=&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=43.049917,-71.460035&amp;sspn=0.007135,0.021136&amp;ie=UTF8&amp;ll=43.567698,-71.422537&amp;spn=0.006295,0.008688" style="color:#0000FF;text-align:left">View Larger Map</a></small>';
mapArray['hooksett'] = '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr=101+River+Road,+Hooksett,+NH+03106&amp;daddr=&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=37.0625,-95.677068&amp;sspn=0.000974,0.002642&amp;ie=UTF8&amp;ll=43.048727,-71.460044&amp;spn=0.005488,0.00912&amp;z=16&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=d&amp;source=embed&amp;saddr=101+River+Road,+Hooksett,+NH+03106&amp;daddr=&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=37.0625,-95.677068&amp;sspn=0.000974,0.002642&amp;ie=UTF8&amp;ll=43.048727,-71.460044&amp;spn=0.005488,0.00912&amp;z=16" style="color:#0000FF;text-align:left">View Larger Map</a></small>';
mapArray['manchester'] = '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr=2200+Front+Street,+Manchester,+NH+03102&amp;daddr=&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=43.037937,-71.476611&amp;sspn=0.007136,0.021136&amp;ie=UTF8&amp;ll=43.037937,-71.476611&amp;spn=0.007136,0.021136&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=d&amp;source=embed&amp;saddr=2200+Front+Street,+Manchester,+NH+03102&amp;daddr=&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=43.037937,-71.476611&amp;sspn=0.007136,0.021136&amp;ie=UTF8&amp;ll=43.037937,-71.476611&amp;spn=0.007136,0.021136" style="color:#0000FF;text-align:left">View Larger Map</a></small>';
mapArray['merideth'] = '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr=16+Enterprise+Court,+Meredith,+NH+03253&amp;daddr=&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=43.037937,-71.476611&amp;sspn=0.007136,0.021136&amp;ie=UTF8&amp;ll=43.640238,-71.507956&amp;spn=0.006295,0.008699&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=d&amp;source=embed&amp;saddr=16+Enterprise+Court,+Meredith,+NH+03253&amp;daddr=&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=43.037937,-71.476611&amp;sspn=0.007136,0.021136&amp;ie=UTF8&amp;ll=43.640238,-71.507956&amp;spn=0.006295,0.008699" style="color:#0000FF;text-align:left">View Larger Map</a></small>';
mapArray['wolfeboro'] = '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr=Wolfeboro+Storage+Center+601+Center+St,+Wolfeboro,+NH&amp;daddr=&amp;hl=en&amp;geocode=&amp;gl=us&amp;mra=ls&amp;sll=43.617778,-71.171279&amp;sspn=0.01336,0.042272&amp;ie=UTF8&amp;ll=43.617778,-71.171279&amp;spn=0.01336,0.042272&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=d&amp;source=embed&amp;saddr=Wolfeboro+Storage+Center+601+Center+St,+Wolfeboro,+NH&amp;daddr=&amp;hl=en&amp;geocode=&amp;gl=us&amp;mra=ls&amp;sll=43.617778,-71.171279&amp;sspn=0.01336,0.042272&amp;ie=UTF8&amp;ll=43.617778,-71.171279&amp;spn=0.01336,0.042272" style="color:#0000FF;text-align:left">View Larger Map</a></small>';

$(function(){
    $('a.ro').mbRollover();
    
    $('#tNavDD').superfish({
        delay:       1000,                            // one second delay on mouseout 
        animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
        speed:       'fast',                          // faster animation speed 
        autoArrows:  false,                           // disable generation of arrow mark-up 
        dropShadows: false                            // disable drop shadows
    });
    
    $('.unitPopup').click(function(){
       	$('#unitPopup').mbModal({
       		overlayImg: 'images/contentPattern.png',
       		openDivID: 'unitPopup',
       		buttonClose: 'btnClose',
      		centerOffsetLeft: -2,
       		clickToClose: true
       	});
    });
    
    $('.directionsPopup').click(function(){
    	var directionsPopup = $(this).attr("rel");
       	$('#directionsPopup').mbModal({
       		overlayImg: 'images/contentPattern.png',
       		openDivID: 'directionsPopup',
       		buttonClose: 'btnClose2',
      		centerOffsetLeft: -2,
       		clickToClose: true
       	}, function(){
       		$("div#directions").html(mapArray[directionsPopup]);
       	});
    });
    
});
