/*if (getVar("comptableagree") == true || getVar("comptable-agree") == true || getVar("commissariatauxcomptes") == true || getVar("commissairesauxcomptes") == true || getVar("association-de-gestion-agree") == true || getVar("association-de-gestion-agreee") == true || getVar("centredegestionagree") == true || getVar("centre-de-gestion-agree") == true || getVar("avocat-en-ligne") == true || getVar("avocats-en-ligne") == true || getVar("comptabilite-en-ligne.fr") == true || getVar("comptable-en-ligne.com") == true)*/

if (getVar("expert-comptable-agree.net") == true||getVar("comptable-agree.net") == true ||getVar("comptable-en-ligne.com") == true || getVar("comptabilite-en-ligne.fr") == true||getVar("commissairesauxcomptes.eu") == true||getVar("association-de-gestion-agreee.fr") == true||getVar("centre-de-gestion-agree.fr") == true||getVar("expertcomptableagree.net") == true||getVar("avocat-en-ligne.net") == true||getVar("huissier-en-ligne") == true||getVar("agent-immobilier-en-ligne") == true||getVar("notaire-en-ligne") == true||getVar("comptable-agree.fr") == true||getVar("commissariatauxcomptes.eu") == true||getVar("association-de-gestion-agree.fr") == true||getVar("centredegestionagree") == true|| getVar("avocats-en-ligne") == true||getVar("huissiers-en-ligne") == true || getVar("agents-immobiliers-en-ligne") == true||getVar("notaires-en-ligne") == true) {
var GB_ROOT_DIR = "http://" + location.host + "/greybox/";}
else {var GB_ROOT_DIR = "http://" + location.host + "/annuaire-comptable/greybox/";}

