var agt=navigator.userAgent.toLowerCase();
var is_ie=(agt.indexOf("msie")!=-1 && document.all);
var is_ie5=(agt.indexOf("msie 5")!=-1 && document.all);
var xmlconnex=null;
var return_item = '';
var return_item1 = '';
var tempX = 0;
var tempY = 0;
var return_actua = '';
var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMouseXY;

function getMouseXY(e) {
  if (IE) {
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {
    tempX = e.pageX
    tempY = e.pageY
  }  
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  return true
}

function onsubmitenter(form){
	if ( form == "connexion" ) loadXMLDoc('connexion.php','connexion_ok','POST','log=in&pseudo='+document.getElementById('pseudo1').value+'&span=1&password='+document.getElementById('password1').value);
	if ( form == "inscription" ) loadXMLDoc('inscription.php','evalXMLDoc','POST','new_pseudo1='+document.getElementById('new_pseudo1').value+'&new_password1='+document.getElementById('new_password1').value+'&new_password2='+document.getElementById('new_password2').value+'&name='+document.getElementById('name').value+'&pays='+document.getElementById('pays').value+'&departement='+document.getElementById('departement').value+'&profil='+document.getElementById('profil').value);
}

function connexion_ok() {
	if (xmlconnex.readyState == 4) {
		if (xmlconnex.status == 200) {
			loadXMLDoc('connexion.php','evalXMLDoc','POST','log=in&pseudo='+document.getElementById('pseudo1').value+'&span=1&password='+document.getElementById('password1').value);
		}
	}
}

function evalXMLDoc() {
	if (xmlconnex.readyState == 4) {
		if (xmlconnex.status == 200) {
			eval(xmlconnex.responseText);
		}
	}
}

function submitenter(myform,e){
	var keycode;
	if (window.event)
		keycode=window.event.keyCode;
	else if(e)
		keycode=e.which;
	else
		return true;
	if (keycode==13)
	{
		if ( myform == "form_connexion" )
		onsubmitenter('connexion');
		return false;
	}
	else
		return true;
}

function checkForm() {
	formErrors = false;

	if (document.post.new_pseudo1.value.length < 1)
		formErrors = true;

	if (document.post.new_password1.value.length < 1)
		formErrors = true;

	if (document.post.new_password2.value.length < 1)
		formErrors = true;

	if (document.post.name.value.length < 1)
		formErrors = true;

	if (document.post.pays.value.length < 1)
		formErrors = true;

	if (document.post.pays.value == "FR" && document.post.departement.value == 0)
		formErrors = true;

	if (document.post.profil.value == 0)
		formErrors = true;

	if (formErrors) {
		alert("Les champs marqués d'un * rouge doivent être complétés.");
		return false;
	} else {
		return true;
	}
}

function send_password()
{
	var adresse_email = prompt(lan124, '');
	if ( adresse_email != '' )
	{
		loadXMLDoc('send_password.php','evalXMLDoc','POST','email='+adresse_email);
	}
}

function connexion() {

	document.write('<div id="connexion" style="z-index: 1000; left: 0px; visibility: hidden; width: 100%; position: absolute; top: 0px; height: 100%; text-align: center"><center><br><form method="post" name="form_connexion"><table style="border:#333333 1px solid; border-top:#333333 2px solid;" class="backg" cellSpacing="4" id="table4"><tr><td><b>'+lan3+'</b></td><td style="TEXT-ALIGN: right"><a onclick="javascript:hideOeuvre(\'connexion\');"><img src="images/exit.gif" border="0"></a></td></tr><tr><td colSpan="2"><center><br><table width="350" border="0" cellpadding="5" cellspacing="3"  class="bloc1"><tr >       <td align="center"><b>'+lan35+'</b><br>'+lan36+'<br><a href="javascript:return_item1=\'\';hideOeuvre(\'connexion\');showOeuvre(\'inscription\');">'+lan37+'</a></td></tr></table><br><br><table width="350" border="0" cellpadding="5" cellspacing="3"   class="bloc1"><tr class="cl2"><td colspan="2" align="center" style="font-size:11px;"><b>'+lan38+'</b><br><br></td></tr><tr><td align="right"><b>'+lan123+'</b><br><i>'+lan40+'</i></td><td><input type="hidden" name="span" value="a"><input id="pseudo1" name="pseudo1" type="text" onKeyPress="return submitenter(\'form_connexion\',event);" style="width:150px;"></td></tr><tr><td align="right"><b>'+lan41+'</b><br><a href="javascript:send_password();" style="font-size:10px;">'+lan42+'</a></td><td><input id="password1" name="password1" type="password" onKeyPress="return submitenter(\'form_connexion\',event);" style="width:150px;"></td></tr><tr><td colspan="2" align="center"><br><input type="button" name="Connexion" value="'+lan43+'" onclick="onsubmitenter(\'connexion\');"></td></tr></table></form></td></tr></table></div>');

	document.write('<div id="inscription" style="z-index: 1001; left: 0px; visibility: hidden; width: 100%; position: absolute; top: 0px; height: 100%; text-align: center"><center><br><form method="POST" action="inscription.php" name="form_inscription" onsubmit="return checkForm(this)"><table style="border:#333333 1px solid; border-top:#333333 2px solid;width:650px;"  class="backg" cellSpacing="0" id="table4"><tr height="25"><td>&nbsp;<b>'+lan126+'</b></td><td style="TEXT-ALIGN: right"><a onclick="javascript:hideOeuvre(\'inscription\');"><img src="images/exit.gif" border="0"></a></td></tr><tr><td colSpan="2"><center><br><table width="90%" class="bloc1"><tr><td valign="top">'+lan127+'</td><td align="center" valign="top">  <table width="300" border="0" cellpadding="5" cellspacing="3" class="cl3">    <tr>      <td align="center" colspan="2"><font style="font-size:13px;"><b>'+lan128+'</b></font><br><br>'+lan129+'<br><br></td>    </tr>');
	document.write('  <tr>      <td align="right"><b><font color="#FF0000">*</font> '+lan130+'</b></td>      <td><input id="name" name="name" type="text" style="width:175px;"></td>     </tr>     <tr>      <td align="right"><b><font color="#FF0000">*</font> '+lan131+'</b></td>      <td><input id="new_pseudo1" name="new_pseudo1" type="text" style="width:175px;"></td>     </tr>     <tr>      <td align="right"><b><font color="#FF0000">*</font> '+lan41+'</b></td>      <td><input id="new_password1" name="new_password1" type="password" style="width:175px;"></td>     </tr>     <tr>      <td align="right"><b><font color="#FF0000">*</font> '+lan41+'<br>('+lan132+')</b></td>      <td><input id="new_password2" name="new_password2" type="password" style="width:175px;"></td>     </tr>          <tr>      <td align="right"><b><font color="#FF0000">*</font> '+lan133+'</b></td>      <td>'+lanfrom+'</td>     </tr>');
	document.write('     <tr id="row_departement">      <td align="right"><b><font color="#FF0000">*</font> '+lan134+'</b></td>      <td><select id="departement" name="departement" style="width:175px;"> <option value="0"></option> <optgroup label="France métropolitaine"> <option value="1">01 - Ain</option> <option value="2">02 - Aisne</option> <option value="3">03 - Allier</option> <option value="4">04 - Alpes de Haute-Provence</option> <option value="5">05 - Hautes-Alpes</option> <option value="6">06 - Alpes-Maritimes</option> <option value="7">07 - Ardèche</option> <option value="8">08 - Ardennes</option> <option value="9">09 - Ariège</option> <option value="10">10 - Aube</option> <option value="11">11 - Aude</option> <option value="12">12 - Aveyron</option> <option value="13">13 - Bouches-du-Rhône</option> <option value="14">14 - Calvados</option> <option value="15">15 - Cantal</option>');
	document.write(' <option value="16">16 - Charente</option> <option value="17">17 - Charente-Maritime</option> <option value="18">18 - Cher</option> <option value="19">19 - Corrèze</option> <option value="20">20 - Corse-du-Sud/Haute-Corse</option> <option value="21">21 - Côte-d\'Or</option> <option value="22">22 - Côtes-d\'Armor</option> <option value="23">23 - Creuse</option> <option value="24">24 - Dordogne</option> <option value="25">25 - Doubs</option> <option value="26">26 - Drôme</option> <option value="27">27 - Eure</option> <option value="28">28 - Eure-et-Loire</option> <option value="29">29 - Finistère</option> <option value="30">30 - Gard</option> <option value="31">31 - Haute-Garonne</option> <option value="32">32 - Gers</option> <option value="33">33 - Gironde</option> <option value="34">34 - Hérault</option> <option value="35">35 - Ille-et-Vilaine</option> <option value="36">36 - Indre</option>');
	document.write(' <option value="37">37 - Indre-et-Loire</option> <option value="38">38 - Isère</option> <option value="39">39 - Jura</option> <option value="40">40 - Landes</option> <option value="41">41 - Loir-et-Cher</option> <option value="42">42 - Loire</option> <option value="43">43 - Haute-Loire</option> <option value="44">44 - Loire-Atlantique</option> <option value="45">45 - Loiret</option> <option value="46">46 - Lot</option> <option value="47">47 - Lot-et-Garonne</option> <option value="48">48 - Lozère</option> <option value="49">49 - Maine-et-Loire</option> <option value="50">50 - Manche</option> <option value="51">51 - Marne</option> <option value="52">52 - Haute-Marne</option> <option value="53">53 - Mayenne</option> <option value="54">54 - Meurthe-et-Moselle</option> <option value="55">55 - Meuse</option> <option value="56">56 - Morbihan</option> <option value="57">57 - Moselle</option>');
	document.write(' <option value="58">58 - Nièvre</option> <option value="59">59 - Nord</option> <option value="60">60 - Oise</option> <option value="61">61 - Orne</option> <option value="62">62 - Pas-de-Calais</option> <option value="63">63 - Puy-de-Dôme</option> <option value="64">64 - Pyrénées-Atlantiques</option> <option value="65">65 - Hautes-Pyrénées</option> <option value="66">66 - Pyrénées-Orientales</option> <option value="67">67 - Bas-Rhin</option> <option value="68">68 - Haut-Rhin</option> <option value="69">69 - Rhône</option> <option value="70">70 - Haute-Saône</option> <option value="71">71 - Saône-et-Loire</option> <option value="72">72 - Sarthe</option> <option value="73">73 - Savoie</option> <option value="74">74 - Haute-Savoie</option> <option value="75">75 - Paris</option> <option value="76">76 - Seine-Maritime</option> <option value="77">77 - Seine-et-Marne</option>');
	document.write(' <option value="78">78 - Yvelines</option> <option value="79">79 - Deux-Sèvres</option> <option value="80">80 - Somme</option> <option value="81">81 - Tarn</option> <option value="82">82 - Tarn-et-Garonne</option> <option value="83">83 - Var</option> <option value="84">84 - Vaucluse</option> <option value="85">85 - Vendée</option> <option value="86">86 - Vienne</option> <option value="87">87 - Haute-Vienne</option> <option value="88">88 - Vosges</option> <option value="89">89 - Yonne</option> <option value="90">90 - Territoire de Belfort</option> <option value="91">91 - Essonne</option> <option value="92">92 - Hauts-de-Seine</option> <option value="93">93 - Seine-Saint-Denis</option> <option value="94">94 - Val-de-Marne</option> <option value="95">95 - Val-d\'Oise</option></optgroup><optgroup label="Départements d\'outre-mer"> <option value="971">971 - Guadeloupe</option>');
	document.write(' <option value="972">972 - Martinique</option> <option value="973">973 - Guyane</option> <option value="974">974 - Réunion</option></optgroup><optgroup label="Collectivités d\'outre-mer"> <option value="975">975 - Saint-Pierre-et-Miquelon</option> <option value="984">984 - Terres australes et antarctiques françaises</option> <option value="985">985 - Mayotte</option> <option value="986">986 - Wallis-et-Futuna</option> <option value="987">987 - Polynésie française</option> <option value="988">988 - Nouvelle-Calédonie</option></optgroup></select></select></td>     </tr>     <tr>      <td align="right"><b><font color="#FF0000">*</font> '+lan135+'</b></td>      <td><select id="profil" name="profil" style="width:175px;"> <option value="0"></option> <option value="1">'+lan136+'</option> <option value="1">'+lan137+'</option> <option value="2">'+lan138+'</option>');
	document.write(' <option value="3">'+lan139+'</option> <option value="4">'+lan140+'</option> <option value="5">'+lan141+'</option> <option value="10">'+lan142+'</option> <option value="6">'+lan143+'</option> <option value="8">'+lan144+'</option>  <option value="11">'+lan145+'</option> <option value="7">'+lan146+'</option> <option value="12">'+lan147+'</option> <option value="9">'+lan148+'</option></select></td>     </tr>     <tr>      <td colspan="2" align="center"><br><input type="button" value="'+lan126+'" onclick="alert(\'test\');onsubmitenter(\'inscription\');"></td>     </tr>    </table></td></tr></table><br><br></center></td></tr></table></form></td></tr></table></div>');

	if ( language != "french" )
		document.getElementById('row_departement').style.visibility = 'hidden';

}

function oeuvrebull(id_info,art_name,code_id,artrinet_biographie,artrinet_oeuvres,artrinet_cote,artiste_nom,artrinet_guestbook,artrinet_vente,selection_image,actu,diapo,diapo_legende,code_H,description_code,isemail) {

	document.write(oeuvrebull_data(id_info,art_name,code_id,artrinet_biographie,artrinet_oeuvres,artrinet_cote,artiste_nom,artrinet_guestbook,artrinet_vente,selection_image,actu,diapo,diapo_legende,code_H,description_code,isemail));

}

function oeuvrebull_data(id_info,art_name,code_id,artrinet_biographie,artrinet_oeuvres,artrinet_cote,artiste_nom,artrinet_guestbook,artrinet_vente,selection_image,actu,diapo,diapo_legende,code_H,description_code,isemail) {
	var art_name1 = art_name;

	var datas = '';

	datas += '<div style="position: absolute;top:0px;left:0;width:100%;height:100%;text-align:center;visibility: hidden;z-index:';
	if ( art_name == lan3 )
		datas += '1000';
	else
		datas += '501';
	datas += '" id="'+id_info+'">';
	datas += '  <center><br>';
	datas += '  <table cellspacing="0" class="backg" style="border:1px solid #333333;border-top:2px solid #333333;">';

	datas += '    <tr class="bloc1">';

	if ( art_name != lan3 )
		art_name = lan33+' : ' + art_name;

	datas += '      <td height="22" style="border-bottom:1px solid #333333;">&nbsp;&nbsp;<b>'+art_name+'</b></td>';

	datas += '<td align="center" class="backg" style="border-left:1px solid #333333;border-right:1px solid #333333;" width="150">'+lan31+'</td>';

	if (  actu != '' )
		datas += '<td align="center" class="bloc1" style="border-left:1px solid #333333;border-right:1px solid #333333;border-bottom:1px solid #333333;" width="150"><span onclick="hideOeuvre(\''+id_info+'\');if (return_actua != \'\') { showActua(return_actua);return_actua=\'\';} else showActua(\''+actu+'\');" onmouseover="this.style.cursor=\'pointer\';" onmouseout="this.style.cursor=\'default\';">'+lan32+'</span></td>';
	else
		datas += '<td align="center" class="bloc1" style="color:#CCCCCC;border-left:1px solid #333333;border-right:1px solid #333333;border-bottom:1px solid #333333;" width="150">'+lan32+'</td>';

	datas += '    <td align="center" width="22" style="border-bottom:1px solid #333333;"><a onClick = "javascript:hideOeuvre(\''+id_info+'\');"  onmouseover="this.style.cursor=\'pointer\';" onmouseout="this.style.cursor=\'default\';"><img src="images/exit.gif" border="0"></a></td></tr>';
	datas += '    <tr><td colspan="3" id="fiche_'+id_info+'">';

	datas += '<table width="650" height="450" cellspacing="0"><tr><td align="center" width="400"><p style="margin:5px;"><span id="image_'+id_info+'"></span><br><br>';

	if ( description_code )
		datas += '<b><a href="fiche_classification.php?id='+code_id+'" target="_blank" style="text-decoration:none;">'+lan245+'</a></b> : '+description_code+'';

	datas += '</p></td><td valign="top" style="margin:0px;"><p style="line-height:120%;margin:0px;"><br>';

	if ( diapo != 0 )
	datas += '<b><a href = "javascript:open_clip(\''+id_info+'\','+diapo+');" style="text-decoration:none;color:#880000"><img src="images/sound.gif" border="0"> '+lan239+' </a></b><br><br>';

	if ( code_H <= 9 ) code_H = "0" + code_H;

	datas += '<a href="index.php?p='+code_H+'&code=OEUVRE-'+code_id+'" style="text-decoration:none;"><b><img src="images/oeuvres.gif" border="0"> '+lan92+'<br><img src="images/pixel.gif" border="0"> '+lan93+'</b></a><br><br>';

	datas += '<b>'+lan16+'</b><br>';

	if ( isemail == 1) {
		datas += '<a href="link.php?id='+code_id+'" target="_blank" style="text-decoration:none;"><img src="images/email.gif" border="0"></b> '+lan19+'</a><br>';
	} else {
		datas += '<a href="link.php?id='+code_id+'" target="_blank" style="text-decoration:none;"><img src="images/www.gif" border="0"></b> '+lan17+'</a><br>';
	}

	if (  actu != '' )
	{
		datas += '<img src="images/actualite.gif" border="0"> <a href="javascript:hideOeuvre(\''+id_info+'\');showActua(\''+actu+'\');" style="text-decoration:none;">'+lan18+'</a><br>';
	}
	else
	{
		datas += '<img src="images/actualite.gif" border="0"> <font color="#CCCCCC">'+lan18+'</font><br>';
	}
	
	//datas += '<a href="javascript:open_popup(\'message.php?id='+code_id+'\', \'ARTRINET\',480,420);" style="text-decoration:none;"><img src="images/email.gif" border="0"></b> '+lan19+'</a><br>';

	datas += '<a href="fiche_classification.php?id='+code_id+'" target="_blank" style="text-decoration:none;"><img src="images/actualite.gif" border="0">&nbsp;'+lan252+'</a><br>';

	if (  artrinet_biographie != 0 )
	{
		datas += '<img src="images/pixel.gif" border="0"> <a href="http://contact.active-art.net/viewpage.php?id='+artrinet_biographie+'" target="_blank" style="text-decoration:none;">'+lan20+'</a><br>';
	}
	else
	{
		//datas += '<img src="images/pixel.gif" border="0"> <font color="#CCCCCC">'+lan20+'</font><br>';
	}

	if ( artrinet_oeuvres != 0 ) 
	{
		datas += '<img src="images/pixel.gif" border="0"> <a href="http://contact.active-art.net/viewpage.php?id='+artrinet_oeuvres+'" target="_blank" style="text-decoration:none;">'+lan21+'</a><br>';
	}
	else
	{
		datas += '<img src="images/pixel.gif" border="0"> <font color="#CCCCCC">'+lan21+'</font><br>';
	}

	if (  artrinet_cote != 0 )
	{
		datas += '<img src="images/pixel.gif" border="0"> <a href="http://web.artprice.com/artistsearch.aspx?L=fr&idr=MzE5OTY0MjQzMTY2NTk=&searcharti='+artiste_nom+'" target="_blank" style="text-decoration:none;">'+lan22+'</a><br>';
	}
	else
	{
		datas += '<img src="images/pixel.gif" border="0"> <font color="#CCCCCC">'+lan22+'</font><br>';
	}

	if (  artrinet_guestbook != 0 )
	{
		datas += '<img src="images/pixel.gif" border="0"> <a href="http://contact.active-art.net/guestbook.php?id='+artrinet_guestbook+'" target="_blank" style="text-decoration:none;">'+lan23+'</a><br>';
	}
	else
	{
		datas += '<img src="images/pixel.gif" border="0"> <font color="#CCCCCC">'+lan23+'</font><br>';
	}

	if (  artrinet_vente != '' )
	{
		datas += '<img src="images/pixel.gif" border="0"> <a href="'+artrinet_vente+'" target="_blank" style="text-decoration:none;">'+lan91+'</a><br>';
	}
	else
	{
		//datas += '<img src="images/pixel.gif" border="0"> <font color="#CCCCCC">Acheter les oeuvres en ligne</font><br>';
	}

	datas += '<br><b>'+lan24+'</b><br>';

	var lans;
	if ( selection_image == "selection_on.gif" )
		lans = lan227;
	else
		lans = lan25;
	datas += '<img name="selection_tool_'+code_id+'" src="images/'+selection_image+'" onclick="loadXMLDoc(\'set_bookmark.php\',\'evalXMLDoc\',\'POST\',\'id='+code_id+'\');" onmouseover="this.style.cursor=\'pointer\';" onmouseout="this.style.cursor=\'default\';"> <a id="lien_s_'+code_id+'" href="javascript:loadXMLDoc(\'set_bookmark.php\',\'evalXMLDoc\',\'POST\',\'id='+code_id+'\');" style="text-decoration:none;">'+lans+'</a><br>';
	datas += '<a href="javascript:open_popup(\'alertes.php?id='+code_id+'\', \'ARTRINET\',480,350);" style="text-decoration:none;"><img src="images/alerte.gif" border="0"></b> '+lan26+'</a><br><br>';

	datas += '<div  class="bloc1" style="width:190px;border-bottom:1px solid #000000;border-top:2px solid #000000;"><p align="justify" style="margin:3px;" id="'+code_id+'_infos">'+lan27+'</p></div>';

	datas += '<br><img src="images/pixel.gif" border="0"> <a href = "javascript:hideOeuvre(\''+id_info+'\');" style="text-decoration:none;"> <i>'+lan28+'</i></a></p>';

	datas += '</td></tr></table>';
	datas += '</td></tr>';

	datas += '<tr id="oeuvre_'+id_info+'" style="visibility:hidden;display:none;"><td colspan="3">';
	datas += '<span id="objflash_'+id_info+'"></span>';

	datas += '<div align="center">'+diapo_legende+'<br>&nbsp;</div>';

	datas += '</td></tr>';

	datas += '  </table>';
	datas += '  </center>';
	datas += '</div>';

	return datas;

}


function oeuvrebull_jeu(id_info,art_name,code_id,artrinet_biographie,artrinet_oeuvres,artrinet_cote,artiste_nom,artrinet_guestbook,artrinet_vente,selection_image,actu,diapo,diapo_legende,code_H,description_code,isemail) {

	var art_name1 = art_name;
	document.write('<div style="position: absolute;top:0px;left:0;width:100%;height:100%;text-align:center;visibility: hidden;z-index:');
	if ( art_name == lan3 )
		document.write('1000');
	else
		document.write('501');
	document.write('" id="'+id_info+'">');
	document.write('  <center><br>');
	document.write('  <table cellspacing="0" class="backg" style="border:1px solid #333333;border-top:2px solid #333333;">');

	document.write('    <tr class="bloc1">');

	if ( art_name != lan3 )
		art_name = lan33+' : ' + art_name;

	document.write('<td height="22" style="border-bottom:1px solid #333333;">&nbsp;&nbsp;<b>'+art_name+'</b></td>');

	document.write('<td align="center" class="backg" style="border-left:1px solid #333333;border-right:1px solid #333333;" width="150">'+lan31+'</td>');

	document.write('<td align="center" class="bloc1" style="color:#CCCCCC;border-left:1px solid #333333;border-right:1px solid #333333;border-bottom:1px solid #333333;" width="150"> &nbsp;</td>');

	document.write('<td align="center" width="22" style="border-bottom:1px solid #333333;"><a onClick = "javascript:hideOeuvre(\''+id_info+'\');"  onmouseover="this.style.cursor=\'pointer\';" onmouseout="this.style.cursor=\'default\';"><img src="images/exit.gif" border="0"></a></td></tr>');
	document.write('<tr><td colspan="3" id="fiche_'+id_info+'">');

	document.write('<table width="650" height="450" cellspacing="0"><tr><td align="center" width="400"><p style="margin:5px;"><span id="image_'+id_info+'"><img src="imgz.php?i='+id_info+'&id='+code_id+'" border="0"></span><br><br><b><a href="fiche_classification.php?id='+code_id+'" target="_blank" style="text-decoration:none;">'+lan245+'</a></b> : '+description_code+'</p></td><td valign="top" style="margin:0px;"><p style="line-height:120%;margin:0px;"><br>');

	document.write('<b>'+lan16+'</b><br><br>');

	if ( isemail == 1) {
		document.write('<a href="link.php?id='+code_id+'" target="_blank" style="text-decoration:none;"><img src="images/email.gif" border="0"></b> '+lan19+'</a><br>');
	} else {
		document.write('<a href="link.php?id='+code_id+'" target="_blank" style="text-decoration:none;"><img src="images/www.gif" border="0"></b> '+lan17+'</a><br>');
	}

	//document.write('<a href="javascript:open_popup(\'message.php?id='+code_id+'\', \'ARTRINET\',480,420);" style="text-decoration:none;"><img src="images/email.gif" border="0"></b> '+lan19+'</a><br>');

	document.write('<img src="images/actualite.gif" border="0">&nbsp;<a href="fiche_classification.php?id='+code_id+'" target="_blank" style="text-decoration:none;">'+lan252+'</a><br>');

	document.write('<br><img src="images/pixel.gif" border="0"> <a href = "javascript:hideOeuvre(\''+id_info+'\');" style="text-decoration:none;"> <i>'+lan28+'</i></a></p>');

	document.write('</td></tr></table>');
	document.write('</td></tr>');

	document.write('<tr id="oeuvre_'+id_info+'" style="visibility:hidden;display:none;"><td colspan="3">');

	document.write('</td></tr>');

	document.write('  </table>');
	document.write('  </center>');
	document.write('</div>');

}

function clip_plus(id_info)
{
	document.getElementById('objflash_'+id_info).innerHTML = '<br><table border="0" width="650" height="240" style="border-spacing:5px;"><tr><td width="75">&nbsp;</td><td valign="top"><b>Acheter cette oeuvre<br></b><br>Création de Nicole Gaulier<br>Collection de 4 céramiques - 2000 euros TTC<br><br>Commande par chèque<br><br>A l\'ordre de Nicole Gaulier<br>à envoyer à<br>ACTIVE ART<br>5 rue de Turbigo<br>75001 PARIS<br><br>Commande par carte bancaire<br><br>lien vers payement EWP - </td><td valign="top"><b>Voir cette oeuvre avant d\'acheter</b><br><br>Sur rendez-vous à l\'atelier de l\'artiste<br>77 rue de Rome - 75017 PARIS<br>Prendre rendez-vous au 01 42 94 06 48<p><b>Contacter un conseiller par téléphone :<br></b><br>Contact : Etienne Caveyrac 01 53 61 17 70</td><td width="75">&nbsp;</td></tr></table>';
}

function open_clip(id_info,diapo)
{
	document.getElementById('oeuvre_'+id_info).style.visibility='visible';
	document.getElementById('oeuvre_'+id_info).style.display='';

	document.getElementById('objflash_'+id_info).innerHTML = '<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="650" height="440" id="player" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="diapo.swf?id='+diapo+'&rgb1=000000" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="diapo.swf?id='+diapo+'&rgb1=000000" quality="high" wmode="transparent" bgcolor="#ffffff" width="650" height="440" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'

	document.getElementById('fiche_'+id_info).style.visibility='hidden';
	document.getElementById('fiche_'+id_info).style.display='none';
}

function close_clip(id_info)
{
	document.getElementById('oeuvre_'+id_info).style.visibility='hidden';
	document.getElementById('oeuvre_'+id_info).style.display='none';

	document.getElementById('objflash_'+id_info).innerHTML = '';

	document.getElementById('fiche_'+id_info).style.visibility='visible';
	document.getElementById('fiche_'+id_info).style.display='';
}

function actuabull(image,title,text,formulaire,provenance,formulaire_question,fiche,fiche_lien,others) {

	document.write('<div style="position: absolute;top:0px;left:0;width:100%;height:100%;text-align:center;visibility: hidden;z-index:501" id="'+image+'">');

	document.write('  <center><br>');
	document.write('  <table cellspacing="0" class="backg" style="border:1px solid #333333;border-top:2px solid #333333;">');
	document.write('    <tr  class="bloc1" style="border-bottom:1px solid #333333;">');
	document.write('      <td height="22" style="border-bottom:1px solid #333333;">&nbsp;&nbsp;<b>Fiche ARTRINET : '+fiche+'</b></td>');

	if ( fiche_lien != '' )
		document.write('      <td align="center"  class="bloc1" style="color:#AA0000;border-bottom:1px solid #333333;border-left:1px solid #333333;border-right:1px solid #333333;" width="150"><a href="#" onclick="'+fiche_lien+';return_actua=\''+image+'\';"  style="text-decoration:none;">'+lan31+'</a></td>');
	else
		document.write('      <td align="center" style="border-bottom:1px solid #333333;border-left:1px solid #333333;border-right:1px solid #333333;color:#CCCCCC;"  class="bloc1" width="150">'+lan31+'</td>');

	document.write('      <td height="22" class="backg" style="color:#000000;border-left:1px solid #333333;border-right:1px solid #333333;" width="150" align="center">'+others+'</td>');

	document.write('      <td align="center" width="22" style="border-bottom:1px solid #333333;"><a onClick = "javascript:hideOeuvre(\''+image+'\');" onmouseover="this.style.cursor=\'pointer\';" onmouseout="this.style.cursor=\'default\';"><img src="images/exit.gif" border="0"></a></td>');
	document.write('    </tr>');
	document.write('    <tr><td colspan="3">');

	document.write('<br><table width="650" height="400" cellspacing="0"><tr><td width="300" valign="top" align="center"><p style="margin: 5px;"><img src="http://annonces.active-art.net/images/annonces/'+image+'" border="0">');

	if ( formulaire > 0 )
	{
		document.write('<form method="POST" action="index.php"">');
		document.write('<table border="0" width="295" cellspacing="0" cellpadding="0">');
		document.write('<tr><td style="font-size:10px;" colspan="2" align="center"><b>' + formulaire_question + '</b><br><br></td></tr>');
		document.write('<tr><td style="font-size:10px;" align="right"><font color="#FF0000">*</font>Nom :&nbsp;</td><td><input type="text" id="nom_'+image+'" name="nom" size="20" style="width:180px;"></td></tr>');
		document.write('<tr><td style="font-size:10px;" align="right"><font color="#FF0000">*</font>Email :&nbsp;</td><td><input type="text" id="email_'+image+'" name="email" size="20" style="width:180px;"></td></tr>');

		if ( formulaire > 1 )
		{
			document.write('<tr><td style="font-size:10px;" align="right">Téléphone :&nbsp;</td><td><input type="text" id="telephone_'+image+'" name="telephone" size="20" style="width:180px;"></td></tr>');
			document.write('<tr><td style="font-size:10px;" align="right">Adresse :&nbsp;</td><td><input type="text" id="adresse_'+image+'" name="adresse" size="20" style="width:180px;"></td></tr>');
			document.write('<tr><td style="font-size:10px;" align="right">CP Ville :&nbsp;</td><td><input type="text" id="cp_ville_'+image+'" name="cp_ville" size="20" style="width:180px;"></td></tr>');
			document.write('<tr><td style="font-size:10px;" align="right">Pays :&nbsp;</td><td><input type="text" id="pays_'+image+'" name="pays" size="20" style="width:180px;"></td></tr>');
		}

		document.write('<tr><td style="font-size:10px;" align="right" valign="top">Commentaire :&nbsp;</td><td><textarea id="commentaire_'+image+'" name="commentaire" style="width:180px;"></textarea></td></tr>');
		document.write('<tr><td style="font-size:10px;" align="right" valign="top"></td><td style="font-size:10px;"><br><input type="button" value="Envoyer" onclick="send_msg_actu('+formulaire+',\''+image+'\',\''+provenance+'\');" name="B1"><br><br><font color="#FF0000">*</font>Champs obligatoires</td></tr>');

		document.write('</table></form><br>');
	}

	document.write('</p></td><td valign="top" ><p style="margin: 5px;height:375px;overflow: auto;">'+title+'<br><br>'+text+'</p>');

	document.write('</td></tr></table>');

	document.write('</td></tr>');
	document.write('  </table>');
	document.write('  </center>');
	document.write('</div>');
}

function send_msg_actu(formulaire,image,provenance)
{
	var this_nom = document.getElementById('nom_'+image).value;
	var this_email = document.getElementById('email_'+image).value;
	var this_commentaire = document.getElementById('commentaire_'+image).value;

	if ( this_nom != '' && this_email != '' )
	{
		document.getElementById('nom_'+image).value = '';
		document.getElementById('email_'+image).value = '';
		document.getElementById('commentaire_'+image).value = '';
		if ( formulaire > 1 )
		{
			var this_telephone = document.getElementById('telephone_'+image).value;
			document.getElementById('telephone_'+image).value = '';
			var this_cp_ville = document.getElementById('cp_ville_'+image).value;
			document.getElementById('cp_ville_'+image).value = '';
			var this_adresse = document.getElementById('adresse_'+image).value;
			document.getElementById('adresse_'+image).value = '';
			var this_pays = document.getElementById('pays_'+image).value;
			document.getElementById('pays_'+image).value = '';
	
			loadXMLDoc('infos.php','evalXMLDoc','POST','id='+provenance+'&nom='+this_nom+'&email='+this_email+'&commentaire='+this_commentaire+'&telephone='+this_telephone+'&cp_ville='+this_cp_ville+'&adresse='+this_adresse+'&pays='+this_pays);
		}
		else
		{
			loadXMLDoc('infos.php','evalXMLDoc','POST','id='+provenance+'&nom='+this_nom+'&email='+this_email+'&commentaire='+this_commentaire);
		}
	}
	else
	{
		alert('Votre nom et votre adresse adresse email sont obligatoires.');
	}

	return false;
}

function infobull(id_info,text_info,titre_info,link_info) {
	document.write('<div style="position: absolute;top:0px;left:0px;visibility: hidden;z-index:500'+id_info+';" id="'+id_info+'">');
	document.write('  <table cellpadding="0"  class="bloc1" style="border:1px solid #333333;" bordercolor="#000000" cellspacing="0">');
	document.write('    <tr><td><p style="margin: 5px;">'+text_info+'</p></td></tr>');
	document.write('  </table>');
	document.write('</div>');
}

function toolbar(image,id,selection,visibility,code_H,isemail)
{

	visibility = "visible";
	if ( code_H <= 9 ) code_H = "H0" + code_H;
	if ( code_H == "H0" ) code_H = "";

	document.write('<div style="visibility: '+visibility+';" id="tool'+image+'">');
	document.write('<a href="index.php?p='+code_H+'&code=OEUVRE-'+id+'" style="text-decoration:none;" onMouseOver = "javascript:showTip(\'2\');" onMouseOut = "javascript:hideTip(\'2\');"><img src="images/oeuvres.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');

	if ( isemail == 1) {
		document.write('<a href="link.php?id='+id+'" style="text-decoration:none;" target="_blank" onMouseOver = "javascript:showTip(\'4\');" onMouseOut = "javascript:hideTip(\'4\');"><img src="images/email.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	} else {
		document.write('<a href="link.php?id='+id+'" style="text-decoration:none;" target="_blank" onMouseOver = "javascript:showTip(\'3\');" onMouseOut = "javascript:hideTip(\'3\');"><img src="images/www.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	}

	
	//document.write('<a href="javascript:open_popup(\'message.php?id='+id+'\', \'ARTRINET\',480,420);" style="text-decoration:none;" onmouseover="this.style.cursor=\'pointer\';showTip(\'4\');" onmouseout="this.style.cursor=\'default\';hideTip(\'4\');"><img src="images/email.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');

	document.write('<a href="fiche_classification.php?id='+id+'" style="text-decoration:none;" target="_blank" onMouseOver = "javascript:showTip(\'9\');" onMouseOut = "javascript:hideTip(\'9\');"><img src="images/actualite.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');

	if ( selection == "selection_on.gif" )
		document.write('<span id="span_selection_'+id+'"><img name="selection_'+id+'" src="images/'+selection+'" onclick="loadXMLDoc(\'set_bookmark.php\',\'evalXMLDoc\',\'POST\',\'id='+id+'&close=1\');" onmouseover="this.style.cursor=\'pointer\';showTip(\'8\')" onmouseout="this.style.cursor=\'default\';hideTip(\'8\');"></span>');
	else
		document.write('<span id="span_selection_'+id+'"><img name="selection_'+id+'" src="images/'+selection+'" onclick="loadXMLDoc(\'set_bookmark.php\',\'evalXMLDoc\',\'POST\',\'id='+id+'&close=1\');" onmouseover="this.style.cursor=\'pointer\';showTip(\'5\')" onmouseout="this.style.cursor=\'default\';hideTip(\'5\');"></span>');
	document.write('</div>');
}

function toolbar_jeu(image,id,selection,visibility,code_H,isemail)
{

	visibility = "visible";
	if ( code_H <= 9 ) code_H = "0" + code_H;
	document.write('<div style="visibility: '+visibility+';" id="tool'+image+'">');
	document.write('<a href="index.php?p=H'+code_H+'&code=OEUVRE-'+id+'" style="text-decoration:none;" onMouseOver = "javascript:showTip(\'2\');" onMouseOut = "javascript:hideTip(\'2\');"><img src="images/oeuvres.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	if ( isemail == 1) {
		document.write('<a href="link.php?id='+id+'" style="text-decoration:none;" target="_blank" onMouseOver = "javascript:showTip(\'4\');" onMouseOut = "javascript:hideTip(\'4\');"><img src="images/email.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	} else {
		document.write('<a href="link.php?id='+id+'" style="text-decoration:none;" target="_blank" onMouseOver = "javascript:showTip(\'3\');" onMouseOut = "javascript:hideTip(\'3\');"><img src="images/www.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	}
	
	document.write('<a href="fiche_classification.php?id='+id+'" style="text-decoration:none;" target="_blank" onMouseOver = "javascript:showTip(\'9\');" onMouseOut = "javascript:hideTip(\'9\');"><img src="images/actualite.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	//document.write('<a href="javascript:open_popup(\'message.php?id='+id+'\', \'ARTRINET\',480,420);" style="text-decoration:none;" onmouseover="this.style.cursor=\'pointer\';showTip(\'4\');" onmouseout="this.style.cursor=\'default\';hideTip(\'4\');"><img src="images/email.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	if ( selection == "selection_on.gif" )
		document.write('<span id="span_selection_'+id+'"><img name="selection_'+id+'" src="images/'+selection+'" onclick="loadXMLDoc(\'set_bookmark.php\',\'evalXMLDoc\',\'POST\',\'id='+id+'&close=1\');" onmouseover="this.style.cursor=\'pointer\';showTip(\'8\')" onmouseout="this.style.cursor=\'default\';hideTip(\'8\');"></span>');
	else
		document.write('<span id="span_selection_'+id+'"><img name="selection_'+id+'" src="images/'+selection+'" onclick="loadXMLDoc(\'set_bookmark.php\',\'evalXMLDoc\',\'POST\',\'id='+id+'&close=1\');" onmouseover="this.style.cursor=\'pointer\';showTip(\'5\')" onmouseout="this.style.cursor=\'default\';hideTip(\'5\');"></span>');
	document.write('</div>');
}

function toolbar1(image,id,selection,visibility,code_H,isemail)
{
	visibility = "visible";
	if ( code_H <= 9 ) code_H = "0" + code_H;
	var lans;
	if ( selection == "selection_on.gif" )
		lans = lan227;
	else
		lans = lan25;
	document.write('<div style="visibility: '+visibility+';" id="tool'+image+'">');
	document.write('<a href="index.php?p=H'+code_H+'&code=OEUVRE-'+id+'" onMouseOver = "javascript:showTip(\'2\');" onMouseOut = "javascript:hideTip(\'2\');"><b><img src="images/oeuvres.gif" border="0"></b></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	
	if ( isemail == 1) {
		document.write('<a href="link.php?id='+id+'" target="_blank" onMouseOver = "javascript:showTip(\'4\');" onMouseOut = "javascript:hideTip(\'4\');"><img src="images/email.gif" border="0"></b></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	} else {
		document.write('<a href="link.php?id='+id+'" target="_blank" onMouseOver = "javascript:showTip(\'3\');" onMouseOut = "javascript:hideTip(\'3\');"><img src="images/www.gif" border="0"></b></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	}
	document.write('<img src="images/email.gif" border="0" onclick="open_popup(\'message.php?id='+id+'\', \'ARTRINET\',480,420);" onmouseover="this.style.cursor=\'pointer\';javascript:showTip(\'4\');" onmouseout="this.style.cursor=\'default\';javascript:hideTip(\'4\');"></b></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	if ( selection == "selection_on.gif" )
		document.write('<span id="span_selection_'+id+'"><img name="selection_'+id+'" src="images/'+selection+'" onclick="loadXMLDoc(\'set_bookmark.php\',\'evalXMLDoc\',\'POST\',\'id='+id+'\');" onmouseover="this.style.cursor=\'pointer\';javascript:showTip(\'8\');javascript:hideTip(\'5\');" onmouseout="this.style.cursor=\'default\';javascript:hideTip(\'5\');javascript:hideTip(\'8\');"></span>');
	else
		document.write('<span id="span_selection_'+id+'"><img name="selection_'+id+'" src="images/'+selection+'" onclick="loadXMLDoc(\'set_bookmark.php\',\'evalXMLDoc\',\'POST\',\'id='+id+'\');" onmouseover="this.style.cursor=\'pointer\';javascript:showTip(\'5\');javascript:hideTip(\'8\');" onmouseout="this.style.cursor=\'default\';javascript:hideTip(\'5\');javascript:hideTip(\'8\');"></span>');
	document.write('</div>');
}

function showTip(id){
	obj = document.getElementById(id);
	obj.style.left = tempX + 15;
	obj.style.top = tempY + 15;
	obj.style.visibility = "visible";
}

function hideTip(id){
	document.getElementById(id).style.visibility = "hidden";
	if (document.getElementById('search_region') != null )
	{
		document.getElementById('search_region').style.visibility = "visible";
	}
}

function showActua(id){
	if (document.getElementById('search_region') != null )
	{
		document.getElementById('search_region').style.visibility = "hidden";
	}
	document.getElementById(id).style.visibility = "visible";
	document.getElementById(id).style.width = "100%";
	document.getElementById(id).style.height = "100%";
	document.getElementById("mask").style.visibility = "visible";
}

function showOeuvre(ident, code_id){

	if (document.getElementById('search_region') != null )
	{
		document.getElementById('search_region').style.visibility = "hidden";
	}

	var obj = document.getElementById(ident);

	obj.style.visibility = "visible";
	obj.style.width = "100%";
	obj.style.height = "100%";
	document.getElementById("mask").style.visibility = "visible";

	if (document.getElementById("image_"+ident) != null )
	{
		if ( document.getElementById("image_"+ident).innerHTML == '' )
			document.getElementById("image_"+ident).innerHTML = '<img src="imgz.php?i='+ident+'&id='+code_id+'" border="0">';
	}

}

function hideOeuvre(id){

	if ( document.getElementById('objflash_'+id) )
		document.getElementById('objflash_'+id).innerHTML = '';

	if ( document.getElementById('oeuvre_'+id) )
	{
		document.getElementById('oeuvre_'+id).style.visibility='hidden';
		document.getElementById('oeuvre_'+id).style.display='none';
	}
	if ( document.getElementById('fiche_'+id) )
	{
		document.getElementById('fiche_'+id).style.visibility='';
		document.getElementById('fiche_'+id).style.display='';
	}

	document.getElementById(id).style.visibility = "hidden";
	document.getElementById("mask").style.visibility = "hidden";
	if (document.getElementById('search_region') != null )
	{
		document.getElementById('search_region').style.visibility = "visible";
	}
	if ( return_item1 != '' )
	{
		eval(return_item1);
		return_item = '';
		return_item1 = '';
	}

}

function createXMLHttpRequest() {
	if(window.XMLHttpRequest){
		xmlconnex=new XMLHttpRequest();
	}else if(window.ActiveXObject){
		var control=(is_ie5)?"Microsoft.XMLHTTP":"Msxml2.XMLHTTP";xmlconnex=new ActiveXObject(control);
	}
	return xmlconnex;
}

function loadXMLDoc(url,cible,methode,data){
	if(!methode)methode="GET";
	if(!data)data=null;
	xmlconnex=createXMLHttpRequest();
	if(xmlconnex){
		xmlconnex.open(methode,url,true);
		if (methode=="POST"){xmlconnex.setRequestHeader("Content-type", "application/x-www-form-urlencoded");}else{data=null;}
		xmlconnex.send(data);
		xmlconnex.onreadystatechange = window[cible];
	}
}

function open_popup(url,name,width,height){
	neo = window.open(url, name, 'HEIGHT='+height+',resizable=no,WIDTH='+width+',scrollbars=yes,dependent,alwaysRaised');
	if(neo.window.focus){neo.window.focus();}
}

function light_on(id){
	topic_row_style=document.getElementById(id);
	topic_row_style.style.background='#D5D6A6';
	topic_row_style.style.cursor='pointer';
}

function light_off(id){
	topic_row_style=document.getElementById(id);
	topic_row_style.style.background='#F1F2D2';
	topic_row_style.style.cursor='default';
}

infobull('1',lan10);
infobull('2',lan11);
infobull('3',lan12);
infobull('4',lan13);
infobull('5',lan14);
infobull('6',lan11);
infobull('7',lan15);
infobull('8',lan227);
infobull('9',lan252);