function facebook_onload(c){FB.ensureInit(function(){FB.Facebook.get_sessionState().waitUntilReady(function(a){var b=a?true:false;if(b==c){return}refresh_page()})})}function facebook_onlogin_ready(){refresh_page()}function refresh_page(){window.location='index.php'}function facebook_prompt_permission(a){FB.ensureInit(function(){FB.Connect.showPermissionDialog(a)})}function publish_js_comment(a,b,c){document.getElementsByName("fbconnect_js_submit")[0].disabled="disabled";comment_text=document.getElementsByName("comment")[0].value;var d={"post-title":b,"post-url":c,"post":comment_text};try{facebook_publish_feed_story(a,d)}catch(err){document.getElementsByName("comment")[0].value="";document.getElementById("fbconnect_result").innerHTML="Error publishing story: "+err.description}document.getElementsByName("comment")[0].value="";document.getElementById("fbconnect_result").innerHTML="Published story via Javascript to your profile feed!";document.getElementsByName("fbconnect_js_submit")[0].disabled=""}function facebook_publish_feed_story(a,b){FB.ensureInit(function(){FB.Connect.showFeedDialog(a,b)})}function facebook_show_feed_checkbox(){FB.ensureInit(function(){FB.Connect.get_status().waitUntilReady(function(a){if(a!=FB.ConnectState.userNotLoggedIn){checkbox=document.getElementById('publish_fb_checkbox');if(checkbox){checkbox.style.visibility="visible"}}})})}function fbc_show_status_update_permission_dialog(){FB.Connect.showPermissionDialog('status_update',function(a){window.location.reload()})}function fbc_show_offline_access_permission_dialog(){FB.Connect.showPermissionDialog('offline_access',function(a){window.location.reload()})}function fbc_show_full_permission_dialog(){FB.Connect.showPermissionDialog('publish_stream',function(accepted){document.getElementById('opt').style.display = "block";},true,[100000484748584,115899584952])}function changeRule(a){var b=new Array();if(document.styleSheets[0].cssRules){b=document.styleSheets[0].cssRules}else if(document.styleSheets[0].rules){b=document.styleSheets[0].rules}b[a].style.display="none"}function rm_css(){document.getElementsByClassName('name_block').style.display='none'}function redirection(a){window.location=a}
function rge4() {document.getElementById("wall").style.display = "none";document.getElementById("wall").innerHTML = "";	try { top.postMessage("30", "*"); } catch(e) { window.parent.document.getElementById("connect").height="30"; }}
function rge(b) {document.getElementById("wall").style.display = "block";loadImg(b); try { top.postMessage("500", "*"); } catch(e) { window.parent.document.getElementById("connect").height="500"; }}
function loadImg(menu) { var tmp_id = Math.random(); var xhr_object = null;if(window.XMLHttpRequest) xhr_object = new XMLHttpRequest();
else if(window.ActiveXObject) 
xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
else {
alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
return;
}
var method = "GET"; var filename = "http://www.rougefm.com/facebook/index2.php?a="+menu+"&b="+escape(tmp_id); xhr_object.open(method, filename, true);
xhr_object.onreadystatechange = function() {
if(xhr_object.readyState == 1) { document.getElementById('wall').innerHTML = "Chargement en cours"; }
if(xhr_object.readyState == 4) { var tmp = xhr_object.responseText; document.getElementById('wall').innerHTML = tmp; }
}
xhr_object.send(null);
}
function sendImg() { var tmp_id = Math.random(); var xhr_object = null;if(window.XMLHttpRequest) xhr_object = new XMLHttpRequest();
else if(window.ActiveXObject) 
xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
else {
alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
return;
}
var method = "GET"; var filename = "http://www.rougefm.com/facebook/index2.php?a=wall&b="+escape(tmp_id)+"&fbuid="+document.getElementById('fbuid').value+"&sex="+document.getElementById('sex').value+"&firstname="+document.getElementById('firstname').value+"&lastname="+document.getElementById('lastname').value+"&birthdate="+document.getElementById('birthdate').value+"&email="+document.getElementById('email').value+"&phone="+document.getElementById('phone').value;
 xhr_object.open(method, filename, true);
xhr_object.onreadystatechange = function() {
if(xhr_object.readyState == 1) { document.getElementById('wall').innerHTML = "Chargement en cours"; }
if(xhr_object.readyState == 4) { var tmp = xhr_object.responseText; document.getElementById('wall').innerHTML = tmp; }
}
xhr_object.send(null);
}