i1 = new Image; i1.src = "/images/entete-txt2.jpg"; var tmrSousMenu; function SousMenu(Cat) { switch(Cat) { case 'Mon profil': document.getElementById('SousMenu').innerHTML = '' + "Mój profil" + '  •  ' + "Moje konto" + ''; Fading1(); break; case 'Recherche': document.getElementById('SousMenu').innerHTML = "Kryterium wyszukiwania:   " + '' + "Miasto/Państwo" + '  •  ' + "Język" + '  •  ' + "Wiek" + '  •  ' + "Zainteresowania" + '  •  ' + "Słowo kluczowe" + '  •  ' + "ID" + '  |  ' + "Szukanie zaawansowane" + ''; Fading1(); break; case 'Support': document.getElementById('SousMenu').innerHTML = '' + "FAQ/Pomoc" + '  •  ' + "O nas" + '  •  ' + "Kontakt" + ''; Fading1(); break; case 'go timer': clearTimeout(tmrSousMenu); tmrSousMenu = setTimeout("CacheSousMenu()", 4000); break; case 'stop timer': clearTimeout(tmrSousMenu); break; } } function CacheSousMenu() { Fading2(); } var etapes = 12; var millisec = 15; var hexDebut = Array(242, 242, 242); var hexFin = Array(46, 147, 188); var curStep=0; var curHex=Array(); var diff=Array(); var tmrFading; for(i=0;i 1) ? commentaires : commentaire; document.getElementById("divNbComs").innerHTML = nbComs + temp; if(Page <= 0 || Page > Math.ceil(nbComs/nbComsPage)) return false; else curPage = Page; document.getElementById("loaderPost").style.visibility = "visible"; getSource("/Comments.php", "Mode=Recup&IDMembre=" + IDMembre + "&Page=" + Page + "&IDPic=" + IDPic, "ChargerCommentaires2"); } function ChargerCommentaires2(source) { document.getElementById("divComs").innerHTML = source; document.getElementById("loaderPost").style.visibility = "hidden"; } function EnvoiComment2(source) { if(source == 'ok') { setTimeout('document.fPost.envoiPost.disabled = false; document.fPost.txtPost.disabled = false; document.fPost.txtPost.value = "";', 3000); nbComs++; document.getElementById('DivLienPost').style.display='block'; document.getElementById('DivPost').style.display='none'; if(typeof(Photos) == "undefined") //profil ChargerCommentaires(IDLog, 1); else //gallerie ChargerCommentaires(IDLog, 1, Photos[curPic][0]); } else alert(source); } function SupprCommentaire(ID) { var y=document.createElement("span"); y.innerHTML="Jestes pewny ?"; if(confirm(y.innerHTML)) { document.getElementById("SupprCom"+ID).innerHTML = "przetwarzanie..."; getSource("/SupprRes.php?Commentaire", "ID=" + ID, "SupprCommentaire2"); } } function SupprCommentaire2(source) { if(source.indexOf("succes")>=0) { nbComs--; if(curPage > Math.ceil(nbComs/nbComsPage)) window.location.reload(); else { if(typeof(Photos) == "undefined") //profil ChargerCommentaires(IDLog, curPage); else //gallerie ChargerCommentaires(IDLog, curPage, Photos[curPic][0]); } } else { AlerteErr(); } } function SupprAmi(ID) { var y=document.createElement("span"); y.innerHTML="Jestes pewny ?"; if(confirm(y.innerHTML)) { window.status = "przetwarzanie..."; getSource("/SupprRes.php?Ami", "ID=" + ID, "SupprAmi2"); } } function SupprAmi2(source) { window.status = ""; if(source.indexOf("succes")>=0) { if(typeof(IDEnCours) == "undefined") window.location.reload(); else document.getElementById("ami_"+IDEnCours).style.display = "none"; } else { AlerteErr(); } } function PageUp(page, largeur, hauteur, ascenseur) { var top=(screen.height-hauteur)/2; var left=(screen.width-largeur)/2; ascenseur = (ascenseur) ? "yes" : "no"; window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",menubar=no,scrollbars=" + ascenseur); //statusbar=no } var varReportAbus = "Zglos naduzycie"; function ReportAbus(ID) { var y=document.createElement("span"); y.innerHTML="Jestes pewny ?"; if(confirm(y.innerHTML)) { document.getElementById("SupprCom"+ID).innerHTML = "przetwarzanie..."; getSource("/Comments.php", "Mode=Averto&ID=" + ID, "ReportAbus2"); } } function ReportAbus2(source) { if(source.indexOf("succes")>=0) { var v=document.createElement("span"); v.innerHTML="E-mail wysłany."; alert(v.innerHTML); ChargerCommentaires(IDLog, curPage); } else { AlerteErr(); } } function open_ext_link() { var liens = document.getElementById('blocPartenaires').getElementsByTagName('A'); for (var i = 0 ; i < liens.length ; ++i) { liens[i].onclick = function() { window.open(this.href); return false; }; liens[i].style.fontSize="11px"; } } tmrFlechePhoto=""; scrollStep=6; function FlechePhotoG() { clearTimeout(tmrFlechePhoto); document.getElementById("divPhotoAdd").scrollLeft-=scrollStep; tmrFlechePhoto=setTimeout("FlechePhotoG()",25); } function FlechePhotoD() { clearTimeout(tmrFlechePhoto); document.getElementById("divPhotoAdd").scrollLeft+=scrollStep; tmrFlechePhoto=setTimeout("FlechePhotoD()",25); } function StopFlechePhoto() { clearTimeout(tmrFlechePhoto); } function ChargeFlash(ID) { document.getElementById("zoneFlash").innerHTML = "

Copyright © " + jeux[ID][5]; getSource("/games.ph"+"p", "ID=" + jeux[ID][0], ""); } var jeux = Array(); function InitGallerie() { /* chargement ancre PPG */ try { var ancre = window.location.href.match(new RegExp('#.*$')); if(ancre[0] && ancre[0].substr(1,4)=="pic-") { ancre = ancre[0].substr(5); for(var photo in Photos) { if(Photos[photo][0] == ancre) { window.location = window.location.href.replace(new RegExp('#.*$'), '#myGallery-picture(' + parseInt(parseInt(photo)+1) + ')' ); break; } } } } catch(e) { } /* initialisation gallerie */ document.getElementById("loaderGallerie").style.display = "none"; myGallery = new gallery($("myGallery"), { timed: false, useHistoryManager: true }); HistoryManager.start(); setInterval("UpdateEtatGallerie()", 1000); } function UpdateEtatGallerie() { try { if(curPic != myGallery.currentIter) { curPic = myGallery.currentIter; nbComs = Photos[curPic][1]; document.fPost.IDPic.value = Photos[curPic][0]; if(!document.fPost.txtPost.disabled) //non-guest document.fPost.txtPost.value = ""; var temp = (nbComs > 1) ? commentaires : commentaire; document.getElementById("divNbComs").innerHTML = nbComs + temp; if(nbComs) ChargerCommentaires(IDLog, 1, Photos[curPic][0]); else document.getElementById("divComs").innerHTML = ""; } } catch(e) { return; } } function SimpleModal(URL, Largeur, Hauteur) { $.modal('", { life: 40000 }); } }