if (getVar("expert-comptable-agree.net") == true) {document.write("<link href='http://" + location.host + "/expert.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("comptable-agree.net") == true) {document.write("<link href='http://" + location.host + "/comptable.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("comptable-en-ligne.com") == true || getVar("comptabilite-en-ligne.fr") == true) {document.write("<link href='http://" + location.host + "/global.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("commissairesauxcomptes.eu") == true) {document.write("<link href='http://" + location.host + "/cac-.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("association-de-gestion-agreee.fr") == true) {document.write("<link href='http://" + location.host + "/aga-.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("centre-de-gestion-agree.fr") == true) {document.write("<link href='http://" + location.host + "/cga.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("expertcomptableagree.net") == true) {document.write("<link href='http://" + location.host + "/expert-.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("avocat-en-ligne.net") == true) {document.write("<link href='http://" + location.host + "/avocat.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("huissier-en-ligne") == true) {document.write("<link href='http://" + location.host + "/huissier.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("agent-immobilier-en-ligne") == true) {document.write("<link href='http://" + location.host + "/agent-immobilier.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("notaire-en-ligne") == true) {document.write("<link href='http://" + location.host + "/notaire.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("comptable-agree.fr") == true) {document.write("<link href='http://" + location.host + "/comptable-.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("commissariatauxcomptes.eu") == true) {document.write("<link href='http://" + location.host + "/cac.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("association-de-gestion-agree.fr")) {document.write("<link href='http://" + location.host + "/aga.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("centredegestionagree") == true) {document.write("<link href='http://" + location.host + "/cga-.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("avocats-en-ligne") == true) {document.write("<link href='http://" + location.host + "/avocat-.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("huissiers-en-ligne") == true) {document.write("<link href='http://" + location.host + "/huissier-.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("agents-immobiliers-en-ligne") == true) {document.write("<link href='http://" + location.host + "/agent-immobilier-.css' rel='StyleSheet' type='text/css'>");}
else if (getVar("notaires-en-ligne") == true) {document.write("<link href='http://" + location.host + "/notaire-.css' rel='StyleSheet' type='text/css'>");}

function enableTooltips(id,link){var links,i,h;
if(!document.getElementById || !document.getElementsByTagName) return;
AddCss();
h=document.createElement("span");
h.id="btc";
h.setAttribute("id","btc");
h.style.position="absolute";
document.getElementsByTagName("body")[0].appendChild(h);
if(id==null) links=document.getElementsByTagName("a");
else links=document.getElementById(id).getElementsByTagName("a");
for(i=0;i<links.length;i++){Prepare(links[i],link);}}


function Prepare(el,link){var tooltip,t,b,s,l;
t=el.getAttribute("title");
if(t==null || t.length==0) t="link:";
el.removeAttribute("title");
tooltip=CreateEl("span","tooltip");
s=CreateEl("span","top");
s.appendChild(document.createTextNode(t));
tooltip.appendChild(s);
b=CreateEl("b","bottom");
l=el.getAttribute("href");
if(l.length>28) l=l.substr(0,25)+"...";
if (link != 0) {b.appendChild(document.createTextNode(l));}
tooltip.appendChild(b);
setOpacity(tooltip);
el.tooltip=tooltip;
if (t !="link:") {
el.onmouseover=showTooltip;
el.onmouseout=hideTooltip;}
el.onmousemove=Locate;}

function showTooltip(e){document.getElementById("btc").appendChild(this.tooltip);
Locate(e);}

function hideTooltip(e){var d=document.getElementById("btc");
if(d.childNodes.length>0) d.removeChild(d.firstChild);}

function setOpacity(el){el.style.filter="alpha(opacity:95)";el.style.KHTMLOpacity="0.95";el.style.MozOpacity="0.95";el.style.opacity="0.95";}

function CreateEl(t,c){var x=document.createElement(t);x.className=c;x.style.display="block";return(x);}

function AddCss(){var l=CreateEl("link");
l.setAttribute("type","text/css");
l.setAttribute("rel","stylesheet");
l.setAttribute("media","screen");
document.getElementsByTagName("head")[0].appendChild(l);}

function Locate(e){var posx=0,posy=0;
if(e==null) e=window.event;
if(e.pageX || e.pageY){posx=e.pageX; posy=e.pageY;}
else if(e.clientX || e.clientY){if(document.documentElement.scrollTop){posx=e.clientX+document.documentElement.scrollLeft;
posy=e.clientY+document.documentElement.scrollTop;}
else{posx=e.clientX+document.body.scrollLeft;
posy=e.clientY+document.body.scrollTop;}}
document.getElementById("btc").style.top=(posy+10)+"px";
document.getElementById("btc").style.left=(posx-90)+"px";}

/*
function ejs_nodroit() {return(false);}
document.oncontextmenu = ejs_nodroit;
*/

function mo(o){o.className=='f'?o.className='n': o.className=o.className; }
function mx(o){o.className=='n'?o.className='f': o.className=o.className; }

function comptable(theRow, thePointerColor, theNormalBgColor){var theCells=null;
    if(thePointerColor == '' || typeof(theRow.style) == 'undefined') {return false;}
    if(typeof(document.getElementsByTagName) != 'undefined') {theCells=theRow.getElementsByTagName('td');}
    else if(typeof(theRow.cells) != 'undefined') {theCells=theRow.cells;}
    else {return false;}
    var rowCellsCnt =theCells.length;
    var currentColor=null;
    var newColor    =null;
    if(typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {currentColor=theCells[0].getAttribute('bgcolor');
        newColor    =(currentColor.toLowerCase() == thePointerColor.toLowerCase())
                     ? theNormalBgColor
                     : thePointerColor;
        for (var c=0; c < rowCellsCnt; c++) {theCells[c].setAttribute('bgcolor', newColor, 0);}
    }
    else {
        currentColor=theCells[0].style.backgroundColor;
        newColor    =(currentColor.toLowerCase() == thePointerColor.toLowerCase())
                     ? theNormalBgColor
                     : thePointerColor;
        for (var c=0; c < rowCellsCnt; c++) {theCells[c].style.backgroundColor=newColor;}}

    return true;
} // end of the 'setPointer()' function

//variable pour l'effacement du texte dans le moteur de recherche

//on enleve les erreurs eventuelles
function no_error(){return true;}
window.onerror = no_error;

function expert_comptable(page,hauteur,largeur) {window.open(page,"Popup","status=no,scrollbars=no,resizable=no,height="+hauteur+",width="+largeur+",top=0,left=0");}

function confirm_delete(page, texte) //demande une confirmation avant de supprimer un site ou une categorie
{confirmation = confirm('Etes vous sur de vouloir supprimer '+texte+' ? ');
	if(confirmation)
		window.location.replace(page);}

function message_annu_status(message){window.status = message;}

function check_id_cat() {if (document.form2submit.id_cat.value == 0) {alert('Veuillez sélectionner une catégorie !');
return false;}
else {return true;}}


function getVar(nomVariable) {var infos = document.location.href;
if (infos.indexOf(nomVariable)!=-1) {return true;}
else {return false;}}

if (getVar("map") == false && getVar("goto") == false && getVar("commentaires") == false && getVar("vote") == false) {if(window.parent.length!=0) {window.top.location.replace(document.location.href);}}

function popUp(URL) {day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=525,height=225,left=412,top=234');");}

function popUpcomptable(URL) {day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=545,height=630,left=50,top=10');");
}

var alertTimerId = 0;

function comptabilite(){if (document.getElementById("plusvite").value == "je suis presse") {alertTimerId = setTimeout('go(\''+ adresse + '\')',20000);}
else {document.getElementById("plusvite").value = "redirection immediate";
go(adresse);}}

function go(adresse) {window.location.href=adresse;}

function verifemail(elm){
  if(elm.value.search(/^[a-z][.a-z0-9_-]+@[a-z0-9_-]+\.[a-z]{2,3}$/i) == -1)
    return false;
  else
    return true;}




function cleantel(bidule) {
var traitement = bidule.value;
traitement = traitement.replace(" ", "");
traitement = traitement.replace(" ", "");
traitement = traitement.replace(" ", "");
traitement = traitement.replace(" ", "");
traitement = traitement.replace(" ", "");
traitement = traitement.replace(" ", "");
traitement = traitement.replace(" ", "");
traitement = traitement.replace("-", "");
traitement = traitement.replace("-", "");
traitement = traitement.replace("-", "");
traitement = traitement.replace("-", "");
traitement = traitement.replace("-", "");
traitement = traitement.replace("-", "");
traitement = traitement.replace(".", "");
traitement = traitement.replace(".", "");
traitement = traitement.replace(".", "");
traitement = traitement.replace(".", "");
traitement = traitement.replace(".", "");
traitement = traitement.replace(".", "");

bidule.value = traitement;}



      
function verifurl(url) 
{
  if(url.value.search(/^https?:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^\"\"])*$/) == -1)
    return false;
  else
    return true;
}



function verifcp(cp) {
  if(cp.value.search(/^[0-9]{5}$/) == -1)
    return false;
  else
    return true;}

function veriftel(tel) {
  if(tel.value.search(/^0[1-98][0-9]{8}$/) == -1)
    return false;
  else
    return true;
}

function verif(f)
{
  if(f.elements['id_cat'].value == 0  && f.elements['id_cat2'].value == 0 && f.elements['id_cat3'].value == 0 && f.elements['id_cat4'].value == 0 && f.elements['id_cat5'].value == 0){
   alert("choisir 1 categorie minimum !");
   //  f.elements['nom_proprio'].focus();
   return false; 
                }
 else if(f.elements['nom_proprio'].value == ""){
    alert("Vous n'avez pas rempli le champ Nom !"); f.elements['nom_proprio'].focus(); return false; 
		}
  else if(verifemail(f.elements['email_proprio']) == false) {
    alert("L'adresse email "+f.elements['email_proprio'].value+" n'est pas valide !"); f.elements['email_proprio'].focus(); return false; 
		}
  else if(f.elements['titre'].value == "") {
    alert("Vous n'avez pas rempli le champ Titre !"); f.elements['titre'].focus(); return false; 
		}
  else if(verifurl(f.elements['url']) == false && f.elements['urlcheck'].checked == false ) {
    alert("L'Url "+f.elements['url'].value+" n'est pas valide"); f.elements['url'].focus(); return false; 
		}
  else if(f.elements['description'].value == "") {
    alert("Vous n'avez pas rempli le champ Description !"); f.elements['description'].focus(); return false; 
		}
  else if(f.elements['adresse'].value == "") {
    alert("Vous n'avez pas rempli le champ Adresse !"); f.elements['adresse'].focus(); return false; 
		}
  else if(f.elements['ville'].value == "") {
    alert("Vous n'avez pas rempli le champ Ville !"); f.elements['ville'].focus(); return false; 
		}
  else if(verifcp(f.elements['code_postal']) == false && f.elements['quebec'].value != 2) {
    alert("Le code postal "+f.elements['code_postal'].value+" n'est pas valide"); f.elements['code_postal'].focus(); return false; 
		}
  else if(veriftel(f.elements['tel']) == false) {
    alert("Le numéro de téléphone "+f.elements['tel'].value+" n'est pas valide"); f.elements['tel'].focus(); return false; 
		}
  else if(f.elements['fax'].value == "") {
    //alert("Vous n'avez pas rempli le champ Fax !"); f.elements['fax'].focus(); return false; 
		}
  else {
    return true; }
}

function comptablecomptabilite(url,titre) {
   var contenu = "<a href=\"#\" onClick=\"addcomptable(url,titre);\"><img src=\"http://www.xpert-comptable.net/annuaire/comptabilite.gif\" height=\"15\" width=\"17\"></a>";
   document.write(contenu);
}

function addcomptable(url,titre) {
   if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {window.sidebar.addPanel(titre, url, "");
   } else if (is.ie) {window.external.AddFavorite(url, titre);
   } else {alert("Pour ajouter 'titre' à vos signets, utilisez <CTRL>+D.");
   }
   return true;}

function com(whichLayer) {

if (document.getElementById)
{var style2 = document.getElementById(whichLayer).style;
if (style2.display != "")
{$('#'+ whichLayer).fadeIn('slow');
style2.display = style2.display? "":"block";}
else
{$('#'+ whichLayer).fadeOut('slow');
style2.display = style2.display? "":"none";}}
else if (document.all) {var style2 = document.all[whichLayer].style;
if (style2.display != ""){$('#'+ whichLayer).fadeIn('slow');
style2.display = style2.display? "":"block";}
else{$('#'+ whichLayer).fadeOut('slow');
style2.display = style2.display? "":"none";}}
else if (document.layers) {var style2 = document.layers[whichLayer].style;
if (style2.display != "") {$('#'+ whichLayer).fadeIn('slow');
style2.display = style2.display? "":"block";}
else {$('#'+ whichLayer).fadeOut('slow');
style2.display = style2.display? "":"none";}}}


var z = "1";

function superr(whichLayer) {if (document.getElementById) {$('#'+ whichLayer).fadeIn('slow');
var style2 = document.getElementById(whichLayer).style;}
else if (document.all) {$('#'+ whichLayer).fadeIn('slow');
var style2 = document.all[whichLayer].style;}
else if (document.layers) {$('#'+ whichLayer).fadeIn('slow');
var style2 = document.layers[whichLayer].style;}
style2.display = "block";
style2.zIndex = z++;}

function experto(id,number) {

$('#'+ id + number).fadeIn('slow');

if (document.getElementById(id + "" + number)) 
{if (document.getElementById(id + "" + number).style.display == 'none' || document.getElementById(id + "" + number).style.visibility=='hidden') {document.getElementById(id + "" + number).style.display='block';
  document.getElementById(id + "" + number).style.visibility='visible';}
else
{document.getElementById(id + "" + number).style.display='block';
  document.getElementById(id + "" + number).style.visibility='visible';}}

for (i=1; i<=15; i++) {
if (i  != number) {expertos(id,i); }
}}


function experto_boubou(id,number) {

$('#'+ id + number).fadeIn('slow');

if (document.getElementById(id + "" + number)) 
{if (document.getElementById(id + "" + number).style.display == 'none' || document.getElementById(id + "" + number).style.visibility=='hidden') {document.getElementById(id + "" + number).style.display='block';
  document.getElementById(id + "" + number).style.visibility='visible';}
else
{document.getElementById(id + "" + number).style.display='block';
  document.getElementById(id + "" + number).style.visibility='visible';}}
  


for (i=1; i<=26; i++) {if (document.getElementById(id + "" + i)) 
if (i  != number) {expertos(id,i);}}}

function expertos(id,number) {

$('#'+ id + number).fadeOut('slow');

if (document.getElementById(id + "" + number)) 
{if (document.getElementById(id + "" + number).style.display == 'block' || document.getElementById(id + "" + number).style.visibility=='visible') {  document.getElementById(id + "" + number).style.display='none';
  document.getElementById(id + "" + number).style.visibility='hidden';}
else
{document.getElementById(id + "" + number).style.display='none';
  document.getElementById(id + "" + number).style.visibility='hidden';}}}

function lg(bob,bob1) {document.write('<a h' + 'r ' + 'e' + 'f="' + bob + '"><i' + 'mg sr' + 'c="' + bob1 + '"></a> ');}

if ( document.all ) {

function blink_show() {blink_tags  = document.all.tags('blink');
blink_count = blink_tags.length;
for (i = 0; i < blink_count; i++) {blink_tags[i].style.visibility = 'visible';}
window.setTimeout( 'blink_hide()', 700 );}
	
function blink_hide() {blink_tags  = document.all.tags('blink');
blink_count = blink_tags.length;
for (i = 0; i < blink_count; i++) {blink_tags[i].style.visibility = 'hidden';}
window.setTimeout( 'blink_show()', 250 );}
window.onload = blink_show;

}

function roolov(bouton,number,tot) {if (document.getElementById(tot)) {document.getElementById(tot).style.backgroundImage = 'url(../' + bouton + '.png)';
document.getElementById(tot).src = "../" + bouton + "_" + number + ".png";}}

/*function expertisescomptables(argument) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="260" height="400" id="experts-comptables" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://www.xpert-comptable.fr/annuaire-comptable/experts-comptables.swf?xml=http://www.xpert-comptable.fr/annuaire-comptable/global.xml"><param name="quality" value="high"><embed src="http://www.xpert-comptable.fr/annuaire-comptable/experts-comptables.swf?xml=http://www.xpert-comptable.fr/annuaire-comptable/global.xml" quality="high" width="260" height="400" name="experts-comptables" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></td><td rowspan="2" width="197"><a href=""><img src="http://www.xpert-comptable.fr/annuaire-comptable/bouton1global.gif" border="0" style="margin-bottom:3px;"></a><br><a href=""><img src="http://www.xpert-comptable.fr/annuaire-comptable/bouton2global.gif" border="0" style="margin-bottom:3px;"></a><br><a href=""><img src="http://www.xpert-comptable.fr/annuaire-comptable/bouton3global.gif" border="0" style="margin-bottom:3px;"></a><br><a href=""><img src="http://www.xpert-comptable.fr/annuaire-comptable/bouton4global.gif" border="0"></a></td>');}*/

/* image rool over du bas
comptabilite_en_ligne_fr= new Image( );
centre_de_gestion_agree_net= new Image( );
association_de_gestion_agree_net= new Image( );
comptable_en_ligne_net= new Image( );
expert_comptable_en_ligne_net= new Image( );
commissariat_aux_comptes_net= new Image( );
comptable_agree_net= new Image( );
centre_de_gestion_agree_fr= new Image( );
expert_comptable_agree_net= new Image( );
commissariatauxcomptes_eu= new Image( );
association_de_gestion_agree_fr= new Image( );
moteur_comptable_fr = new Image( );
moteur_recherche_xpert_comptable_fr = new Image( );
moteur_comptable_com = new Image( );
moteur_comptable_net = new Image( );

comptabilite_en_ligne_fr.src='../comptabilite-en-ligne.frr.gif';
centre_de_gestion_agree_net.src='../centre-de-gestion-agree.netr.gif';
association_de_gestion_agree_net.src='../association-de-gestion-agree.netr.gif';
comptable_en_ligne_net.src='../comptable-en-ligne.netr.gif';
expert_comptable_en_ligne_net.src='../expert-comptable-en-ligne.netr.gif';
commissariat_aux_comptes_net.src='../commissariat-aux-comptes.netr.gif';
comptable_agree_net.src='../comptable-agree.net.gif';
centre_de_gestion_agree_fr.src='../centre-de-gestion-agree.fr.gif';
expert_comptable_agree_net.src='../expert-comptable-agree.net.gif';
commissariatauxcomptes_eu.src='../commissariatauxcomptes.eu.gif';
association_de_gestion_agree_fr.src='../association-de-gestion-agree.fr.gif';
moteur_comptable_fr.src='../moteur-comptable.frr.gif';
moteur_recherche_xpert_comptable_fr.src='../moteur-recherche-xpert-comptable.frr.gif';
moteur_comptable_com.src='../moteur-comptable.comr.gif';
moteur_comptable_net.src='../moteur-comptable.netr.gif';

function o(id) {var bob = "";
var reg=new RegExp("(_)", "g");
var reg1=new RegExp("(_fr)", "g");
var reg2=new RegExp("(_eu)", "g");
var reg3=new RegExp("(_net)", "g");
var reg4=new RegExp("(e_com)", "g");
bob11 = id.replace(reg4, "e.com");
bob = bob11.replace(reg1, ".fr");
bob1 = bob.replace(reg2, ".eu");
bob2 = bob1.replace(reg3, ".net");
bob3 = bob2.replace(reg, "-");
document[id].src= '../' + bob3 + 'r.gif';}

function oo(id) {var bob = "";
var reg=new RegExp("(_)", "g");
var reg1=new RegExp("(_fr)", "g");
var reg2=new RegExp("(_eu)", "g");
var reg3=new RegExp("(_net)", "g");
var reg4=new RegExp("(e_com)", "g");
bob11 = id.replace(reg4, "e.com");
bob = bob11.replace(reg1, ".fr");
bob1 = bob.replace(reg2, ".eu");
bob2 = bob1.replace(reg3, ".net");
bob3 = bob2.replace(reg, "-");
document[id].src= '../' + bob3 + '.gif';}*/

function verif_ordre(site) {document.write(' <a rel="nofollow" href="http://www.experts-comptables.fr/csoec/Annuaire/%28region%29?SearchText=' + site + '&choix=1&personne=morale&SearchButton=Recherche" onclick="return GB_showPage(\'' + site +'\', this.href)">Vérifiez l\'inscription à l\'ordre >></a>');}



function vid(ville,obaseimg,lacouleur,video,baseimg) {document.write('<a href="' + ville + 'video_du_jour.php?titre=la+vid%E9o+du+jour&video=' + video + '" onclick="return GB_showCenter(\'La Vidéo du jour\', this.href, 540, 910)" onmouseover="roolov(\'video-'+lacouleur+'\',\'h\',\'video_du_jour\');" onmouseout="video_du_jour.src = \'' + obaseimg + '/video-'+lacouleur+'.png\';"><img src="'+ obaseimg +'/video-'+lacouleur+'.png" class="'+ lacouleur +'1" id="video_du_jour" name="video_du_jour" width="237" height="191"></a>');}

function tit(path) {document.write('<img src="http://open.thumbshots.org/image.aspx?url=' + path + '" width="150" class="f" onMouseOver="mo(this);" onMouseOut="mx(this);">');}

function cob() {for (i = 1; i <= 116; i++) {if ($('#pub_contextuelle'+i).val() != undefined) {interstitiel($('#pub_contextuelle'+i).val());i = 116;}}}


function interstitiel(url) {
$("#avant").insertBefore("#annuaire-expert-comptable");
$("#apres").insertAfter("#annuaire-expert-comptable");
var largeur_divs = $("#annuaire-expert-comptable").width();

if( typeof( window.innerWidth ) == 'number' ) {myWidth = window.innerWidth;myHeight = window.innerHeight; // FIREFOX
var larg_dispo = (myWidth - largeur_divs);
larg_dispo = parseInt((larg_dispo - 2 - 18) / 2);//14
}
else if( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;myHeight = document.documentElement.clientHeight;
var larg_dispo = (myWidth - largeur_divs);
larg_dispo = parseInt((larg_dispo - 2) / 2);
}
else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {//IE 4 compatible
myWidth = document.body.clientWidth;myHeight = document.body.clientHeight;
var larg_dispo = (myWidth - largeur_divs);
larg_dispo = parseInt((larg_dispo - 2 - 2) / 2);
}

var haut_dispo = parseInt(myHeight * 3);

if (larg_dispo < 0) {larg_dispo = 0;}
else if (larg_dispo < 50) {document.write('<style type="text/css">body {width:1254px;}</style>');larg_dispo = 50;}

/*if (larg_dispo > 50) {*/
if ($("body").css("background-repeat") =="repeat") {
if (url.indexOf("expert-comptable-en-ligne.fr")!=-1) {
txt_de_la_pub = "VOTRE expert comptable en ligne, cabinet d expertise comptable, comptabilité sur internet et CONSEILS... Devis Gratuit...";
document.write('<style type="text/css">body {background-image:url(http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/i/fd-votre.png);background-repeat:no-repeat;background-color:white;background-position:top center;background-attachment: fixed;}</style>');}
else if (url.indexOf("expert-comptable-en-ligne.com")!=-1) {
txt_de_la_pub = "VOTRE expert comptable en ligne, cabinet d expertise comptable pour les BNC / Agent commerciaux... Devis Gratuit";
document.write('<style type="text/css">body {background-image:url(http://www.expert-comptable-en-ligne.com/comptabilite-en-ligne/i/fd-votre-bnc.png);background-repeat:no-repeat;background-color:white;background-position:top center;background-attachment: fixed;}</style>');}
else if (url.indexOf("comptable-en-ligne.fr")!=-1) {
txt_de_la_pub = "MON Comptable en ligne, cabinet d expertise comptable, comptabilité sur internet et CONSEILS... Devis gratuit...";
if (Math.random() <= 0.5) {document.write('<style type="text/css">body {background-image:url(http://www.comptable-en-ligne.fr/comptabilite-en-ligne/i/fd-monbis.png);background-repeat:no-repeat;background-color:white;background-position:top center;background-attachment: fixed;}</style>');}
else {document.write('<style type="text/css">body {background-image:url(http://www.comptable-en-ligne.fr/comptabilite-en-ligne/i/fd-mon.png);background-repeat:no-repeat;background-color:white;background-position:top center;background-attachment: fixed;}</style>');}}
else if (url.indexOf("compta247.fr")!=-1) {


if (larg_dispo == 50) {txt_de_la_pub = "Compta 247, logiciel de comptabilité en ligne 100% gratuit, 100% technologique...";
document.write('<style type="text/css">body {background-image:url(http://www.compta247.fr/g/fd-c247-b.jpg);background-repeat:no-repeat;background-color:white;background-position:top center;background-attachment:fixed;}</style>');}
else {txt_de_la_pub = "Compta 247, logiciel de comptabilité en ligne 100% gratuit, 100% technologique...";
document.write('<style type="text/css">body {background-image:url(http://www.compta247.fr/g/fd-c247.jpg);background-repeat:no-repeat;background-color:white;background-position:top center;background-attachment:fixed;}</style>');}



}}

document.getElementById('avant').innerHTML = "<a href='"+url+"' title='"+txt_de_la_pub+"'><img src='http://"+ location.host +"/images/blank.gif' width='"+ larg_dispo +"' height='"+ haut_dispo +"' alt='"+txt_de_la_pub+"'></a>";
document.getElementById('apres').innerHTML = "<a href='"+url+"' title='"+txt_de_la_pub+"'><img src='http://"+ location.host +"/images/blank.gif' width='"+ larg_dispo +"' height='"+ haut_dispo +"' alt='"+txt_de_la_pub+"'></a>";//}



document.write('<style type="text/css">#apres, #avant {width:'+larg_dispo+'px;}</style>');



}






var x= (1*3); 

function shw() 
{ 
//document.getElementById('r').innerHTML='reste '+parseInt(x/60)+'minun'+parseInt(x%60)+'secon'; 
x--; 
if (x<0) {
//alert('il est heur'); 

$.ajax({
	type: "POST",
	url: "../search_key.php",
	data:"time="+x,
	success: function(data){
		//alert(data);
	}
});
x=1*3; 
} 
else setTimeout('shw();',1000); 
} 




function over(text,touch){
$("#r").empty();
shw(); 

var leng = text.length;
var len=$("#autoSuggestionsList li").length;
var div_h = $("#suggestions").height();
var list_h = $("#autoSuggestionsList").height();
var div_suggestions = document.getElementById("suggestions");
var text1="";
if(text.indexOf(" ")>0){
var tab = text.split(" ");
text2 = tab[tab.length-1];
for(var t=0;t<tab.length-1;t++){
text1+=tab[t]+" ";
}
}
else{
text2=text;
}
if(text.length == 0) {
		// Hide the suggestion box.
		$('#suggestions').hide();
	} else {
		if(touch==40 && len>1){
		 var m = n-1;
   		$("#autoSuggestionsList li:nth-child("+n+")").focus();
   	    div_suggestions.scrollTop = li_h;
   	    if(n<len-1){
   	    li_h= li_h + $("#autoSuggestionsList li:nth-child("+n+")").height();
   	    }
   		$("#autoSuggestionsList li:nth-child("+n+")").css("background-color","#a0b64b");
   		$("#autoSuggestionsList li:nth-child("+m+")").css("background-color","");
   		n++;
   		if(n>=len){
   			n=len;
   		}
		}
		else if(touch==38 && len>1){
			 n = n-1;
			 if(n<=1){
				 n = 1;
			 }
			 var l = n+1;
		    	$("#autoSuggestionsList li:nth-child("+n+")").focus();
		    	$("#autoSuggestionsList li:nth-child("+n+")").css("background-color","#a0b64b");
		    	$("#autoSuggestionsList li:nth-child("+l+")").css("background-color","");  
		    	li_h= li_h - $("#autoSuggestionsList li:nth-child("+n+")").height();
		    	div_suggestions.scrollTop = li_h;
		    	if(n==1){
		    		div_suggestions.scrollTop = 0;
		    		li_h = 0;
		    	}
		 }
		else if(touch==13 && len>1){
			 for(var i=1;i<=len;i++){
				var color= $("#autoSuggestionsList li:nth-child("+i+")").attr("style");
				if(color == "background-color: rgb(160, 182, 75);"){
					var value = $("#autoSuggestionsList li:nth-child("+i+")").text();
					var c = value.indexOf(" ");
					var tab1 = value.substr('0',c);
					var tab2 = value.substr(c); 
					affiche_num(tab1+"_"+tab2);
				}
			 }
			 div_suggestions.scrollTop = 0;
	    	 li_h = 0;
			}
			else{


if (getVar("centre-de-gestion-agree") != false) {var dom = "cga";}
else if (getVar("association-de-gestion-agree") != false) {var dom = "aga";}
else if (getVar("expert-comptable-en-ligne") != false) {var dom = "expert";}
else if (getVar("expert-comptable-agree") != false) {var dom = "expert";}
else if (getVar("comptable-en-ligne") != false) {var dom = "comptable";}
else if (getVar("comptable-agree") != false) {var dom = "comptable";}
else if (getVar("commissariat-aux-comptes") != false) {var dom = "commissaire";}
else if (getVar("commissariatauxcomptes") != false) {var dom = "commissaire";}
else if (getVar("immobilier") != false) {var dom = "ai";}
else if (getVar("avocat") != false) {var dom = "av";}
else if (getVar("notaire") != false) {var dom = "no";}
else if (getVar("huissier") != false) {var dom = "hu";}
else {var dom = "global";}
$.ajax({
type: "POST",
url: "../search_key.php",
data:"text="+text2+"&leng="+leng+"&text1="+text1+"&dom="+dom,
success: function(data){
if(data.length >0) {
$('#suggestions').show();
$('#autoSuggestionsList').html(data);}}});
n=1;
div_suggestions.scrollTop = 0;
li_h = 0;}}
$(document).click(function(evt){var evt = window.event?window.event:evt,target=evt.srcElement||evt.target;
if(target.id != "my_text"){$('#suggestions').hide();}
n=1;
div_suggestions.scrollTop = 0;
li_h = 0;
});}

function affiche_in(thisValue,text1){$("#my_text").val("");$("#my_text").val(text1+thisValue);}

function ringbas(id_affich){$("#ring").children().each(function(){if($(this).attr("id") == id_affich) {$(this).fadeIn();}else if ($(this).attr("id") != "") {$(this).css("display","none");}})}
function commentaires(baseurl,id,filtre,titre) {document.write('<a rel="nofollow" href="' +baseurl +'/commentaires-annuaire.php?id_site=' +id+''+filtre+'" onclick="return GB_showCenter(\'Commentez ' +titre+ '\', this.href, 400, 500)" style="text-decoration:none;">');}
function votation(baseurl,id,filtre,titre,titre1) {document.write('<a href="'+baseurl+'/vote.php?id_site='+id+''+filtre+'" title="' + titre+'" onclick="return GB_showCenter(\'Votez pour '+titre1+'\', this.href, 150, 450)" style="text-decoration:none;">');}
function fine() {document.write('</a>');}
function buzz(uri) {document.write('<a rel="nofollow" href="http://digg.com/submit?phase=2&url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/digg.gif" alt=""></a> <a rel="nofollow" href="http://del.icio.us/post?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/del.icio.us.gif" alt=""></a> <a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/yahoo.gif" alt=""></a> <a rel="nofollow" href="http://www.newsvine.com/_tools/seed&save?u=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/newsvine.gif" alt=""></a> <a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/stumbleupon.gif" alt=""></a> <a rel="nofollow" href="http://www.spurl.net/spurl.php?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/spurl.gif" alt=""></a> <a rel="nofollow" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/blinklist.gif" alt=""></a> <a rel="nofollow" href="http://www.wikio.fr/vote?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/wikio.gif" alt=""></a> <a rel="nofollow" href="http://www.scoopeo.com/scoop/new?newurl=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/scoopeo.gif" alt=""></a> <a rel="nofollow" href="http://blogmarks.net/my/new.php?mini=1&simple=1&url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/blogmarks.gif" alt=""></a> <a rel="nofollow" href="http://tapemoi.com/login.php?return=/submit.php?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/tapemoi.gif" alt=""></a> <a rel="nofollow" href="http://www.nuouz.com/addNews.aspx?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/nuouz.gif" alt=""></a> <a rel="nofollow" href="http://www.fuzz.fr/?nws_article?link=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/fuzz.gif" alt=""></a> <a rel="nofollow" href="http://www.netvibes.com/subscribe.php?type=rss&url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/netvibes.gif" alt=""></a> <a rel="nofollow" href="http://cgi.fark.com/cgi/fark/edit.pl?new_url=http://'+uri+'&new_comment=&linktype=Misc" target="_blank"><img src="http://im.xpert-comptable.net/fark.gif" alt=""></a> <a rel="nofollow" href="http://ma.gnolia.com/beta/bookmarklet/add?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/magnolia.gif" alt=""></a> <a rel="nofollow" href="http://technorati.com/faves?add=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/technorati.gif" alt=""></a> <a rel="nofollow" href="http://www.slashdot.org/bookmark.pl?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/slashdot.gif" alt=""></a> <a rel="nofollow" href="http://hellotxt.com/?status=Je+lis+http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/hellotxt.gif" alt=""></a> <a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&bkmk=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/google.gif" alt=""></a> <a rel="nofollow" href="http://www.viadeo.com/shareit/share/?url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/viadeo.gif" alt=""></a> <a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&url=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/linkedin.gif" alt=""></a>  <a rel="nofollow" href="http://twitter.com/timeline/home?status=Je+lis+http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/twitter.gif" alt=""></a> <a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http://'+uri+'" target="_blank"><img src="http://im.xpert-comptable.net/facebook.gif" alt=""></a>');}
function fla(couleur) {document.write('<div style="float:left;width:451px;"><div id="fla"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="250" height="168" id="expertscomptables" name="expertscomptables" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://imag.xpert-comptable.net/experts-comptables.swf?xml=http://imag.xpert-comptable.net/'+couleur+'.xml"><param name="quality" value="high"><embed src="http://imag.xpert-comptable.net/experts-comptables.swf?xml=http://imag.xpert-comptable.net/'+couleur+'.xml" quality="high" width="250" height="168" name="expertscomptables1" id="expertscomptables1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></div>');}
function bou(couleur) {document.write('<div id="bou"><a href="#meilleur" onmouseover="roolov(\'bouton1'+couleur+'\',\'1\',\'bouton1\');" onmouseout="bouton1.src = \'http://imag.xpert-comptable.net/bouton1'+couleur+'.png\';"><img src="http://imag.xpert-comptable.net/bouton1'+couleur+'.png" border="0" style="margin:0px;padding:0px;" width="201" height="42" name="bouton1" id="bouton1" alt=""></a><br><a href="#plus" onmouseover="roolov(\'bouton2'+couleur+'\',\'2\',\'bouton2\');" onmouseout="bouton2.src = \'http://imag.xpert-comptable.net/bouton2'+couleur+'.png\';"><img src="http://imag.xpert-comptable.net/bouton2'+couleur+'.png" border="0" name="bouton2" id="bouton2" style="margin:0px;padding:0px;" width="201" height="42" alt=""></a><br><a href="#dernier" onmouseover="roolov(\'bouton3'+couleur+'\',\'3\',\'bouton3\');" onmouseout="bouton3.src = \'http://imag.xpert-comptable.net/bouton3'+couleur+'.png\';"><img src="http://imag.xpert-comptable.net/bouton3'+couleur+'.png" border="0" name="bouton3" id="bouton3" style="margin:0px;padding:0px;" width="201" height="42" alt=""></a><br><a href="#pire" onmouseover="roolov(\'bouton4'+couleur+'\',\'4\',\'bouton4\');" onmouseout="bouton4.src = \'http://imag.xpert-comptable.net/bouton4'+couleur+'.png\';"><img src="http://imag.xpert-comptable.net/bouton4'+couleur+'.png" border="0" name="bouton4" id="bouton4" style="margin:0px;padding:0px;" width="201" height="42" alt=""></a></div>');}
function map(lat,long,title) {document.write('<a rel="nofollow" href="../../map-annuaire.php?lat='+lat+'|&long='+long+'|" onclick="return GB_showCenter(\'Carte de '+title+'\', this.href, 610, 1050)">');}
function error(s,i) {document.write('<a href="../../'+s+'?id_site='+i+'" style="float:right;">');}
function rss(i) {document.write('<a href="javascript:experto(\'nouvelles\',\''+i+'\');">');}

function goto(g,i,t) {document.write('<a rel="nofollow" href="/'+g+'?id='+i+'" onclick="return GB_showPage(\''+t+'\', this.href)">');}

