// JavaScript Document
function afficherVoirPanier(){
	/*
	var codehtml = '<form name="_xclick" target="paypal" action="https://www.sandbox.paypal.com" method="post">'
	+ '<input type="hidden" name="cmd" value="_cart" />'
	+ '<input type="hidden" name="business" value="vendeur@auclairdemaplume.fr" />'
	+ '<input title="Voir le panier" type="image" src="images/v_cadie1.jpg" border="0" name="submit" alt="Voir le panier" '
	//+ 'onMouseOver="javascript: this.src=\'images/v_cadie2.gif\';" onMouseOut="javascript: this.src=\'images/v_cadie1.gif\';"'
	+ ' />'
	+ '<input type="hidden" name="display" value="1" />'
	+ '</form>';
	*/
	var codehtml = '<form name="_xclick" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">'
	+ '<input type="hidden" name="cmd" value="_cart" />'
	+ '<input type="hidden" name="business" value="paiement@auclairdemaplume.com" />'
	+ '<input title="Voir le panier" type="image" src="images/v_cadie1.jpg" border="0" name="submit" alt="Voir le panier" '
	//+ 'onMouseOver="javascript: this.src=\'images/v_cadie2.gif\';" onMouseOut="javascript: this.src=\'images/v_cadie1.gif\';"'
	+ ' />'
	+ '<input type="hidden" name="display" value="1" />'
	+ '</form>';
	document.write(codehtml);
}

function ajouter_panier(produit, version, prix){
	/*
	var codehtml = '<form name="_xclick" target="paypal" action="https://www.sandbox.paypal.com" method="post">'
	+ '<input type="hidden" name="cmd" value="_cart" />'
	+ '<input type="hidden" name="business" value="vendeur@auclairdemaplume.fr" />'
	+ '<input type="hidden" name="currency_code" value="EUR" />'
	+ '<input type="hidden" name="item_name" value="'+ produit +' - '+ version +'" />'
	+ '<input type="hidden" name="amount" value="'+ prix +'" />'
	+ '<input type="image" src="images/cadie1.jpg" border="0" name="submit" alt="Ajoutez '+produit+' à votre cadie"  title="Ajoutez '+produit+' à votre cadie" '
	//+ 'onMouseOver="javascript: this.src=\'images/cadie2.jpg\';" onMouseOut="javascript: this.src=\'images/cadie1.jpg\';"'
	+ ' />'
	+ '<input type="hidden" name="add" value="1" />'
	+ '</form>';
	*/
	var codehtml = '<form name="_xclick" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">'
	+ '<input type="hidden" name="cmd" value="_cart" />'
	+ '<input type="hidden" name="business" value="paiement@auclairdemaplume.com" />'
	+ '<input type="hidden" name="currency_code" value="EUR" />'
	+ '<input type="hidden" name="item_name" value="'+ produit +' - '+ version +'" />'
	+ '<input type="hidden" name="amount" value="'+ prix +'" />'
	+ '<input type="image" src="images/cadie1.jpg" border="0" name="submit" alt="Ajoutez '+produit+' à votre cadie"  title="Ajoutez '+produit+' à votre cadie" '
	//+ 'onMouseOver="javascript: this.src=\'images/cadie2.jpg\';" onMouseOut="javascript: this.src=\'images/cadie1.jpg\';"'
	+ ' />'
	+ '<input type="hidden" name="add" value="1" />'
	+ '</form>';
	document.write(codehtml);
}

function afficher_produit(ref, image, titre, nbp, c, dim, age, col){
	/*
	col = 'coloriage';
	col = 'pantin';
	col = 'popup';
	col = 'machines';
	col = 'autre';
	col = 'monuments';
	col = 'activites';
	*/
	if (col=="coloriage" || col=="activites"){
		var codehtml = '<a onclick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<img src="images/tiny/'+image+'" border="0" alt='+titre+'/>'
		+ '</a></td>'
		+ '<td align="left" bgcolor="#C3D2D9" width="320px">'
		+ '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<b style="text-decoration:underline;">'+titre+'</b><br /><span style="font-size:x-small; text-decoration:underline;">'+nbp+' pages '+c+'ferm&eacute;es par un ruban<br />'+dim+'mm - à partir de '+age+' ans</span>'
		+ '</a>';
	}
	if (col=="pantin"){
		var codehtml = '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<img src="images/tiny/'+image+'" border="0" alt='+titre+'/>'
		+ '</a></td>'
		+ '<td align="left" bgcolor="#C3D2D9" width="320px">'
		+ '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<b style="text-decoration:underline;">'+titre+'</b><br /><span style="font-size:x-small; text-decoration:underline;">pochette fournie avec les attaches parisiennes<br />'+dim+'mm - à partir de '+age+' ans</span>'
		+ '</a>';
	}
	if (col=="popup"){
		var codehtml = '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<img src="images/tiny/'+image+'" border="0" alt='+titre+'/>'
		+ '</a></td>'
		+ '<td align="left" bgcolor="#C3D2D9" width="320px">'
		+ '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<b style="text-decoration:underline;">'+titre+'</b><br /><span style="font-size:x-small; text-decoration:underline;">album avec rabats ferm&eacute; par un ruban, comprenant '+nbp+' fiches '+c+'<br />'+dim+'mm - à partir de '+age+' ans</span>'
		+ '</a>';
	}
	if (col=="machines"){
		var codehtml = '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<img src="images/tiny/'+image+'" border="0" alt='+titre+'/>'
		+ '</a></td>'
		+ '<td align="left" bgcolor="#C3D2D9" width="320px">'
		+ '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<b style="text-decoration:underline;">'+titre+'</b><br /><span style="font-size:x-small; text-decoration:underline;">pochette comprenant '+nbp+' fiches '+c+'&agrave; d&eacute;couper et un ruban<br />'+dim+'mm - à partir de '+age+' ans</span>'
		+ '</a>';
	}
	if (col=="monuments"){
		var codehtml = '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<img src="images/tiny/'+image+'" border="0" alt='+titre+'/>'
		+ '</a></td>'
		+ '<td align="left" bgcolor="#C3D2D9" width="320px">'
		+ '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<b style="text-decoration:underline;">'+titre+'</b><br /><span style="font-size:x-small; text-decoration:underline;">pochette comprenant '+nbp+' fiches '+c+', des attaches et un ruban<br />'+dim+'mm - à partir de '+age+' ans</span>'
		+ '</a>';
	}
	if (col=="autre"){
		var codehtml = '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<img src="images/tiny/'+image+'" border="0" alt='+titre+'/>'
		+ '</a></td>'
		+ '<td align="left" bgcolor="#C3D2D9" width="320px">'
		+ '<a onClick="javascript: remplir(\''+ref+'\');" style="cursor: \'pointer\';" title="Acc&eacute;dez &agrave; la fiche d&eacute;taill&eacute;e de '+titre+'">'
		+ '<b style="text-decoration:underline;">'+titre+'</b><br /><span style="font-size:x-small; text-decoration:underline;">tryptique ferm&eacute; par un ruban<br />'+dim+'mm - à partir de '+age+' ans</span>'
		+ '</a>';
	}
	document.write(codehtml);
}
