
function countClick(id){$.ajax({url:"http://video-cul.org/server.php",data:"action=countIn&id="+id,cache:false,success:function(html){}});}
function disclaimer(){if(getCookie('checkAge')=="1")return;else{var body=$('body')[0];div=document.createElement("div");div.setAttribute("id","overlay");body.appendChild(div);div.className="overlay";div=document.createElement("div");div.setAttribute("id","disclaimer");div.className="disclaimer";body.appendChild(div);$("#disclaimer").html("<div class='disclaimerClose'><a href=\"javascript:closeDisclaimer();\"><img src='http://leboncoinducul.fr/img/disclaimer_close.gif' width='94' heiht='48' alt='Fermer'></a></div><div class='disclaimerOpen'><a href=\"javascript:openDisclaimer();\"><img src='http://leboncoinducul.fr/img/disclaimer_open.gif' width='94' heiht='48' alt='Entrer' title='Entrer'></a></div>");}
return false;}
function openDisclaimer(){setCookie("checkAge",1);var elm=document.getElementById("disclaimer");elm.parentNode.removeChild(elm);var elm=document.getElementById("overlay");elm.parentNode.removeChild(elm);}
function closeDisclaimer(){window.location.replace("http://rapiderencontre.com");}
function validSuppr(theForm){var chaine="Supprimer définitive ?";return(confirm(chaine));}
function updatePromo(){if(typeof(msgPromo)!='undefined'){var rand=Math.floor(Math.random()*msgPromo.length);msg=msgPromo[rand];$("#contenuMsgPromo").html(msg+"&nbsp;<img src='http://leboncoinducul.fr/img/fleche_animer.gif' width='29' height='7' alt='<' align='bottom'><span style='color:#FF0066;font-size:10px;margin:0;padding:0;'>Voir la vidéo en streaming</span></a>");timerMove=setTimeout("updatePromo()",5000);}}
function makePromo(){document.body.style.marginTop="21px";div=document.createElement("div");div.setAttribute("id","alerte");div.className="msgPromo";document.getElementsByTagName('body')[0].appendChild(div);$("#alerte").css({display:"block"});$('#alerte').html("<a href='javascript:closePromo();'><img class='msgPromoClose' src='http://leboncoinducul.fr/img/close.gif' width='14' height='14'></a><span id='contenuMsgPromo'></span>");}
function closePromo(){document.body.style.marginTop="0px";$("#alerte").css({display:"none"});}
function addToFavorites(anchor){if(window.external){window.external.AddFavorite(anchor.getAttribute('href'),anchor.getAttribute('title'));}}
function popup(url,nom,h,l,scroll,top){var PosX=(screen.availWidth-h)/2;var PosY=(screen.availHeight-l)/2;if(top==1){PosX=1;PosY=1;}
var option="resizable=yes,location=no,menubar=no,scrollbars="+scroll+",status=yes,directories=yes,top="+PosY+",left="+PosX+",width="+h+",height="+l;win=window.open(url,nom,option);if(win.window.focus)win.window.focus();}
function popUpExterne(url){window.open(url,"videocul","width=300, height=400, resizable=yes, scrollbars=yes");}
function setCookie(name,value,expires,path,domain,secure){if(expires==undefined){var expires=new Date();expires.setTime(expires.getTime()+(24*3600*1000));}
else{var expires=new Date();expires.setTime(expires.getTime()+(1*3600*1000));}
if(path==undefined)path="/";document.cookie=name+"="+escape(value)+
((expires)?"; expires="+expires.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");}
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}
else{begin+=2;}
var end=document.cookie.indexOf(";",begin);if(end==-1){end=dc.length;}
return unescape(dc.substring(begin+prefix.length,end));}
var idTimer="";var images=new Array();function animeThumb(i,thumb,id,total){if(i>=total)i=0;document.getElementById(thumb).src=images[id][i].src;idTimer=setTimeout("animeThumb("+(i+1)+", '"+thumb+"', '"+id+"', '"+total+"')",800);}
function startRot(thumb){rep="cache";total=10;var id=thumb.replace("thumb_","");if(images[id]==null){images[id]=new Array(total);for(var j=0;j<total;j++){images[id][j]=new Image();images[id][j].src="http://leboncoinducul.fr/"+rep+"/"+id+"_"+(j+1)+".jpg";}}
animeThumb(0,thumb,id,total);}
function endRot(){clearTimeout(idTimer);}
$(document).ready(function(){$('a[href*=#body]').click(function(){$('html').animate({scrollTop:0},'slow');return false;})});