var baseimg = "http://www.xpert-comptable.fr";

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("comptabilite-en-ligne.fr") == true || getVar("comptable-en-ligne.com") == true) {var GB_ROOT_DIR = "http://" + location.host + "/greybox/";}
else {var GB_ROOT_DIR = "http://" + location.host + "/annuaire-comptable/greybox/";}

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 || id == "" || 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;
  // Opera does not return valid values with "getAttribute"
  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);
    } // end for
  }
  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

function no_error() {return true; }
window.onerror = no_error;

function expert_comptable(page,hauteur,largeur) //ouvre une popup
{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) //affiche un texte dans la barre de statut du navigateur
{window.status = message; }

function check_id_cat()
//verifie si on a bien selectionner une categorie dans la liste deroulante
{
	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 verifurl(url) 
{
  if(url.value.search(/^https?:\/\/[-a-z0-9\/_.]*([-a-z0-9_.]{2,}\.[-a-z0-9&\?=_.]{2,})$/i) == -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)
{formErrors = false;  
 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 catégorie minimum !");
  // f.elements['nom_proprio'].focus();
  return false; 
        }
 
  else if(f.elements['nom_proprio'].value == ""){
  formErrors ="Vous n'avez pas rempli le champ Nom !"; 
  alert(formErrors);
  //document.all.msg0.style.display ="block";
 // document.all.msg0.innerHTML  = formErrors;
  f.elements['nom_proprio'].focus();
  return false; 
		}
	/*	
  else if(f.elements['nom_proprio'].value != "")
	{
  document.all.msg0.style.display ="none";
	}*/

 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 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) {

$('#'+ whichLayer).fadeIn('slow');

if (document.getElementById)
{var style2 = document.getElementById(whichLayer).style;}
else if (document.all)
{var style2 = document.all[whichLayer].style;}
else if (document.layers)
{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';}}}


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(http://imag.xpert-comptable.net/' + bouton + '.png)';
document.getElementById(tot).src = "http://imag.xpert-comptable.net/" + bouton + "_" + number + ".png";}}


//Détermine le navigateur, nous avons seulement de ceci pour Internet Explorer
if (navigator.appName == "Microsoft Internet Explorer") {

//Array (Tableau) d'éléments devant être remplacé
var arrElements = new Array(3);
arrElements[0] = "object";
arrElements[1] = "embed";
arrElements[2] = "applet";


//Faire une boucle sur le types d'élément
for (n = 0; n < arrElements.length; n++) {

//mettre l'objet pour la concision
replaceObj = document.getElementsByTagName(arrElements[n]);

//faire une boucle sur les objets de l'élément retourné
for (i = 0; i < replaceObj.length; i++ ) {

//mettre l'objet parent pour la concision
parentObj = replaceObj[i].parentNode;

//saisir l'html dans l'élément avant de le supprimer du DOM
newHTML = parentObj.innerHTML;

//supprimez l'élément du DOM
parentObj.removeChild(replaceObj[i]);

//coller l'élément dans la page, mais comme un nouvel objet
parentObj.innerHTML = newHTML;

}}}



function cob() {
	
if (getVar("ci=pl") == true) {var bub = 1;}
else {var bub = 2;}
	
for (i = bub; i <= 117; i++) {if ($('#pub_contextuelle'+i).val() != undefined) {interstitiel($('#pub_contextuelle'+i).val());i = 117;}}}

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);
}
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;var css ='';}
else if (larg_dispo < 50) {larg_dispo = 50;var css ='<style type="text/css">body {width:1254px;}</style>';}
else {var css ='';}


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...";
css = css + '<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";
css = css + '<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) {css = css + '<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 {css = css +  '<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...";
css = css +  '<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...";
css = css +  '<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>';}

}}

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

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




}

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: "../annuaire-comptable/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("comptable-en-ligne") != false) {var dom = "comptable";}
else if (getVar("commissariat-aux-comptes") != false) {var dom = "commissaire";}
else {var dom = "global";}

$.ajax({
	type: "POST",
	url: "../annuaire-comptable/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);if (document.recherche_comptable) {document.recherche_comptable.submit();}}

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");}})}

