function flash(tag)
{
	document.write(tag);
}

function linksExternal()
{
	var links = new Array();
	for(i=0; i<document.getElementsByTagName('a').length; i++)
	{
		if(document.getElementsByTagName('a')[i].rel == 'external')
		{
			document.getElementsByTagName('a')[i].setAttribute("onclick", "go=window.open(this); if(go) return false;");
		}
	}
}

function antispam(name,domain,ext)
{
	return document.write('<a href=\"mailto:'+name+'@'+domain+'.'+ext+'?subject=Demande d\'informations sur la création d\'un site internet\">'+name+'@'+domain+'.'+ext+'</a>');
}
/*
function menuOver(x,y)
{
	if(x>0)
	{
		document.getElementById("scm"+x).style.display="block";
	}
	for(i=1;i<y+1;i++)
	{
		if(i!=x)
		{
			document.getElementById("scm"+i).style.display="none";
		}
	}
}

function develop(x)
{
	todev=document.getElementById(x).style.display;
	if(todev=="block"){todev="none";}else{todev="block";}
}

function imgFrame(x)
{
	var decor_photo="";
	decor_photo="<table width='100' border='0' cellpadding='0' cellspacing='0'>";
	decor_photo+="<tr><td colspan='2'><img src='../img/frame-top.gif' /></td><td rowspan='2'><img src='../img/frame-right.gif' /></td></tr>";
    decor_photo+="<tr><td rowspan='2' valign='bottom' style='vertical-align:bottom'><img src='../img/frame-left.gif' /></td><td><img src='"+x+"' class='photo' /></td></tr>";
	decor_photo+="<tr><td colspan='2' align='right'><img src='../img/frame-bottom.gif' /></td></tr>";
	decor_photo+="</table>";
	document.write(decor_photo);
}
*/


var nbSearch=0;

function findInPage(str)
{
var txt, i, found;
if ((str=="")||(str=="...")) return false;

if((document.layers)||(window.sidebar))
{
if(!window.find(str))
{
	alert("Fin de page atteinte.\n"+'"'+str+'" trouvé '+nbSearch+" fois.");
	while(window.find(str, false, true)){nbSearch++;}
} 
else
	nbSearch++;
	if(nbSearch == 0)
		alert('"'+str+'" est introuvable');
	}

  if(document.all){
	txt = window.document.body.createTextRange();
	for(i = 0; i <= nbSearch && (found = txt.findText(str)) != false; i++){
	  txt.moveStart("character", 1);
	  txt.moveEnd("textedit");
	}
	if(found){
	  txt.moveStart("character", -1);
	  txt.findText(str);
	  txt.select();
	  txt.scrollIntoView(true);
	  nbSearch++;
	}else{
	  if(nbSearch > 0){
		  alert("Fin de page atteinte.\n"+'"'+str+'" trouvé '+nbSearch+" fois.");

		nbSearch = 0;
		findInPage(str);
	  }else{ 
		alert('"'+str+'" est introuvable');
	  }
	}
  }

  return false;
}


window.onload = function (){document.body.style.overflowX = "hidden";}