function extraitchaine (c,p,s,n)
{
if (!(n == 1)){var d=-s.length;
for(var i=0;i<p-1;i++)
{d=c.indexOf(s,d+s.length);if(d==-1)return(p==1?c:"\b")}var f=c.indexOf(s,d+s.length);if(f==-1)f=c.length;return c.substring(d+s.length,f)}else
{var d = c.length
for(var i=0;i<p-1;i++)
{
d = c.lastIndexOf(s, d - 1);if (d == -1) return (p==1?c:"\b")
}
var f = c.lastIndexOf(s, d - 1);if (f == -1)return c.substr(0, d);return c.substr(f + 1, d - f - 1)
}
}
function zoom()
{
$(".no").hide();
$(".carte").show('slow');
$(".commune").show();
}
function nozoom()
{
$(".carte").hide('slow');
$(".commune").hide();
$(".no").show('slow');

}

