if( typeof( window.innerWidth ) == 'number' ) {myWidth = window.innerWidth;
var larg_dispo = (myWidth - 1000);
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;
var larg_dispo = (myWidth - 1000);
larg_dispo = parseInt((larg_dispo - 2) / 2);}
else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {//IE 4 compatible
myWidth = document.body.clientWidth;
var larg_dispo = (myWidth - 1000);
larg_dispo = parseInt((larg_dispo - 2 - 2) / 2);}

if (larg_dispo > 100) {if (location.host =="www.expert-comptable-en-ligne.fr"  || location.host =="expert-comptable-en-ligne.fr") {document.write('<style type="text/css">html {background:url(http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/i/bgd1.jpg) #fff repeat-x top;}body{background:url(http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/i/fd-votre1.png) transparent no-repeat top center;background-attachment:fixed;}</style>');}
else {document.write('<style type="text/css">html{background:url(http://www.expert-comptable-en-ligne.com/comptabilite-en-ligne/i/bgd2.jpg) #fff repeat-x top;}body{background:url(http://www.expert-comptable-en-ligne.com/comptabilite-en-ligne/i/fd-votre-bnc1.png) transparent no-repeat top center;background-attachment:fixed;}</style>');}}
else {if (location.host =="www.expert-comptable-en-ligne.fr"  || location.host =="expert-comptable-en-ligne.fr") {document.write('<style type="text/css">html {background:url(http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/i/bgd1.jpg) #fff repeat-x top;}</style>');}
else {document.write('<style type="text/css">html{background:url(http://www.expert-comptable-en-ligne.com/comptabilite-en-ligne/i/bgd2.jpg) #fff repeat-x top;}</style>');}}


function m_link(background,taille) {document.write('<div id="expertise_comptable"><table cellspacing="0" cellpadding="0" width="12" height="' + taille + '" style="height:' + taille + 'px;display:inline;border:0;border-right:2px dashed ' + background + ';border-bottom:2px dashed ' + background + ';margin:0;padding:0;"><tr><td><img src="http://' + location.host + '/comptabilite-en-ligne/i/expert_comptable.gif" width="12" height="' + taille + '"></td></tr></table></div>');}

//function m_submit_devis(){document.write('<input onClick="ligne();" type="image" src="http://' + location.host + '/comptabilite-en-ligne/i/validez.png" border="0"  value="suite du devis">');}

function m_submit_devis() {document.write('<input onClick="ligne();" type="submit" class="le_devis" value="">');}


function m_pas_chat(){document.write('<div id="p9"><div class="d_i_f" style="background-image:url(http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/i/pas-chat-expert-comptable1.gif);" onClick="window.location.href=\'http://www.expert-comptable-en-ligne.fr//\';"></div><div class="d_i_f" style="background-image:url(http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/i/pas-chat-expert-comptable2.gif);" onClick="window.location.href=\'http://www.expert-comptable-en-ligne.fr/\';"></div><div class="d_i_f" style="background-image:url(http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/i/pas-chat-expert-comptable3.gif);" onClick="window.location.href=\'http://www.expert-comptable-en-ligne.fr/\';"></div><div class="d_i_f" style="background-image:url(http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/i/pas-chat-expert-comptable.gif);" onClick="window.location.href=\'http://www.expert-comptable-en-ligne.fr/\';"></div></div><script>affich_php("p9","blindZ,scrollUp,curtainX,zoom,","2000,2000,2000,4000,","1000,1000,1000,1000,");</script>');}

function m_chat(){document.write('<div id="chat"><a href="http://' + location.host + '/chat/" target="_blank"><img src="http://' + location.host + '/comptabilite-en-ligne/i/chat-expert-comptable.gif"></a></div>');}

