function getCookieVal(offset) {
var endstr=document.cookie.indexOf (";", offset);
if (endstr==-1) endstr=document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function LireCookie() {
var arg="coffreabd=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
while (i<clen) {
var j=i+alen;
if (document.cookie.substring(i, j)==arg) return getCookieVal(j);
i=document.cookie.indexOf(" ",i)+1;
if (i==0) break;
}
return 0;
}
var x = location.search.indexOf("s=");
if (x > 0) {
	Session = location.search.substring(x+2, location.search.length);
	x = Session.indexOf("&");
	if (x > 0) {
		Session=Session.substring(0, x);
	}
}
else {
	Session = LireCookie();
}
if (Session != "0") {
	var d = new Date();
	t = d.getTime();
	d.setTime(t+3600000);
	document.cookie='coffreabd='+escape(Session)+'; expires='+d.toGMTString()+';path=/;';
}
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3; }');
document.write('#topgauche { position:absolute; top:'+80+'px; left:'+240+'px; z-index:10; }');
document.write('A:hover.ejsmenu {color:#000000; text-decoration:none;}');
document.write('A.ejsmenu {color:#000000; text-decoration:none;}');
document.write('BODY, TD {\n');
document.write('	font-family : Verdana, Arial, Helvetica, sans-serif;\n');
document.write('	font-size : 8pt;\n');
document.write('	font-style : normal;\n');
document.write('	color : Black;}\n');
document.write('BODY, TD { font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 8pt; font-style : normal; color : Black;}\n');
document.write('h1 { font-family : Comic Sans MS; font-size : 14pt; font-style : bold; color : Black; }\n');
document.write('h2 { font-family : Comic Sans MS; font-size : 12pt; font-style : bold; color : Black; }\n');
document.write('h3 { font-family : Comic Sans MS;font-size : 10pt;font-style : bold;color : Black;}\n');
document.write('A { text-decoration: none;color: blue; }\n');
document.write('A:Hover { text-decoration: underline; color: red;}\n');
document.write('A:Link { text-decoration: none; color: Red;}\n');
document.write('A:Visited { text-decoration: none; color: blue;}\n');
document.write('A:Active { text-decoration: none; color: green;}\n');
document.write('</style>');

