var RecaptchaOptions = { theme : 'clean' };
var Coordx = 0;
var Coordy = 0;
var __gLastPlayedTagID = '';
function swapPlayer(idTag){
if(idTag != '') {
var flashMovie = (navigator.appName.indexOf("Microsoft") != -1) ? eval('window.flashmp3player_mini_' + idTag) : eval('window.document.flashmp3player_mini_' + idTag);
if(flashMovie) {
flashMovie.GotoFrame(1);
}
}
}
function mp3PlayerOnClick(){
var args = mp3PlayerOnClick.arguments;
if(args.length == 2){
var state = args[0];
var tagID = args[1];
var playID = document.getElementById('playingID').value;
document.getElementById('playingID').value=tagID;
if(playID != ''){
var playDIV=document.getElementById(playID);
if(playDIV != undefined){
playDIV.style.display='none';
}
}
if(tagID != ''){
var div = document.getElementById(tagID);
if(div != undefined){
div.style.display ='';
}
if(state == 'PLAY'){
if (document.getElementById("div_rechOnline"+tagID)) { showContactData(tagID); }
if (document.getElementById("div_rechOffline"+tagID)) {
document.getElementById("div_rechOffline"+tagID).style.display="block";
}
if(tagID != __gLastPlayedTagID){
if (document.getElementById("div_rechOffline"+__gLastPlayedTagID)) {
document.getElementById("div_rechOffline"+__gLastPlayedTagID).style.display="none";
}
swapPlayer(__gLastPlayedTagID);
}
__gLastPlayedTagID = tagID;
} else {
if (document.getElementById("div_rechOffline"+tagID)) {
document.getElementById("div_rechOffline"+tagID).style.display="none";
}
}
}
}
}
function coord(event,id){
var rand=randomnumber=Math.floor(Math.random()*100000);
var ie=document.all && !window.opera;
if(document.layers) { Coordx=event.x; } else { Coordx=event.clientX; }
if(document.layers) { Coordy=event.y; } else { Coordy=event.clientY; }
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset;
scroll_left=(ie)? document.body.scrollLeft : window.pageXOffset;
document.getElementById("styled_popup").style.top=(scroll_top+Coordy)+"px";
document.getElementById("styled_popup").style.left=(20+Coordx)+"px";
document.getElementById("div_popBox").innerHTML='Boîte vocale: '+id;
document.getElementById("div_player").innerHTML=''+generique;
}
function annuler() {
document.recherche.reset();
}
function rechercher() {
if (document.getElementById("input_page")) {
document.getElementById("input_page").value="1";
}
document.recherche.submit();
}
function verifierEmail(adresse) {
valide1 = false;
for (var j=1; j<(adresse.length); j++) {
if (adresse.charAt(j)=='@') {
if (j<(adresse.length-4)){
for (var k=j; k<(adresse.length-2); k++) {
if (adresse.charAt(k)=='.') {
valide1=true;
}
}
}
}
}
if (valide1==false) {
alert("Veuillez saisir une adresse email valide.");
}
return valide1;
}
function verifierMessage() {
var adresse=document.getElementById("input_fieldEmail").value;
if (verifierEmail(adresse)) {
document.getElementById("formulaire").action="contact.php";
document.getElementById("formulaire").method="post";
document.getElementById("formulaire").name="contacteznous";
document.getElementById("formulaire").submit();
}
}
var position=4;
var startAnnonce=0;
function scrollUp() {
if (position==1) {
if (startAnnonce>0) {
startAnnonce--;
refreshAnnonce();
}
} else if (position==2) {
document.getElementById("div_topscroll").style.backgroundImage="url(/img/accueil/Top_tableau_coinsbleuFonce_accueil-RT.png)";
document.getElementById("div_scroll1").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuFonce_accueil-RT.png)";
document.getElementById("div_scroll2").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuPale_accueil-RT.png)";
position--;
refreshAnnonce();
} else if (position==3) {
document.getElementById("div_scroll1").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuFonce_accueil-RT.png)";
document.getElementById("div_scroll2").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuFonce_accueil-RT.png)";
document.getElementById("div_scroll3").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuPale_accueil-RT.png)";
position--;
refreshAnnonce();
} else if (position==4) {
document.getElementById("div_scroll2").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuFonce_accueil-RT.png)";
document.getElementById("div_scroll3").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuFonce_accueil-RT.png)";
document.getElementById("div_scroll4").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuPale_accueil-RT.png)";
position--;
refreshAnnonce();
} else if (position==5) {
document.getElementById("div_scroll3").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuFonce_accueil-RT.png)";
document.getElementById("div_scroll4").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuFonce_accueil-RT.png)";
document.getElementById("div_scroll5").style.backgroundImage="url(/img/accueil/Derniere_ligne_talbeau_bleuPale_accueil-RT.png)";
position--;
refreshAnnonce();
}
}
function scrollDown() {
if (position==1) {
document.getElementById("div_topscroll").style.backgroundImage="url(/img/accueil/Top_tableau_bleuPale_accueil-RT.png)";
document.getElementById("div_scroll1").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuFonce_accueil-RT.png)";
document.getElementById("div_scroll2").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuFonce_accueil-RT.png)";
position++;
refreshAnnonce();
} else if (position==2) {
document.getElementById("div_scroll1").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuPale_accueil-RT.png)";
document.getElementById("div_scroll2").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuFonce_accueil-RT.png)";
document.getElementById("div_scroll3").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuFonce_accueil-RT.png)";
position++;
refreshAnnonce();
} else if (position==3) {
document.getElementById("div_scroll2").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuPale_accueil-RT.png)";
document.getElementById("div_scroll3").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuFonce_accueil-RT.png)";
document.getElementById("div_scroll4").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuFonce_accueil-RT.png)";
position++;
refreshAnnonce();
} else if (position==4) {
document.getElementById("div_scroll3").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuPale_accueil-RT.png)";
document.getElementById("div_scroll4").style.backgroundImage="url(/img/accueil/Premiere_ligne_talbeau_bleuPale_coinsbleuFonce_accueil-RT.png)";
document.getElementById("div_scroll5").style.backgroundImage="url(/img/accueil/Derniere_ligne_talbeau_bleuFonce_accueil-RT.png)";
position++;
refreshAnnonce();
} else if (position==5) {
if ((usagers.length-5) >= startAnnonce+1) {
startAnnonce++;
refreshAnnonce();
}
}
}
function refreshAnnonce() {
var compteur=1;
for (var i=startAnnonce; i<(startAnnonce+5); i++) {
switch(usagers[i][3]) {
case "FH": sexe="Femme"; orientation="Hétérosexuelle"; break;
case "FF": sexe="Femme"; orientation="Homosexuelle"; break;
case "HF": sexe="Homme"; orientation="Hétérosexuel"; break;
case "HH": sexe="Homme"; orientation="Homosexuel"; break;
}
region=usagers[i][2];
if (compteur==position) {
rand=Math.round(Math.random()*1000000);
document.getElementById("div_play"+compteur).innerHTML='
';
document.getElementById("div_annonceTitre").innerHTML=usagers[i][0];
document.getElementById("div_annonceActive").innerHTML=usagers[i][1];
document.getElementById("div_boiteVocale").innerHTML=usagers[i][4];
document.getElementById("div_showPlayer").innerHTML='';
} else {
document.getElementById("div_play"+compteur).innerHTML='';
}
document.getElementById("div_sexe"+compteur).innerHTML='
';;
document.getElementById("div_orientation"+compteur).innerHTML=''+orientation+'';
document.getElementById("div_region"+compteur).innerHTML=''+region.toUpperCase()+'';
compteur++;
}
}
function loadPlayer(idnum) {
rand=Math.round(Math.random()*1000000);
document.getElementById("div_showPlayer").innerHTML='';
}