if (location.host =="www.expert-comptable-en-ligne.fr"  || location.host =="expert-comptable-en-ligne.fr") {document.write('<div style="float:right;margin-right:8px;">');
document.write('<a href="http://' + location.host + '/expert-comptable/expert-comptable-demo.php');
var chaine = location.search;
chaine = chaine.replace("?comptabilite=2&","?");
chaine = chaine.replace("?comptabilite=3&","?");
chaine = chaine.replace("?comptabilite=2","");
chaine = chaine.replace("?comptabilite=3","");
if (chaine != "" && chaine != undefined) {document.write(chaine);}
document.write('" class="la_demo" style="color:white;text-align:center;"> &nbsp; </a>');}
document.write('<a href="http://' + location.host + '/comptabilite-en-ligne/devis-expertise-comptable.php');
var chaine = location.search;
chaine = chaine.replace("?comptabilite=2&","?");
chaine = chaine.replace("?comptabilite=3&","?");
chaine = chaine.replace("?comptabilite=2","");
chaine = chaine.replace("?comptabilite=3","");
if (chaine != "" && chaine != undefined) {document.write(chaine);}
document.write('" class="mon_devis" style="color:white;text-align:center;"> &nbsp; </a>');
if (location.host =="www.expert-comptable-en-ligne.fr"  || location.host =="expert-comptable-en-ligne.fr") {document.write('</div>');}

function m_bandeau_chat(date,ext) {if (date == "am") {document.write('<div class="expertise-compta">DES QUESTIONS SUR LE CABINET ? <br><a href="http://' + location.host + '/chat/index' + ext + '" target="_blank">CLIQUEZ ICI <br>POUR CHATTER AVEC UN CONSEILLER >></a></div>');} 
else if (date == "pm") {document.write('<div class="expertise-compta">DES QUESTIONS SUR LE CABINET COMPTABLE ? <br><a href="http://' + location.host + '/chat/index' + ext + '" target="_blank">CLIQUEZ ICI <br>POUR PARLER AVEC UN CONSEILLER ></a></div>');} 
else if (date =="pl") {document.write('<div class="expertise-compta">VOUS ETES EN BNC ? <br>CHEZ NOUS VOS OBLIGATIONS COMPTABLES ANNUELLES, C\'EST UN PRIX UNIQUE<br><a href="http://' + location.host + '/comptabilite-en-ligne/devis-expertise-comptable' + ext + '">CLIQUEZ ICI <br>POUR REALISER VOTRE DEVIS ></a></div>');}}

function m_marc(nature,ext) {/*document.write('<div align="center"><table width="100%" border="0" align="center"><tr bordercolor="#808080" align="center"><td><MARQUEE onMouseOver=this.stop() onMouseOut=this.start() scrollAmount=1 direction=Up width=256 height=15 align="center" syle="text-align:center;"><br><br><br>Bonjour & Bienvenue sur le site du cabinet. Le cabinet d Expertise Comptable ' + nature + ' vraiment sur Internet. Je m\'appelle Marc expert-comptable virtuel qui vous guidera pendant votre visite sur le site Web<br><br>Vous pouvez naviguer sur le site grâce au menu vertical à ma gauche & le sous menu horizontal de couleur Je vous invite à réaliser le tour virtuel du cabinet expert comptable pour en savoir + sur notre proposition de valeur. Connaître notre identité, Comprendre nos choix technologiques tel que la Comptabilité online ' + nature + ' & la Paye Internet ' + nature + ', Réalisez votre devis Expert-Comptable ' + nature + ', & Contactez un conseiller du cabinet expert comptable qui rappelera dans les 15 minutes & vous enverra votre devis par email<br><br>Si vous éprouvez des difficultés, n hésitez pas à nous contacter,<br><br>Bonne navigation<br><br></MARQUEE></td></tr></table><OBJECT id="VHSS" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH=290 HEIGHT=132><a href="http://' + location.host + '/comptabilite-en-ligne/devis-expertise-comptable' + ext + '"><PARAM NAME=movie VALUE="http://vhost.oddcast.com/vhsssecure.php?doc=http%3A%2F%2Fvhost.oddcast.com%2Fgetshow.php%3Facc%3D17018%26ss%3D265591%26sl%3D0%26embedid%3Ddedccb071b2933e46814b61f71e5ecd8&edit=0&acc=17018&firstslide=1&loading=1"><PARAM NAME=quality VALUE=high><PARAM NAME=scale VALUE=noborder><EMBED src="http://vhost.oddcast.com/vhsssecure.php?doc=http%3A%2F%2Fvhost.oddcast.com%2Fgetshow.php%3Facc%3D17018%26ss%3D265591%26sl%3D0%26embedid%3Ddedccb071b2933e46814b61f71e5ecd8&edit=0&acc=17018&firstslide=1&loading=1" swLiveConnect=true NAME="VHSS" quality=high scale=noborder WIDTH=290 HEIGHT=132 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></a></div>');*/}

