$(document).ready(function() {
  
// called before Cufon.replace 
 $('#elements, .elements').html(function(i,v){ 
 
  return v.replace(/\s+</g,'<').replace(/>\s+/g,'>'); // this will remove all whitespace 
  return v.replace(/[\t\n\r]+</g,'<').replace(/>[\t\n\r]+/g,'>'); //this will leave spaces and only strip newlines/tabs 
});
  
  Cufon.replace('.sub-heading, .cufon-mt, .contact-submit', {fontFamily: 'Palace Script MT'}, {hover: true});
  Cufon.replace('.right-heading, .cufon-bt', {fontFamily: 'Swis721 BT'}, {hover: true});  
});

  $(function () {
    $('#js-news').ticker();  
});

$(document).ready(function() {
$("a[rel=group]").fancybox({
        'transitionIn'    : 'none',
        'transitionOut'    : 'none',
        'titlePosition'   : 'over',
        'titleFormat'    : function(title, currentArray, currentIndex, currentOpts) {
          return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
      });
   }); 
  