function entete(n) {
document.write('<center><table border=0 cellpadding="2" width="840"><tr><td align="Center"><a href="http://www.coffre-a-bd.com/"><img src="http://www.coffre-a-bd.com/figures/logo.jpg" border=0></a><br><big><b>Le Coffre &agrave; BD</b></big></td>\n');
document.write('<td valign="Top"><table border=0 cellpadding="2"><tr><td align="Center">')
vignettepub();
document.write('</td>\n');
if ((Session == 0)&&(n!=1)) {
document.write('<td rowspan="2"><a href="http://www.coffre-a-bd.com/pres.html"><img src="http://www.coffre-a-bd.com/figures/infonouveau.jpg" border=0></a></td>\n');
}
document.write('</tr><tr><td><table border=0 cellpadding="2" width="100%"><tr><td bgcolor="yellow" align=Center><b>\n');
if (!(n&2)) {
if (Session == 0) {
document.write('<a href="http://www.coffre-a-bd.com/ident.html">S\'identifier</a>\n');
} else {
document.write('<a href="http://www.coffre-a-bd.com/cgi-bin/moncompte.bin?s='+Session+'" TARGET="_top">Mon compte</a>\n');
}
} else {
document.write('Identité\n');
}
document.write('</b></td><td bgcolor="yellow" align=Center><b>\n');
document.write('<a href="http://www.coffre-a-bd.com/bdd.html">Les bases de données du Coffre</a>\n');
document.write('</b></td><td bgcolor="yellow" align=Center><b>\n');
document.write('<a href="http://www.coffre-a-bd.com/choixlivre.html?s='+Session+'" TARGET="_top">Les BD à lire en ligne</a>\n');
document.write('</b></td><td bgcolor="yellow" align=Center><b>\n');
document.write('<a href="http://www.coffre-a-bd.com/cgi-bin/boutique.bin?s='+Session+'" TARGET="_top">La boutique</a>\n');
document.write('</b></td><td bgcolor="yellow" align=Center><b>\n');
document.write('<a href="http://www.coffre-a-bd.com/collectionneurs.html?s='+Session+'" TARGET="_top">L\'espace collectionneurs</a>\n');
document.write('</b></td><td bgcolor="yellow" align=Center><b>\n');
document.write('<a href="http://www.coffre-a-bd.com/liens.html?s='+Session+'" TARGET="_top">Les liens</a>\n');
document.write('</b></td></tr></table></td></tr></table></td></tr></table></center>\n');
}
function bandeau() {
document.write('<iframe src="http://fl01.ct2.comclick.com/aff_frame.ct2?id_regie=1&num_editeur=4140&num_site=1&num_emplacement=1" WIDTH="468" HEIGHT="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" bordercolor="#000000"></iframe>\n');
//document.write('<IFRAME height=60 width=468 Marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0  scrolling=no bordercolor="#000000" SRC="http://fl01.ct2.comclick.com/aff_frame.ct2?id_regie=1&num_editeur=4140&num_site=1&num_emplacement=1">\n');
//document.write('<SCRIPT type="text/JavaScript" src="http://fl01.ct2.comclick.com/aff_js_src.ct2?id_regie=1&num_editeur=4140&num_site=1&num_emplacement=1"></SCRIPT></IFRAME>\n');
}
function vignette() {
var al = Math.round(Math.random()*10000000000000);
var Link = "<a href=\"http://fl01.ct2.comclick.com/click_js.ct2?id_regie=1&num_editeur=4140&num_site=1&num_emplacement=2&num="+ al + "\" target=_blank><img border=0 src=\"http://fl01.ct2.comclick.com/aff_js.ct2?id_regie=1&num_editeur=4140&num_site=1&num_emplacement=2&num=" + al + "\" ></a>";
document.write(Link);
}
function wipub(annonceur, visuel) {
	document.write('<a href="http://www.wipub.com/clic.php?id_annonceur='+annonceur+'&visuel='+visuel+'&id_affilie=3917" target="_blank">\n');
	document.write('<img border=0 src="http://www.wipub.com/affichage.php?id_annonceur='+annonceur+'&visuel='+visuel+'&id_affilie=3917"></a>\n');
}
function wipub3() {
	var v = Math.random();
	if (v > 0.9) {
		// Nord cinema
		annonceur = 1291;
		visuel = 6266;
	}
	else if (v > 0.7) {
		// Journaux
		annonceur = 361;
		visuel = 1146;
	}
	else if (v > 0.6) {
		// Cineboutik
		annonceur = 291;
		visuel = 784;
	}
	else if (v > 0.5) {
		// Cineboutik
		annonceur = 291;
		visuel = 783;
	}
	else if (v > 0.4) {
		// Cineboutik
		annonceur = 291;
		visuel = 762;
	}
	else if (v > 0.3) {
		// Vistaprint
		annonceur = 268;
		visuel = 966;
	}
	else {
		// BD Zone
		annonceur = 622;
		visuel = 2576;
	}
	wipub(annonceur, visuel);
}

function wipub2(annonceur, visuel) {
	document.write('<a href="http://www.wipub.com/clic.php?id_annonceur='+annonceur+'&visuel='+visuel+'&id_affilie=3917" target="_blank">\n');
	document.write('<img border=0 src="http://www.wipub.com/affichage.php?id_annonceur='+annonceur+'&visuel='+visuel+'&id_affilie=3917" alt="5 annonces gratuites en tapant le code xz123xz"></a>\n');
}

