var wnc_w = '0'; var wnc_pop = '0'; var wnc_fermer = '0'; var wnc_url_pub = 'http://media.acces-charme.com/pdv/track.php?produit=vod&idw=7&t1=free-sites-x&t2=flv&lg=fr&idn=1&paiement=cb&rebill=1&idpdv_from=0'; var wnc_url_pub2 = 'http://www.branlix.com/track.php?produit=vod&idw=7&t1=free-sites-x&t2=flv&lg=fr&ids=32&idn=1&paiement=cb&typeo=player&rebill=1&ido=&idpdv=0&idfhg=0&idv=0&iddhtml=686'; var wnc_url_stats = 'http://media.acces-charme.com/dhtml/stats.php?ido=686&ide=29654&typeo=player'; wnc_dhtml_template = ''; wnc_dhtml_template += '
'; wnc_dhtml_template += ''; wnc_dhtml_template += 'document.getElementById("wnc_back_over").style.height = document.documentElement.clientHeight+"px";'; wnc_dhtml_template += 'document.getElementById("wnc_back_over").style.width = document.documentElement.clientWidth+"px";'; wnc_dhtml_template += ''; wnc_dhtml_template += '
'; wnc_dhtml_template += '
'; wnc_dhtml_template += ''; wnc_dhtml_template += ''; wnc_dhtml_template += ''; wnc_dhtml_template += ''; wnc_dhtml_template += ''; wnc_dhtml_template += ''; wnc_dhtml_template += ''; wnc_dhtml_template += '
'; wnc_dhtml_template += '
'; wnc_dhtml_template += ''; wnc_dhtml_template += ''; wnc_dhtml_template += 'document.getElementById("wnc_dhtml").style.marginTop = (document.documentElement.clientHeight-474)/2+"px";'; wnc_dhtml_template += ''; wnc_dhtml_template += ''; /** FONCTIONS PRIVEES WANACASH **/ function wnc_ouvrir_popdhtml() { document.getElementById("wnc_back_over").style.display = "block"; document.getElementById("wnc_dhtml").style.display = "block"; wnc_rpc('wnc_dhtml', 'wnc_dhtml_stats', wnc_url_stats); return false; } function wnc_ouvrir_popdhtml_depuis_pdv(params) { wnc_rpc('wnc_dhtml', 'wnc_pdv_stats', "http://media.acces-charme.com/pdv/click.php?"+params); /* wnc_url_pub = wnc_url_pub2;*/ wnc_ouvrir_popdhtml(); } function wnc_ouvrir_popdhtml_depuis_pdv2(params, thumb, url_pop) { if (thumb != '') { var thumb_tmp = ""; if (thumb.indexOf("http://") != "-1") { thumb_tmp = thumb; } else { thumb_tmp = wnc_dhtml_url_base_thumbs+"/"+thumb; } document.getElementById("wnc_thumb_from_pdv").src = thumb_tmp; } wnc_rpc('wnc_dhtml', 'wnc_pdv_stats', "http://media.acces-charme.com/pdv/click.php?"+params); /* wnc_url_pub = wnc_url_pub2; */ /*alert("http://media.acces-charme.com/pdv/click.php?"+params); */ if (url_pop != '') { wnc_url_pub = url_pop; } wnc_ouvrir_popdhtml(); } function wnc_ouvrir_popdhtml_depuis_pdv3(params, url_pub) { wnc_rpc('wnc_dhtml', 'wnc_pdv_stats', "http://media.acces-charme.com/pdv/click.php?"+params); wnc_url_pub = url_pub; wnc_ouvrir_popdhtml(); } function wnc_ouvrir_popdhtml_depuis_pdv4(params, thumb, url_pop) { if (thumb != '') { var thumb_tmp = ""; var thumb_tmp2 = ""; thumb_tmp = wnc_dhtml_url_base_thumbs+"/"+thumb; thumb_tmp2 = wnc_dhtml_url_base_thumbs2+"/"+thumb; document.getElementById("wnc_thumb_from_pdv").src = thumb_tmp; document.getElementById("wnc_thumb_from_pdv2").src = thumb_tmp2; } wnc_rpc('wnc_dhtml', 'wnc_pdv_stats', "http://media.acces-charme.com/pdv/click.php?"+params); if (url_pop != '') { wnc_url_pub = url_pop; } wnc_ouvrir_popdhtml(); } function wnc_ouvrir_popdhtml_depuis_pdv_adwords(params, thumb, url_pop, url_pop2) { if (thumb != '') { document.getElementById("wnc_thumb_from_pdv").src = wnc_dhtml_url_base_thumbs+"/"+thumb; } wnc_rpc('wnc_dhtml', 'wnc_pdv_stats', "http://media.acces-charme.com/pdv/click.php?"+params); wnc_ouvrir_popdhtml(); if (url_pop2 != '') { wnc_popup_url(url_pop2); } } function wnc_ouvrir_popdhtml_depuis_mosaique(ido, ide, thumb) { document.getElementById("wnc_thumb_from_pdv").src = wnc_dhtml_url_base_thumbs+"/"+thumb; wnc_rpc('wnc_dhtml', 'wnc_mosaique_stats', "http://media.acces-charme.com/mosaique/click.php?ido="+ido+"&ide="+ide); wnc_ouvrir_popdhtml(); } function wnc_ouvrir_popdhtml_depuis_mosaique_sans_thumb(ido, ide) { wnc_rpc('wnc_dhtml', 'wnc_mosaique_stats', "http://media.acces-charme.com/mosaique/click.php?ido="+ido+"&ide="+ide); wnc_ouvrir_popdhtml(); } function wnc_ouvrir_popdhtml_depuis_sites(params) { wnc_rpc('wnc_dhtml', 'wnc_sites_stats', "http://media.acces-charme.com/sites/click.php?"+params); wnc_ouvrir_popdhtml(); } function wnc_fermer_popdhtml() { document.getElementById("wnc_back_over").style.display = "none"; document.getElementById("wnc_dhtml").style.display = "none"; if (wnc_pop == '1') wnc_popup(); //return false; } function wnc_fermer_popdhtml2() { document.getElementById("wnc_back_over").style.display = "none"; document.getElementById("wnc_dhtml").style.display = "none"; if (wnc_thumb_pour_dhtml != "") document.getElementById("wnc_thumb_from_pdv").src = wnc_thumb_pour_dhtml; if (wnc_pop == '1') wnc_popup(); } function wnc_popup() { var vnc_win_options = "width="+screen.availWidth+",height="+screen.availHeight+",scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"; var vnc_new_win = window.open(wnc_url_pub,"",vnc_win_options); vnc_new_win.blur(); window.self.focus(); wnc_pop = '0'; } function wnc_popup_url(pop_url) { var vnc_win_options = "width="+screen.availWidth+",height="+screen.availHeight+",scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"; var vnc_new_win = window.open(pop_url,"",vnc_win_options); vnc_new_win.blur(); window.self.focus(); } function wnc_set_cookie(c_name, value, expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie = c_name+ "=" +escape(value)+";"+((expiredays=='') ? "" : "expires="+exdate.toGMTString()+";")+"path=/;"; } function wnc_get_cookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_start + c_name.length+1; c_end = document.cookie.indexOf(";",c_start); if (c_end == -1) { c_end = document.cookie.length; } return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function wnc_rpc(where, new_id, url) { var theDiv = document.getElementById(where); if (theDiv && document.createElement) { try { var iframe = document.createElement("iframe"); iframe.setAttribute('src', url); iframe.setAttribute('id', new_id); iframe.setAttribute('width', '1'); iframe.setAttribute('height', '1'); iframe.setAttribute('frameBorder', '0'); iframe.setAttribute('scrolling', 'no'); theDiv.appendChild(iframe); } catch(exception) { // This is for IE5 PC, which does not allow dynamic creation and manipulation of an iframe object. Instead, we'll fake it up by creating our own objects. iframe = '\