");
$('#maincontent').attr("class",page_class(link));
$('#eEdit').attr('href','rte3.php?edit=1&link=' + link);
$('#eNew').attr('href','rte3.php?edit=0&link=' + link);
$('#eDelete').attr('href','delete_page.php?edit=9&link=' + link);
$('#maincontent').slideDown('slow');
});
$('.rte').click( function(e) {
var link = $(this).attr('href');
document.location.href = link;
});
/* For LOCAL links on site pages */
$('.local').on('click', function(e) {
e.preventDefault(); // stops default behaviour
$('#maincontent').slideUp('slow');
var link = $(this).attr('href');
if(link.substring(0,11)=="main.php?p=") {
link = link.substring(11); // To ensure that only page data (not MAIN surround) is loaded
}
// alert("Link="+link);
$('#maincontent').load("loadpage.php?link=" + link);
$('#maincontentjs').load("");
$('#maincontent').attr("class",page_class(link));
$('#eEdit').attr('href','rte3.php?edit=1&link=' + link);
$('#eNew').attr('href','rte3.php?edit=0&link=' + link);
$('#eDelete').attr('href','delete_page.php?edit=9&link=' + link);
$('#maincontent').slideDown('slow');
});
$('#maincontent').on('click','a[href$=".mp3"]' ,function(e) {
e.preventDefault();
var song = $(this).attr('href');
var n = song.split("/");
song = n[n.length - 1]; // Last element
var songlink = "
";
// alert ('MP3 clicked: '+songlink);
$(this).after(songlink);
});
/* ********************************* */
// make sure action works on loaded content
var topic = 1;
$(document).on('click','#switch', function(e) {
e.preventDefault();
if(topic==1) {
topic = 2;
$('.bLatest').removeClass('bActive');
$('.bRecent').addClass('bActive');
$('.tLatest').css('display','none');
$('.tRecent').css('display','block');
} else {
topic = 1;
$('.bLatest').addClass('bActive');
$('.bRecent').removeClass('bActive');
$('.tLatest').css('display','block');
$('.tRecent').css('display','none');
}
});
/* ********************************* */
});
//-->

Going supernova!
Primordial, the new expansion for award-winning strategy game Planetarium,launched on Kickstarter today and funded in under 2 hours! That means it's time to knock down some stretch goals. Support the campaign and help us unlock even more content for Primordial!
Pledge Now
Primordial adds two new exciting modules to Planetarium, Epochs and Frost Line.
Epochs extends the play time of Planetarium by starting with a solar system in its infancy, and includes the Late Heavy Bombardment to wipe and re-distribute the evolution track for a more epic experience!
Frost Line allows High and Low Evolution cards to be played within or beyond the frost line to accrue Heat or Cold tokens. These tokens earn extra points but can be melted or cooled off cards when planets move around the solar system.
New to Planetarium? You can also pick up the base game at a great, Kickstarter-only price!

Primordial will be on Kickstarter through Thursday, September 20 at 8PM EST. Don't miss out on this amazing planetary experience!
Pledge Now