function vignettepub() {
		var v = Math.random();
		if (v > 0.95) {
			// Albums Epervier
//			document.write('<a href="http://coffre-a-bd.com/cgi-bin/boutique.bin"><img src="http://bdoubliees.com/banniere/epervier.gif" alt="Des albums qui &eacute;taient introuvables !!!"></a>\n');
			document.write('<a href="http://coffre-a-bd.com/cadeaux.html"><img src="http://bdoubliees.com/banniere/jeunesse.gif" alt="Des albums qui &eacute;taient introuvables !!!"></a>\n');
		}
		else if (v > 0.8) {
			// Pub generale
			bandeau();
		}
		else if (v > 0.65) {
			// cadres on line
			document.write('<A href="http://track.effiliation.com/servlet/effi.click?id_compteur=10908404" target="_blank"><IMG SRC="http://track.effiliation.com/servlet/effi.show?id_compteur=10908404" border="0"></A>\n');
		}
		else if (v > 0.60) {
			// Priceminister
			document.write('<A href="http://track.effiliation.com/servlet/effi.click?id_compteur=10908405&tracking=1580040" target="_blank"><IMG SRC="http://track.effiliation.com/servlet/effi.show?id_compteur=10908405" border="0"></A>\n');
		}
		else if (v > 0.50) {
			// Blake et Mortimer
			document.write('<a href="http://ad.zanox.com/ppc/?8842033C1437668121T" target=_new><img src="http://ad.zanox.com/ppv/?8842033C1437668121" align="bottom" width="468" height="60" border="0" hspace="1" alt="Blake et Mortimer-468x60 Animé"></a>\n');
		}
		else if (v > 0.45) {
			// fnac
			document.write('<a href="http://ad.zanox.com/ppc/?8724103C1342890190T" target=_new><img src="http://ad.zanox.com/ppv/?8724103C1342890190" align="bottom" width="468" height="60" border="0" hspace="1" alt="Top affaires_468x60.gif"></a>\n');
		}
		else if (v > 0.40) {
			// tradedoubler
			document.write('<iframe src="http://impfr.tradedoubler.com/imp/pool/iframe/13388/375685" width=468 height=60 frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling="no"></iframe>\n');
		}
		else if (v > 0.30) {
			// Wipub
			wipub3();
		}
		else if (v > 0.25) {
			// bon petit vin
			document.write('<A href="http://track.effiliation.com/servlet/effi.click?id_compteur=10900323" target="_blank"><IMG SRC="http://track.effiliation.com/servlet/effi.show?id_compteur=10900323" border="0"></A>\n');
		}
		else if (v > 0.20) {
			// ADEBOOK
			document.write('<a href="http://ad.zanox.com/ppc/?5809489C1778108508T" target="_new"><img src="http://ad.zanox.com/ppv/?5809489C1778108508" align="bottom" width="468" height="60" border="0" hspace="1" alt="AbeBooks.fr - Livraison gratuite"></a>\n');
		}
		else if (v > 0.18) {
			// Dupuis Abonnement Spirou
			document.write('<a href="http://ad.zanox.com/ppc/?5291653C109875024T" target="_new"><img src="http://ad.zanox.com/ppv/?5291653C109875024" align="bottom" border="0" hspace="1" alt="468x60 magazine Spirou"></a>\n');
		}
		else if (v > 0.16) {
			// Dupuis Colis Spirou
			document.write('<a href="http://ad.zanox.com/ppc/?5291657C1172347824T" target="_new"><img src="http://ad.zanox.com/ppv/?5291657C1172347824" align="bottom" width="468" height="60" border="0" hspace="1" alt="bdclub_468x60"></a>\n');
		}
		else if (v > 0.14) {
			// Dupuis Spip
			document.write('<a href="http://ad.zanox.com/ppc/?5291667C1757332848T" target="_new"><img src="http://ad.zanox.com/ppv/?5291667C1757332848" align="bottom" width="468" height="60" border="0" hspace="1" alt="clubspip_468x60"></a>\n');
		}
		else if (v > 0.12) {
			// Club Spirou
			document.write('<a href="http://ad.zanox.com/ppc/?5291670C1680781384T" target="_new"><img src="http://ad.zanox.com/ppv/?5291670C1680781384" align="bottom" width="468" height="60" border="0" hspace="1" alt="clubspirou_468x60"></a>\n');
		}
		else if (v > 0.10) {
			// Dupuis Kid Paddle
			document.write('<a href="http://ad.zanox.com/ppc/?5291676C1060172272T"  target="_new"><img src="http://ad.zanox.com/ppv/?5291676C1060172272" align="bottom" width="468" height="60" border="0" hspace="1" alt="kidspackfun_468x60"></a>\n');
		}
		else if (v > 0.08) {
			// Cultura
			document.write('<a href="http://ad.zanox.com/ppc/?6115533C418007896T" target="_new"><img src="http://ad.zanox.com/ppv/?6115533C418007896" align="bottom" width="468" height="60" border="0" hspace="1" alt="bandeau_468x60_2.gif"></a>\n');
		}
//		else if (v > 0.07) {
			// Chapitre Petit Nicolas firstcoffee
//			document.write('<a href="http://tracker.affistats.com/dirclick.php?id=a3628b3646c411276e2f2g5h168i1k4" target="_new"><img src="http://tracker.affistats.com/dirtag.php?id=a3628b3646c411276e2f2g5h168i1k4"></a>\n');
//		}
		else if (v > 0.05) {
		// CAMIF 
			document.write('<A href="http://track.effiliation.com/servlet/effi.click?id_compteur=10888618" target="_blank">\n');
			document.write('<IMG SRC="http://track.effiliation.com/servlet/effi.show?id_compteur=10888618" border="0"></A>\n');
		}
		else {
			document.write('<iframe scrolling="no" frameborder=0 width=468 height=62\n');
			document.write('src="http://rcm-fr.amazon.fr/e/cm?t=bandesdessine-21&p=13&o=8&l=bn1&browse=3130121&mode=books-fr&f=ifr&bg1=FFFFC6&fc1=000000&lc1=FF0000&lt1=_blank">\n');
			document.write('<table border="0" cellpadding="0" cellspacing="0" width="468" height="60"><tr><td>\n');
			document.write('<MAP NAME="boxmap13"><AREA SHAPE="RECT" COORDS="73,45,196,60" HREF="http://rcm-fr.amazon.fr/e/cm/privacy-policy.html?o=8" target=main alt="A propos de cet espace">\n');
			document.write('<AREA COORDS="0,0,10000,10000" HREF="http://www.amazon.fr/exec/obidos/redirect?tag=bandesdessine-21&path=tg/browse/-/405320" target=main></MAP>\n');
			document.write('<img src="http://rcm-images.amazon.com/images/G/08/associates/amzn_recommends/multiproducts-banner-468x60.gif" width="468" height="60" border="0" usemap="#boxmap13">\n');
			document.write('</td></tr></table> </iframe>\n');
		}
}

