code_content = '<script type="text/javascript">'+  
'FB_RequireFeatures(["XFBML"], function()'+
'{'+ 
'FB.Facebook.init("c6d39a5b5b0ef5287f548441fb994ac5", "xd_receiver.htm");'+
	'FB.Facebook.get_sessionState().waitUntilReady(function(session) {'+ 
		'var is_now_logged_into_facebook = session ? true : false;'+
		'if(is_now_logged_into_facebook != already_logged_into_facebook)'+
		'self.parent.document.location = \'http://www.gravee.com/\';'+
	'});'+
'});'+
'</script>';

document.write(code_content);