var flink = 'http://jamrewards.com/index.php?flink=';
FB.init( "403a96dc3fcc7fadc8696f9a6133f7b8", "connect/xd_receiver.htm");
FB.ensureInit(
function(){
}
);
function Launchfire_FacebookConnect(){
FB.ensureInit( function(){
FB.Connect.requireSession(
function(){
window.location.href='index.php?tsrc=register';
}
);
});
}
function Launchfire_Invite(){
FB.ensureInit( function(){
FB.Connect.inviteConnectUsers();
});
}
function Launchfire_FacebookLogout(){
FB.Connect.logout(function(){
window.location.href="index.php?logout=1";
});
}
// reclaim an account from Facebook
function Launchfire_FB_Disconnect(){
Ext.get('fbc_reclaim').slideIn();
var username = Ext.get('username').dom.value;
if( username ){
Ext.Ajax.request({
url: 'siteproxy.php',
params: {
command: 'fbc_reclaim',
user: username,
verify: Ext.get('verify').dom.value
}
});
}
}
function FB_PersonalScore_1( score ){
var bline_1 = "scored {SCORE} in the Smartest Student on Campus game. Think you're smarter?
Prove it.".replace( "{SCORE}", score );
bline_1 = bline_1.replace( "{LINK}", flink );
var ddata = eval( {"flink":"http:\/\/stage.jamrewards.com\/index.php?flink="});
ddata['bossline'] = bline_1;
FB.Connect.showFeedDialog( 132198201661, ddata, null, null, null, FB.RequireConnect.require, null );
}
function FB_ShareScore_1( score, level ){
var bline_1 = "scored {SCORE} in the Smartest Student on Campus game. Think you're smarter?
Prove it.".replace( "{SCORE}", score ).replace( "{LEVEL}", level );
bline_1 = bline_1.replace( "{LINK}", flink );
var ddata = eval( {"flink":"http:\/\/stage.jamrewards.com\/index.php?flink="} );
ddata['bossline'] = bline_1;
FB.Connect.showFeedDialog( 132198201661, ddata, null, null, null, FB.RequireConnect.require, null );
}
function FB_PersonalScore_2( score ){
var bline_1 = "scored {SCORE} points in the Stack Attack game. Think you can beat that?".replace( "{SCORE}", score );
bline_1 = bline_1.replace( "{LINK}", flink );
var ddata = eval( {"flink":"http:\/\/stage.jamrewards.com\/index.php?flink=","images":[{"src":"http:\/\/stage.jamrewards.com\/templates\/visual\/images\/75x75_StackAttack.jpg","href":"http:\/\/stage.jamrewards.com\/index.php?flink="}]} );
ddata['bossline'] = bline_1;
FB.Connect.showFeedDialog( 163219491661, ddata, null, null, null, FB.RequireConnect.require, null );
}
function FB_ShareScore_2( score, level ){
var bline_1 = "scored {SCORE} points in the Stack Attack game. Think you can beat that?".replace( "{SCORE}", score ).replace( "{LEVEL}", level );
bline_1 = bline_1.replace( "{LINK}", flink );
var ddata = eval( {"flink":"http:\/\/stage.jamrewards.com\/index.php?flink=","images":[{"src":"http:\/\/stage.jamrewards.com\/templates\/visual\/images\/75x75_StackAttack.jpg","href":"http:\/\/stage.jamrewards.com\/index.php?flink="}]} );
ddata['bossline'] = bline_1;
FB.Connect.showFeedDialog( 163219491661, ddata, null, null, null, FB.RequireConnect.require, null );
}
function FB_InstantWin( prize )
{
var ddata = eval( {"flink":"http:\/\/stage.jamrewards.com\/index.php?flink="} );
ddata['prize'] = prize;
FB.Connect.showFeedDialog( 153202601661, ddata, null, null, null, FB.RequireConnect.require, null );
}
function shareSite(){
var ptitle = "Share JamRewards!";
}