function baspage(n) {
document.write('<center>\n');
var url=location.href;
if (url.indexOf("tintin") >= 0 ) {
	document.write('<a href="http://ad.zanox.com/ppc/?8842056C2050479203T" target=_new><img src="http://ad.zanox.com/ppv/?8842056C2050479203" align="bottom" width="300" height="250" border="0" hspace="1" alt="Blake et Mortimer-300x250 Animé"></a>\n');
} else 
if (url.indexOf("journalspirou") >= 0 ) {
	document.write('<p><a href="http://ad.zanox.com/ppc/?5291639C1004460622T"  target="_new"><img src="http://ad.zanox.com/ppv/?5291639C1004460622" align="bottom" border="0" hspace="1" alt="300x250 magazine Spirou"></a>\n');
} else {
	var v = Math.random();
	if (v > 0.7) {
			// Chapitre.com generique BD
			document.write('<a href="http://ad.zanox.com/ppc/?6141639C1616996064T" target="_new"><img src="http://ad.zanox.com/ppv/?6141639C1616996064" align="bottom" width="468" height="60" border="0" hspace="1" alt="BD 468x60"></a>\n');
	}
	else if (v > 0.5) {
			// Chapitre : livres introuvables
			document.write('<a href="http://ad.zanox.com/ppc/?6628146C1994973000T" target="_new"><img src="http://ad.zanox.com/ppv/?6628146C1994973000" align="bottom" width="468" height="60" border="0" hspace="1" alt="Harry Potter 468x60 i"></a>\n');
	}
	else if (v > 0.25) {
			// Priceminister
			document.write('<A href="http://track.effiliation.com/servlet/effi.click?id_compteur=1715965&tracking=62001" target="_blank"><IMG SRC="http://track.effiliation.com/servlet/effi.show?id_compteur=1715965" border=0></A>\n');
	}
	else {
		// Cultura
		document.write('<a href="http://ad.zanox.com/ppc/?6115533C418007896T" target="_new"><img src="http://ad.zanox.com/ppv/?6115533C418007896" align="bottom" width="468" height="60" border="0" hspace="1" alt="bandeau_468x60_2.gif"></a>\n');
	}
}
document.write('</center>\n');
google_ad_client = "pub-1297599441195133";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_link = "0000FF";
google_color_bg = "FFFFFF";
google_color_text = "000000";
google_color_url = "008000";
document.write('<center><script type="text/javascript"\n');
document.write('src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n');
document.write('</script></center>\n');
document.write('<br><br><hr><small>Hors illustrations et bandes dessin&eacute;es qui appartiennent &agrave; leurs auteurs respectifs, le contenu de cette page est &copy; le Coffre &agrave; BD.<br>\n');
document.write('Les reproductions, quelle qu\'en soit la forme, ne sont pas autoris&eacute;es.</small>\n'); 
google_ad_client = "pub-1297599441195133";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_link = "0000FF";
google_color_bg = "FFFFFF";
google_color_text = "000000";
google_color_url = "008000";
document.write('<center><script type="text/javascript"\n');
document.write('src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n');
document.write('</script></center>\n');
document.write('<br><br><center><table cellpadding="2" width="500"><tr><td><a href="http://www.coffre-a-bd.com/contact.html">Contact</a></td><td><a href="http://www.coffre-a-bd.com/aide.html">Aide</a></td><td><a href="http://www.coffre-a-bd.com/plan.html">Plan du site</a></ts></tr></table></center>\n');
document.write('<br><hr><small>Hors illustrations et bandes dessinées qui appartiennent à leurs auteurs respectifs, le contenu de cette page est &copy; le Coffre à BD.<br>\n');
document.write('Les reproductions, quelle qu\'en soit la forme, ne sont pas autorisées.</small><br><hr>\n'); 
}

