document.getElementById("hellocoton_load_829578").style.display="none"; document.getElementById("hellocoton_vote_829578").style.display="block"; document.getElementById("hellocoton_vote_829578").onclick = function() { document.getElementById("hellocoton_vote_829578").style.display = "none"; document.getElementById("hellocoton_unvote_829578").style.display = "block"; growl("add"); var script = document.createElement("script"); script.src = "http://widget.hellocoton.fr/vote.php?id=1007697"; document.body.appendChild(script); return false; } document.getElementById("hellocoton_unvote_829578").onclick = function() { document.getElementById("hellocoton_vote_829578").style.display = "block"; document.getElementById("hellocoton_unvote_829578").style.display = "none"; growl("del"); var script = document.createElement("script"); script.src = "http://widget.hellocoton.fr/unvote.php?id=1007697"; document.body.appendChild(script); return false; } function growl(mode) { var growl = document.getElementById("growl-hellocoton"); if (growl) { document.body.removeChild(growl); } var top = document.body.scrollTop; if (top <= 0) { top = document.documentElement.scrollTop; } var div = document.createElement("div"); div.style.position="absolute"; div.style.color = "white"; div.style.fontFamily = '"Lucida Grande",Arial,Helvetica,Verdana,sans-serif'; div.style.top = (top+180)+"px"; div.style.left = "50%"; div.style.marginLeft = "-105px"; div.align = "center"; div.id = "growl-hellocoton" div.style.opacity = "0"; div.style.filter = "alpha(opacity=0)"; var img = document.createElement("img"); img.width="180"; img.height="180"; img.src=hellocoton_plugin_url+"bezel.gif" img.style.position="absolute"; img.style.zIndex="998"; div.appendChild(img); if (mode == "add") { div.innerHTML += '
fermer

Merci !

http://www.hellocoton.fr
'; } else { div.innerHTML += '
fermer

Vote annulé

http://www.hellocoton.fr
'; } document.body.appendChild(div); var opac = 0; setOpacity = function() { div.style.opacity = opac; div.style.filter = (opac==1)? "":"alpha(opacity="+opac*100+")"; if (opac >= 1) { window.setTimeout(remOpacity,1000); return; } opac=opac+0.1; window.setTimeout(setOpacity,40); } setOpacity(); remOpacity = function() { div.style.opacity = opac; div.style.filter = (opac==1)? "":"alpha(opacity="+opac*100+")"; if (opac <= 0) { div.style.display="none"; return; } opac=opac-0.1; window.setTimeout(remOpacity,20); } }