
$(document).ready(function()
{animatedcollapse.addDiv('menu_blog','fade=1,speed=400,group=menu');animatedcollapse.addDiv('menu_apps','fade=1,speed=400,group=menu');animatedcollapse.addDiv('menu_blogroll','fade=1,speed=400,group=menu');animatedcollapse.addDiv('code1',"fade=1,speed=400,hide=1");animatedcollapse.addDiv('code2',"fade=1,speed=400,hide=1");animatedcollapse.addDiv('code3',"fade=1,speed=400,hide=1");animatedcollapse.addDiv('code4',"fade=1,speed=400,hide=1");animatedcollapse.addDiv('code5',"fade=1,speed=400,hide=1");animatedcollapse.addDiv('news1','fade=1,speed=400');animatedcollapse.addDiv('news2','fade=1,speed=400');animatedcollapse.addDiv('news3','fade=1,speed=400');animatedcollapse.addDiv('news4','fade=1,speed=400');animatedcollapse.addDiv('news5','fade=1,speed=400');animatedcollapse.addDiv('new_comment','fade=1,speed=400');animatedcollapse.addDiv('notif_commentaires','fade=1,speed=150');animatedcollapse.ontoggle=function($,divobj,state){}
animatedcollapse.init();$('#code1_sw').click(function()
{animatedcollapse.toggle('code1');});$('#code2_sw').click(function()
{animatedcollapse.toggle('code2');});$('#code3_sw').click(function()
{animatedcollapse.toggle('code3');});$('#code4_sw').click(function()
{animatedcollapse.toggle('code4');});$('#code5_sw').click(function()
{animatedcollapse.toggle('code5');});$('#news1_sw').click(function()
{animatedcollapse.toggle('news1');});$('#news2_sw').click(function()
{animatedcollapse.toggle('news2');});$('#news3_sw').click(function()
{animatedcollapse.toggle('news3');});$('#news4_sw').click(function()
{animatedcollapse.toggle('news4');});$('#news5_sw').click(function()
{animatedcollapse.toggle('news5');});$('#headline_blog').click(function()
{animatedcollapse.toggle('menu_blog');});$('#headline_apps').click(function()
{animatedcollapse.toggle('menu_apps');});$('#headline_blogroll').click(function()
{animatedcollapse.toggle('menu_blogroll');});$('#slider').bxSlider({mode:'slide',speed:1000,pause:3750,auto:true,controls:false,auto_direction:'right',next_text:'next image',prev_text:'previous image',width:720,wrapper_class:'slider_container'});if($.browser.mozilla)
{if($.browser.version<'1.9.1.0')
{$('.boite_news').css('margin-left','77px');$('.oc_article').css('position','relative');$('.oc_article').css('bottom','20px');$('.vote_box').css('position','relative');$('.vote_box').css('bottom','40px');}
if($.browser.version>'1.9.0.0'&&$.browser.version<'1.9.1.0')
{$('.boite_titre').css('position','relative');$('.boite_titre').css('top','15px');}}});function live_vote(post_id,sender_box)
{$.post('vote.php',{vote_post_id:post_id},function success(data)
{$('#vote_box'+sender_box).html(data);});}
function live_comment(p_article)
{var p_auteur=$('input[name="auteur"]').val();var p_email=$('input[name="email"]').val();var p_site=$('input[name="site"]').val();var p_message=$('#message').val();var p_captcha=$('input[name="captcha"]').val();var p_captcha_key=$('input[name="captcha_key"]').val();$.post('comment_send.php',{auteur:p_auteur,email:p_email,site:p_site,message:p_message,captcha:p_captcha,captcha_key:p_captcha_key,article:p_article},function success(data)
{if(data=="ok")
{$.post('comment_get.php',{pro:'pro'},function succes(data)
{$('#new_comment').html(data);$('#message').val('');$("#reagir").css("display","none");$("#reagir_box").css("display","none");$('#comments_box').css('display','block');$('#commentaires').css('display','block');animatedcollapse.show('new_comment');});}
else if(data=="form_error")
{$("#notif_commentaires").html("<img src='http://d.geekarlier.elseif.eu/error.gif' alt=''/>&nbsp;Attention : Veuillez remplir tous les champs obligatoires.");animatedcollapse.show('notif_commentaires');}
else if(data=="email_error")
{$("#notif_commentaires").html("<img src='http://d.geekarlier.elseif.eu/error.gif' alt=''/>&nbsp;Format d'adresse e-mail invalide !");animatedcollapse.show('notif_commentaires');}
else if(data=="captcha_error")
{$("#notif_commentaires").html("<img src='http://d.geekarlier.elseif.eu/error.gif' alt=''/>&nbsp;Petits problèmes de calcul mental ?");animatedcollapse.show('notif_commentaires');}
else if(data=="flood")
{$("#notif_commentaires").html("<img src='http://d.geekarlier.elseif.eu/error.gif' alt=''/>&nbsp;Woops, vous avez déjà envoyé ce message.");animatedcollapse.show('notif_commentaires');}
else
{alert(data);}});}
