(function($) {
	$(document).ready(function() {
		// add colorbox lightboxes where needed
		$('#slideshow a[rel="future"]').colorbox({'transition':'none'});
		$('#slideshow-edit .images a.thumbnail').colorbox({'transition':'none'});
		
		// remove the second background from the 'What you need to know now' nav
		if (0 === $('#section_1_1').length) {
			$('#section_0_2').css({'background': 'none'});
		}
		
		// resize any content edit areas
		if ($('#main_centre #content_editor')) {
		   $('#main_centre #content_editor').width(450);
		}
	});
})(jQuery);

/*
function popup (winName, url)
{
  var popWidth = 590, popHeight = 500, scrolling = true;
  
  if (scrolling === true) scrolling = 'yes';
  
  var leftPos = (screen.availWidth - popWidth) / 2;
  var rightPos = (screen.availHeight - popHeight) / 2;
  
  var details = "height=" + popHeight + ",width=" + popWidth + ",left=" + leftPos + ",top=" + rightPos + ",status=no,resizable=yes,titlebar=no,toolbar=no,location=no,scrollbars=yes,directories=no";
  
  if (winName && winName.open && !winName.closed){
    winName.resizeTo(popWidth, popHeight);				//only works in IE
    winName.location = url;
    winName.focus();
  }
  else { 
    winName = window.open(url, winName, details);
    winName.focus();
  }
  return false;
}
*/