function m_marc_petit(nature,ext) {document.write('<table width="100%" height="40" background="http://' + location.host + '/comptabilite-en-ligne/i/comptabilite_en_ligne-.png"><tr><td></td></tr></table><div align="center" id="fen0"><table width="87%" border="0" align="center" bordercolor="#808080"><tr bordercolor="#808080"><td height="1"><MARQUEE onMouseOver=this.stop() onMouseOut=this.start() scrollAmount=1 direction=Up width=130 height=30 align="center"><br><br>Obtenir une proposition tarifaire, sans frais & sans engagements, pour nos prestations d\'expertise comptable ou de gestion de la Paye est simple. Inscrivez votre forme juridique, votre nombre d\'employés, votre nombre de factures de ventes & d\'achats annuels. Ensuite, choisissez votre niveau de services. La première situation intermédiaire & les déclarations de TVA sont gratuites. Pour obtenir l\'offre ferme par email, validez la partie proposition finale. Un conseiller ' + nature + ' vous contactera pour valider vos informations. Vous recevrez votre offre dans les 5 minutes, toujours sans engagements<br>Bonne simulation<br><br></MARQUEE></td></tr></table>');

if (location.host =="www.expert-comptable-en-ligne.fr" || location.host =="expert-comptable-en-ligne.fr") {/*
document.write('<OBJECT id="VHSS" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH=122 HEIGHT=122><a href="http://' + location.host + '/comptabilite-en-ligne/devis-expertise-comptable' + ext + '"><PARAM NAME=movie VALUE="http://vhost.oddcast.com/vhsssecure.php?doc=http%3A%2F%2Fvhost.oddcast.com%2Fgetshow.php%3Facc%3D17018%26ss%3D265593%26sl%3D0%26embedid%3D44f820580c0f1d113461b8462b66c72f&edit=0&acc=17018&loading=1&bgcolor=0xFFFFFF&firstslide=1&loading=1><PARAM NAME=quality VALUE=high><PARAM NAME=scale VALUE=noborder><PARAM NAME=bgcolor VALUE=#ffffff><PARAM NAME="wmode" VALUE="transparent"><EMBED src="http://vhost.oddcast.com/vhsssecure.php?doc=http%3A%2F%2Fvhost.oddcast.com%2Fgetshow.php%3Facc%3D17018%26ss%3D265593%26sl%3D0%26embedid%3D44f820580c0f1d113461b8462b66c72f&edit=0&acc=17018&loading=1&bgcolor=0xFFFFFF&firstslide=1&loading=1" swLiveConnect=true NAME="VHSS" quality=high scale=noborder wmode="transparent" WIDTH=122 HEIGHT=122 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></a>');*/}

document.write('</div><div align="center" id="link0"><a href="javascript:basculer(0, 1, 0);">Ouvrir Fermer le Conseiller</a></div><table width="100%" height="8" background="http://' + location.host + '/comptabilite-en-ligne/i/comptabilite_en_ligne_.png"><tr><td> </td></tr></table>');}

function m_haut_callback() {document.write('<table width="100%" height="115" background="http://' + location.host + '/comptabilite-en-ligne/i/comptabilite_en_ligne');
if (location.host =="www.expert-comptable-en-ligne.com" || location.host =="expert-comptable-en-ligne.com") {document.write('1');}
document.write('.png"><tr><td> </td></tr></table>');}

function m_bas_callback() {document.write('<table width="100%" height="6" background="http://' + location.host + '/comptabilite-en-ligne/i/callback_.png"><tr><td> </td></tr></table>');}

if(window.parent.length!=0) {window.top.location.replace(document.location.href);}
var date_exp = new Date (); //aujourd'hui
date_exp.setTime (date_exp.getTime() + (100 * 24 * 60 * 60 * 1000));

function mo(o){o.className=='stateoff'?o.className='stateon': o.className=o.className; }

function mx(o){o.className=='stateon'?o.className='stateoff': o.className=o.className; }

function montrer_test(object) {  if (document.layers && document.layers[object])	{if(document.layers[object].visibility == 'visible') {comptables(object);}else{comptabilite(object);}	} 
else if (document.all){if(document.all[object].style.visibility == 'visible')
{comptables(object);}else{comptabilite(object);}}else if (document.getElementById) 
{if(document.getElementById(object).style.visibility == 'visible')
{comptables(object);}else{comptabilite(object);}}};

var erase = false;



