// set a cookie called "language" with the user's language preference
// then reload the page
// a properly configured apache server can use content-negotiation to deliver the proper resource
// requires jquery.js and jquery.cookie.js

var COOKIE_NAME = 'language';
var COOKIE_OPTIONS = { path: '/', expires: 365 };

$(function() {
  $('.en-ca').click(function() {
      $.cookie(COOKIE_NAME, 'en-ca', COOKIE_OPTIONS);
      location.reload(true);
      return false;
  });
  $('.fr-ca').click(function() {
      $.cookie(COOKIE_NAME, 'fr-ca', COOKIE_OPTIONS);
      location.reload(true);
      return false;
  });
  $(".colorbox").colorbox({width:"670px",height:"520px"});

});

