$(document).ready(function() {

 //Set rounded corners on all boxes
 $('div#mainbox div.box').each(function() {
  $(this).corner({
	  tl: { radius: 10 },
	  tr: { radius: 10 },
	  bl: { radius: 10 },
	  br: { radius: 10 },
	  antiAlias: true,
	  autoPad: false
  });
 });

 $('div#nav ul > li').hover( function() {
  $(this).addClass('hover');
 }, function () {
  $(this).removeClass('hover');
 });

 //Set up onclick events for all map markers
 $('body#pageMap div#mainbox div#mapcontainer img.marker').click(function() {

  $.get("ajax/get_map_location_details.php", { id: $(this).attr('id') }, function(strHTML) {

   $('div#locationcontainer').empty();
   $('div#locationcontainer').append(strHTML);
   $('div#content').scrollTo($('div#locationcontainer'), {duration:1000});
  });
 });

 //Set up onclick events for all map markers
 $('body#pageMapFriends div#mainbox div#mapcontainer img.marker').click(function() {

  $.get("ajax/get_friends_map_location_details.php", { id: $(this).attr('id') }, function(strHTML) {

   $('div#locationcontainer').empty();
   $('div#locationcontainer').append(strHTML);
   $('div#content').scrollTo($('div#locationcontainer'), {duration:1000});
  });
 });

 //Set up onclick events for all map markers
 $('body#pageMapEducation div#mainbox div#mapcontainer img.marker').click(function() {

  $.get("ajax/get_education_map_location_details.php", { id: $(this).attr('id') }, function(strHTML) {

   $('div#locationcontainer').empty();
   $('div#locationcontainer').append(strHTML);
   $('div#content').scrollTo($('div#locationcontainer'), {duration:1000});
  });
 });

});