");
$('#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(12); // To ensure that only page data (not MAIN surround) is loaded
}
// alert("Link="+link);
$('#maincontent').load("loadpage.php?link=" + link);
$('#maincontentjs').load("");
$('#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');
}
});
/* ********************************* */
});
//-->

Rock Scientists!
This version makes it possible for you to invite your friends to the game. For each friend who accepts the invitation, you will get 2000 NuCoins as a reward for helping us spread the word.
Also, you can now share your leaderboard positions, your game Packs and won matches. We’ll give you 500 NuCoins for these actions each day.

We've also implemented "Daily Streaks", meaning that after 5 matches you will receive a reward. This reward will increase with every match you complete that day.