function getArticles(id,time,idblog) { var url = 'p_m=blogview&p_a=nav_articles&p_sa='+time+'&p_id=' + id +'&p_idblog='+idblog; var opt = { method: 'get', asynchronous:true, parameters: url, on404: function (t){ alert('Error 404: location "' + t.statusText + '" was not found.'); }, // Handle other errors onFailure: function(t) { alert('Error ' + t.status + ' -- ' + t.statusText); } } new Ajax.Updater('nav_articles','index.php', opt); } function loadAolPub(){ if($('iframe_aolads')) $('iframe_aolads').src = '/service.php?p_m=blogmg&p_a=aolads&p_t='+new Date().getTime()+'&pub=0'; if($('iframe_pub')) { $('iframe_pub').src = '/service.php?p_m=blogmg&p_a=aolads&p_t='+new Date().getTime()+'&pub=1&p_id=32&p_pubtags=&p_theme=montagne'; } if($('iframe_pub') || $('iframe_aolads')) timer = setTimeout('loadAolPub()',90001000); } function unloadAolPub(){ if(($('iframe_pub') || $('iframe_aolads')) && timer) clearTimeout(timer); } function unfold(elm,max) { var height = 0; if((height = (elm.style.height.replace(new RegExp("px|pt",'ig'), '')*1) + 1) > max) return; elm.style.height = height+'px'; var t = setTimeout(function(){clearTimeout(t);return unfold(elm,max);},100); return false; } addToStart(loadAolPub); addToEnd(unloadAolPub);