function LitCookie2(nom) 
{var mon_cookie = document.cookie;
var debut = mon_cookie.indexOf(nom+"=");
var taille = debut + nom.length + 1;
if ((!debut) && (nom != mon_cookie.substring(0,nom.length))) return null;
if (debut == -1) return null;
var fin = mon_cookie.indexOf(";",taille);
if (fin == -1) fin = mon_cookie.length;
return unescape(mon_cookie.substring(taille, fin));}

function LitCookie(nom) {var i = 0;
var j = 0;
var tot = 11;
var debutActivite = 0;
var ecart = 0;
var test = "";
var donnees = document.cookie;
var cookieLenMax = donnees.lengh;

while ((i < cookieLenMax) || (j==12)) {if (donnees.charAt(i)==":") {j=j+1;
var ecart = i;}
i=i+1;}
debutActivite = i - ecart;
return unescape(donnees.substring(debutActivite,debutActivite + ecart));
//alert(debutActivite);
//alert(ecart);
test=unescape(donnees.substring(debutActivite,debutActivite + ecart));
//alert(test);
}

function EcritCookie(nom, valeur, expire, chemin, domaine, secure)
{document.cookie = nom + "=" + escape(valeur) + ( (expire) ? ";expires=" +
expire.toGMTString() : "") + ( (chemin) ? ";path=" + chemin : "") + ( (domaine) ? ";domain=" + 
domaine : "") + ( (secure) ? ";secure" : "");}

function effacer_profil() //appelée par le clic sur le bouton
{date=new Date;
date.setFullYear(date.getFullYear()-1);
EcritCookie("chooky",null,date,"/"); 
history.go(0);} 

function sauvegarder_profil() //appelée par le clic sur le bouton
{EcritCookie("chooky",document.form1.activite.value,date_exp,"/");
history.go(0);}

function sauvegarder_profil_devis() //appelée par le clic sur le bouton
{EcritCookie("chooky",document.devis.activite.value,date_exp,"/");}

tab_activite = new Array(25);
tab_activite[0] =  "Agriculture";
tab_activite[1] =  "Arts/Spectacles";
tab_activite[2] =  "Automobile";
tab_activite[3] =  "BTP";
tab_activite[4] =  "Commerce";
tab_activite[5] = "Communication";
tab_activite[6] =  "Conseil";
tab_activite[7] =  "Education";
tab_activite[8] =  "Finance/Assurances";
tab_activite[9] =  "Immobilier";
tab_activite[10] = "Import/Export";
tab_activite[11] = "Informatique";
tab_activite[12] = "Restauration";
tab_activite[13] = "Santé";
tab_activite[14] = "Sous-Traitance Industrielle";
tab_activite[15] = "Services Aux Entreprises";
tab_activite[16] = "Transports";
tab_activite[17] = "";
tab_activite[18] = "";
tab_activite[19] = "";
tab_activite[20] = "";
tab_activite[21] = "";
tab_activite[22] = "";
tab_activite[23] = "";
tab_activite[24] = "";

var activite_choisie = LitCookie("chooky");

function entreprise(activite_choisie) {if (activite_choisie != "" && activite_choisie !=null) {document.write('<table align="center" cellpadding="0" cellspacing="0" style="border:0;margin:0;padding:0;" width="100%"><tr><td><form name="form1" method="post" action="" style="margin:0;padding:0;"><b>');
document.write(tab_activite[parseInt(activite_choisie)]);
document.write('</b></td><td><INPUT value="OK" type="submit" OnClick="effacer_profil()" style="margin:0;padding:0;">');
document.write('</td></tr></table></form>');}
else
{document.write('<table align="center" cellpadding="0" cellspacing="0" style="border:0;margin:0;padding:0;" width="100%"><tr><td width="70%"><form name="form1" method="post" action="" style="margin:0;padding:0;">');
document.write('<SELECT id=activite name=activite onChange="sauvegarder_profil()" >');
document.write('<OPTION value="NULL" selected >Votre secteur d\'activité</OPTION>');
var i = 0;
while (tab_activite[i] != "")
{document.write('<OPTION value="',parseInt(i),'" >',tab_activite[parseInt(i)],'</OPTION>');
i = i+1;}
document.write('</SELECT>');
document.write('</td><td><INPUT value="OK" type="submit" OnClick="effacer_profil()"  style="margin:0;padding:0;"></td></tr></table></form>');}};