function annee(n) {
 document.write('<p><TABLE border="0" cellpadding="0" cellspacing="0" width="50%" bgcolor="#eeceb9"><TR>');
 document.write('<TH nowrap><a href="../annees/'+n+'.htm">'+n+'</a></TH></TR></TABLE><p>');
}
function an(n) {
 document.write('<p><table border="0" cellpadding="0" cellspacing="0" bgcolor="yellow"><tr>');
 document.write('<th nowrap><a href="../annees/'+n+'.htm">'+n+'</a></th></tr></table><p>');
}
function dta() {
 document.write('<table border cellpadding="2" bgcolor="#fef0e0"><tr><td>No</td><td>Type</td><td>Titre</td><td>Co-auteurs</td></tr>\n');
}
function dts() {
 document.write('<table border cellpadding="2" bgcolor="#fef0e0"><tr><td>No</td><td>Type</td><td>Titre</td><td>Auteurs</td></tr>\n');
}
function couvjour() {
  var localnow = new Date(); 
  var lTime = localnow.getTime()+(localnow.getTimezoneOffset()-60)*60; 
  var now = new Date(lTime); 
  var day = now.getDate(); 
  document.write('<b><a href="http://www.coffre-a-bd.com/couvertures/'+day+'.htm">La couverture du jour</a></b>\n');
}
nav=navigator.appName.substring(0,3);
ver=navigator.appVersion.substring(0,1);
if (nav == "Mic" && ver >= 4) {
	document.write('<link rel="stylesheet" type="text/css" href="http://www.coffre-a-bd.com//bdoubnew.css">\n');
}
function signa(nom) {
document.write("<a href=\"mailto:"+nom+"@"+"bdoubliees.com\">"+nom+"@"+"bdoubliees.com</a>");
}
function signasub(nom, subj) {
nom = "bdoublie";
document.write("<a href=\"mailto:"+nom+"@"+"bdoubliees.com?subject="+subj+"\">"+nom+"@"+"bdoubliees.com</a>");
}
function email(nom, dom) {
document.write("<a href=\"mailto:"+nom+"@"+dom+"\">"+nom+"@"+dom+"</a>");
}
function email2(nom, dom, txt) {
document.write("<a href=\"mailto:"+nom+"@"+dom+"\">"+txt+"</a>");
}
function refs(intitule, ref) {
	document.write('<a href="http://www.coffre-a-bd.com/'+ref+'?s='+Session+'">'+intitule+'</a>\n');
}
