function getLogIn(){
	var moduleObj = new module();
	moduleObj.setServer("na");
	moduleObj.logCheck(0);
}

function Error(data){
		$('#loggedOut').show();
		$('#loggedIn').hide();
		$('a#userID').html('');
}

function logCheck( data ){	
	gameGNB.setGNB({"auth":"logout"});
	$('#loggedOut').hide();
	$('#loggedIn').show();		
	$('#loggedIn #userID').html(data.List.userID);	
}

function setFacebookUI() {
	$('#facebook').append(
		'<ul id="facebook_ul" >'
                +'<li><a href="http://twitter.com/Rumblefighter" id="twitter_bt" title="RF twitter" target="_blank">&nbsp;</a></li>'
				+'<li><a href="http://www.facebook.com/apps/application.php?id=113435768670075" id="facebook_bt" title="RF facebook" target="_blank">&nbsp;</a></li>'
                +'<li><a href="http://www.facebook.com/share.php?u=http://rf.ogplanet.com/home.html" id="share_bt" title="RF faceshare" target="_blank">&nbsp;</a></li>'
                +'<li><a href="http://www.youtube.com/rfnatube" id="youtube_bt" title="RF youtube" target="_blank">&nbsp;</a></li>'
        +'</ul>');
}

function setLeftMenu() {
	$('#leftSide').append(
			 '<div class="leftPanel">\n'
                +'<div id="astros">\n'
                    +'<a href="https://billing.ogplanet.com/main.og" id="astrosButton"  title="buy astros"></a>\n'
                +'</div>\n'
             +'</div>\n'
             +'<div class="bannerBox">\n'
                    +'<div id="support">\n'
                        +'<a href="http://rf.ogplanet.com/guide/classes.html" id="guide" title="Beginner\'s Guide">&nbsp;</a>\n'
                        +'<a href="http://nforum.ogplanet.com/rf/" id="forum" title="forum">&nbsp;</a>\n'
                        +'<a href="http://rf.ogplanet.com/support/helpdesk.html" id="help" title="Help Desk">&nbsp;</a>\n'
                    +'</div>\n'
              +'</div>');
}

function popup(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=515,height=615');");
}

function startPlayRF() 
{	
	/**
	*	Description of startLauncher function
	*
	*	serviceID	 : Identity number of each game.
	*	redirectURL	 : After checking log-in, Will go to this url.
	*	pluginInstallURL : If It dosen't have Lanuncher, Will go to this url.
	*   ${mForm.data.parameter.isfacebook} 1 -> full user, 0 -> limited user
	*/

	this.startLauncher
	(
		3,
		window.location.href, 
		"http://static.ogplanet.com/static/Launcher/ogpinst_us.exe"
	);

	if(this.g_isLauncher==0)
	{
		this.GoPluginInstallPage();
	}
}
 
function directlyDownload()
{
	this.g_pluginInstallURL = "http://static.ogplanet.com/static/Launcher/ogpinst_us.exe";
	this.GoPluginInstallPage();
}



$(function(){
	$('body').append('<script type="text/javascript" src="http://static.ogplanet.com/static/LostSaga/obt/js/launcher.js"></script><div id="launcherobj"></div>');
});