
function cancel_button(popup){Boxy.get(popup).hide();}







//DIRECTIONS
//BOSTON - 311 Huntington
function showboxy59Lin(myactuator) { mycontent='<div style="width:600px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/Map/311-Huntington-Ave.php">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "Directions: 311 Huntington Ave - Boston", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }

//BOSTON - 1110 Commnwealth
function showboxy1110Comm(myactuator) { mycontent='<div style="width:600px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/Map/1110-Commonwealth-Ave.php">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "Directions: 1110 Commonwealth Ave - Boston(Packards Corner)", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }

//ALLSTON - 1283 Commonwealth
function showboxy1283Comm(myactuator) { mycontent='<div style="width:600px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/Map/1283-Commonwealth-Ave.php">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "Directions: 1283 Commonwealth Ave - Allston", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }

//Boston - 115 St Stephen
function showboxy115St(myactuator) { mycontent='<div style="width:600px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/Map/115-St-Stephen-St.php">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "Directions: 115 St Stephen St - Allston", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }






$(document).ready(function(){
$('div#fade').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});

$('div#myslides').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});


$('div#scroll').cycle({
		fx:     'scrollDown', 
    easing: 'bounceout', 
    delay:  -2000  });




//END
});





$(document).ready(function(){

$('.boxy').boxy();




//END
});

//FEATURED
function showboxyFE1(myactuator) { mycontent='<div style="width:610px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/listinginfoModal.php?id=BOS-135-024">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "4br / 2ba - Allston St - Allston(BU West)", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }


function showboxyFE2(myactuator) { mycontent='<div style="width:610px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/listinginfoModal.php?id=BOS-001-120">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "2br / 2ba - Bay State Rd - Kenmore Sq(BU East)", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }

function showboxyFE3(myactuator) { mycontent='<div style="width:610px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/listinginfoModal.php?id=BOS-001-445">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "Studio / 1ba - Hemenway St - Boston(Northeastern Univ)", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }

function showboxyFE4(myactuator) { mycontent='<div style="width:610px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/listinginfoModal.php?id=BRO-000-272">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "2br /1ba - Winthrop Rd - Brookline(Washington Sq))", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }

function showboxyFE5(myactuator) { mycontent='<div style="width:610px;height:420px;font-size:10px;"><iframe frameborder="0" width="100%" height="100%" src="/listinginfoModal.php?id=BOS-001-002">You need a Browser which can display iframes</iframe></div>'; new Boxy( mycontent, { unloadOnHide: true, draggable: false, show: true, modal: true, title: "2br /1ba - Shawmut Ave - Boston(South End))", closeImage:"<img src=\"/assets/images/load.gif\" />", actuator: $('#'+myactuator)[0]} ); }












$(document).ready(function() {





//INQUIRY FORM
$("#inquiry_form").submit(function() {
$("#submit_inquiry").hide(); //Added to show loading info
$(".loading_inquiry").html('Submitting Form, please wait <img src="/assets/images/load.gif" align="absmiddle" width="25" />');//Added to show loading info

var str = $(this).serialize();

   $.ajax({
   type: "POST",
   url: "/assets/process/inquiry.php",
   data: str,
   success: function(msg){
    
$("#note_inquiry").ajaxComplete(function(event, request, settings){

if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
result = '<div class="notification_ok"><img src="/assets/images/checkmark.png" align="absmiddle" width="12"> Your inquiry was sent. Thank you!</div>';
$("#field_inquiry").hide();
}
else
{
result = msg;
}
$(".loading_inquiry").hide();//Added to show loading info
$("#submit_inquiry").show();//Added to show loading info

$(this).html(result);

});

}

 });

return false;

});


//END DOC READY
});





