 jQuery(document).ready(function(){
    jQuery("a[rel='tab_btn']").click(function(event)
		{
			event.preventDefault();
			var content_id = jQuery(this).attr('content');
			jQuery(".maincolumn_content").hide();
			jQuery("#"+content_id).show();
			jQuery("a[rel='tab_btn']").removeClass("current");
			jQuery(this).addClass("current");

		}
	);
  });


/*
Event.observe(document, 'dom:loaded', initPage);

var showMediaId="";

function initPage() {
  // news/game tab events
  if ($('btn_overview')) $('btn_overview').observe('click', btn_overviewOnClick);
  if ($('btn_images_videos')) $('btn_images_videos').observe('click', btn_mediaOnClick);
  if ($('btn_hints_tips')) $('btn_hints_tips').observe('click', btn_hintsOnClick);
  // screenshots and videos
  if ($('link_images_videos')) $('link_images_videos').observe('click', btn_mediaOnClick);
  if ($('game_images_holder')) {
    var game_images_unlocked = $A($('game_images_holder').getElementsByClassName('game_image_unlocked'));
    game_images_unlocked.each(function(gi) {
      gi.observe('click', btn_screenshotOnClick);
    });
  }
  if ($('game_videos_holder')) {
    var game_videos_unlocked = $A($('game_videos_holder').getElementsByClassName('game_video_unlocked'));
    game_videos_unlocked.each(function(vi) {
      vi.observe('click', btn_videoOnClick);
    });
  }
}

// event listeners
function btn_overviewOnClick(event) {
  Event.stop(event);
  showOverview();
}
function btn_mediaOnClick(event) {
  Event.stop(event);
  showMedia();
}
function btn_hintsOnClick(event) {
  Event.stop(event);
  showHints();
}
function btn_screenshotOnClick(event) {
  Event.stop(event);
  var el = Event.element(event);
  showMediaId = el.id;
  showMedia();
}
function btn_videoOnClick(event) {
  Event.stop(event);
  var el = Event.element(event);
  showMediaId = el.id;
  showMedia();
}

// generic tab/content display
function showContent(contentID) {
  ['overview_content', 'images_content', 'hints_content'].each(function(contentID){if ($(contentID)) $(contentID).hide()})
  $(contentID).show();
}
function setCurrentTab(tabID) {
  ['btn_overview', 'btn_images_videos', 'btn_hints_tips'].each(function(tabID){if($(tabID)) $(tabID).removeClassName('current')})
  $(tabID).addClassName('current');
}

// page actions
function showOverview() {
  showContent('overview_content');
  setCurrentTab('btn_overview');
  hideMedia();
}

function showMedia() {
  showContent('images_content');
  setCurrentTab('btn_images_videos');
  if (showMediaId!="") { // ie fix, browsers that don't persist the flash while hidden will ignore it
    var media = $('game_graphics_flash');
    if (media && media.showmedia!=undefined) {
      media.showmedia(showMediaId);
    }
  }
}

function showHints() {
  showContent('hints_content');
  setCurrentTab('btn_hints_tips');
  hideMedia();
}

// media viewer
function getShowMediaId() {
  return showMediaId;
}

function hideMedia() {
  var media = $('game_graphics_flash');
  if (media) {
    media.disable();
  }
}

function showMediaInfo(title, description) {
  var title_el = $('media_title');
  var description_el = $('media_description');
  if (title_el) title_el.update(title);
  if (description_el) description_el.update(description);
}*/