function menu_deroulant_activite_devis(activite_choisie) {activite_choisie = LitCookie("chooky"); 
if (activite_choisie == "") {document.write('<OPTION value="NULL" selected >Votre secteur d\'activité</OPTION>')} 
else {document.write('<OPTION value="NULL" >Votre secteur d\'activité</OPTION>')}
var i = 0; 
while (tab_activite[i] != "")
{if (activite_choisie == i) { document.write('<OPTION value="',parseInt(i),'" selected>',tab_activite[parseInt(i)],'</OPTION>')} 
else {document.write('<OPTION value="',parseInt(i),'">',tab_activite[parseInt(i)],'</OPTION>')}
i = i+1;}}

function menu_deroulant_modifier_activite_devis(nom_activite) {var i = 0;  
while (tab_activite[i] != "")
{if (nom_activite == tab_activite[parseInt(i)]) { document.write('<OPTION value="',parseInt(i),'" selected>',tab_activite[parseInt(i)],'</OPTION>')} 
else {document.write('<OPTION value="',parseInt(i),'">',tab_activite[parseInt(i)],'</OPTION>')}
i = i+1;}}

function retablir_activite_devis() {var num = document.devis.recup_activite.value; 
var a = tab_activite[num];
document.devis.activite.value = tab_activite[num];}

function recup_coeff_activite() {coeff_activite = new Array(25);
coeff_activite[0] = document.devis.coeff_activite_0.value;
coeff_activite[1] = document.devis.coeff_activite_1.value;
coeff_activite[2] = document.devis.coeff_activite_2.value;
coeff_activite[3] = document.devis.coeff_activite_3.value;
coeff_activite[4] = document.devis.coeff_activite_4.value;
coeff_activite[5] = document.devis.coeff_activite_5.value;
coeff_activite[6] = document.devis.coeff_activite_6.value;
coeff_activite[7] = document.devis.coeff_activite_7.value;
coeff_activite[8] = document.devis.coeff_activite_8.value;
coeff_activite[9] = document.devis.coeff_activite_9.value;
coeff_activite[10] = document.devis.coeff_activite_10.value;
coeff_activite[11] = document.devis.coeff_activite_11.value;
coeff_activite[12] = document.devis.coeff_activite_12.value;
coeff_activite[13] = document.devis.coeff_activite_13.value;
coeff_activite[14] = document.devis.coeff_activite_14.value;
coeff_activite[15] = document.devis.coeff_activite_15.value;
coeff_activite[16] = document.devis.coeff_activite_16.value;
coeff_activite[17] = document.devis.coeff_activite_17.value;
coeff_activite[18] = document.devis.coeff_activite_18.value;
coeff_activite[19] = document.devis.coeff_activite_19.value;
coeff_activite[20] = document.devis.coeff_activite_20.value;
coeff_activite[21] = document.devis.coeff_activite_21.value;
coeff_activite[22] = document.devis.coeff_activite_22.value;
coeff_activite[23] = document.devis.coeff_activite_23.value;
coeff_activite[24] = document.devis.coeff_activite_24.value;}

function nom_profil() {var activite_choisie = LitCookie("chooky");
return tab_activite[activite_choisie];}

function soumission() {document.compta.submit();}
function conseil() {if (document.conseiller.consultant.value == 'cabinet-expert-comptable-en-ligne') {document.location="http://www.expert-comptable-en-ligne.fr/cabinet-comptable/cabinet-comptable.php";}
if (document.conseiller.consultant.value == 'paye-en-ligne') {document.location="http://www.expert-comptable-en-ligne.fr/paye-en-ligne/gestion-paye-en-ligne.php";}
if (document.conseiller.consultant.value == 'comptabilite-en-ligne') {document.location="http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/comptabilite-en-ligne.php";}
if (document.conseiller.consultant.value == 'devis-expert-comptable') {document.location="http://www.expert-comptable-en-ligne.fr/comptabilite-en-ligne/devis-expertise-comptable.php";}}

function ecrire(serveurcc,serveurc) {document.write('<a href="mailto:' + serveurcc + '@' + serveurc + '" target="_blank"><img src="http://www.expert-comptable-en-ligne.fr/expert-comptable/i/expertise-comptable.png" border="0" width="19" height="16"></a>');}

function ecrire1() {document.write('<a href=\"javascript:expert_comptable_(-2);\" style=\"text-decoration:none;\">a</a> <a href=\"javascript:expert_comptable_(2);\" style=\"text-decoration:none;\">A</a>');}
