jQuery(document).ready(function(){

  // Give a link a class name like "popup size_440x380" and it'll open in a popup with those dimensions
  jQuery('a.popup').click(function(){
    dimensions = this.className.split('_')[1].split('x');
    width = dimensions[0];height = dimensions[1];
    x = Math.round((screen.width/2) - (width/2));
    y = Math.round((screen.height/2) - (height/2));
    features = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x;
    window.open(this.href, 'popup', features);
    return false;
  });

	jQuery('div#slides').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '175px' });
});