function bookmarksite(title, url){
  if (document.all)
  window.external.AddFavorite(url, title);
  else if (window.sidebar)
  window.sidebar.addPanel(title, url, "")
}

//Popup
/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
//Popup


function showMaps(unidade){
  $('#popup iframe').attr('src','googlemaps.php?unidade='+unidade);
	$('#popup').modal({
    overlay:80
  });
}

$(document).ready(function(){
  $('div.multipleBoxes h4').click(function (e) {
    var index = $('div.multipleBoxes h4').index(this);
    var getBox = 'div.multipleBoxes:eq('+index+') div';
    var getTit = 'div.multipleBoxes:eq('+index+') h4 span';
    if($(getBox).css('display') == 'none'){ 
      $(getBox).show('slow');
      $(getTit).show('slow');
    } else {
      $(getBox).hide('slow');
      $(getTit).hide('slow');
    }
  });
});
