var timergetEphemeride=null; var timerupdComments=null; var timerupdRadios=null; var timerscroll=null; var scroll=1; var load_photos=1; var pause=0; function popstream(src){ window.open ('http://flmspirit.com/stream.php?source=' + src, 'StreamingFLM', config='height=350, width=320, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no') } function popstreamwmv(src){ window.open ('http://flmspirit.com/streamwmv.php?source=' + src, 'StreamingFLM', config='height=650, width=740, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no') } function setsmiley(which) { document.formcom.comment.value += which+" "; document.formcom.comment.focus(); } function scrollphotos() { /* clearTimeout(timerscroll); ret=document.getElementById('flm_photos'); if (ret.scrollTop >= (ret.scrollHeight-1000)) if (load_photos){ load_photos=0; xajax_updPhotos(); } if (!pause) if (!(ret.scrollTop >= (ret.scrollHeight-600))) ret.scrollTop+=1; timerscroll=setTimeout('scrollphotos()', 30); */ } function afficheArticle(nb) { new Effect.BlindDown('btxt'+nb); var e=document.getElementById('togLnk'+nb); e.innerHTML='dégage !'; } function masqueArticle(nb) { new Effect.BlindUp('btxt'+nb, { queue: 'end'}); var e=document.getElementById('togLnk'+nb); e.innerHTML='suite'; } function show_photo(photo){ window.location.href='../../../photos/displayimage.php?album=random&pos=-'+photo; } function getEphemeride(){ clearTimeout(timergetEphemeride); xajax_getEphemeride(); timergetEphemeride=setTimeout('getEphemeride()', 1800000); } function updComments(){ clearTimeout(timerupdComments); xajax_updComments(); timerupdComments=setTimeout('updComments()', 90000); } function updRadios(){ clearTimeout(timerupdRadios); xajax_updRadios(); timerupdRadios=setTimeout('updRadios()', 90000); } function sendComment(){ xajax_sendComment(xajax.getFormValues('formcom')); document.formcom.comment.value=''; } // Author: Matt Kruse // WWW: http://www.mattkruse.com/ addEvent(window,"load",convertTrees); function addEvent(o,e,f){ if (o.addEventListener){ o.addEventListener(e,f,true); return true; } else if (o.attachEvent){ return o.attachEvent("on"+e,f); } else { return false; } } function setDefault(name,val) { if (typeof(window[name])=="undefined" || window[name]==null) { window[name]=val; } } function expandTree(treeId) { var ul = document.getElementById(treeId); if (ul == null) { return false; } expandCollapseList(ul,nodeOpenClass); } function collapseTree(treeId) { var ul = document.getElementById(treeId); if (ul == null) { return false; } expandCollapseList(ul,nodeClosedClass); } function expandToItem(treeId,itemId) { var ul = document.getElementById(treeId); if (ul == null) { return false; } var ret = expandCollapseList(ul,nodeOpenClass,itemId); if (ret) { var o = document.getElementById(itemId); if (o.scrollIntoView) { o.scrollIntoView(false); } } } function expandCollapseList(ul,cName,itemId) { if (!ul.childNodes || ul.childNodes.length==0) { return false; } for (var itemi=0;itemi