// Generated by the Blogger Archive Script Generator
// at http://philringnalda.com/scriptgen/
// Based on code by Andy Buchanan from
// http://weblog.cheesephone.co.uk/mytemplate.html
// User data
var defaultlimit = 5;
var halflimit = Math.floor( defaultlimit / 2 );
var moreLinksPhrase = " [tout]";
var fewerLinksPhrase = " [récents]";
var currentPageName = " page principale";
var currentPageLink = "../index.htm";
var archivePath = "";
var preLink = " ";
var postLink = "";
function ArchiveCookie_GetCookie(){
var i = document.cookie.indexOf( this.CookieName + "=" );
if ( -1 != i ){
var e = document.cookie.slice( i ).indexOf( ";" );
this.cookieVal = document.cookie.slice( i+this.CookieName.length+1, (-1 != e)?e:document.cookie.length );
return this.cookieVal;
}
return null;
}
function ArchiveCookie_SetCookie( Value ){
var expireDate = new Date();
expireDate.setTime( expireDate.getTime() + this.expireTimeInMs );
var cookietext = this.CookieName + "=" + Value + "; expires=" + expireDate.toGMTString()+"; path=/";
document.cookie = cookietext;
this.cookieVal = Value;
}
function ArchiveCookie_KillCookie(){
var expireDate = new Date();
document.cookie = this.CookieName + "=0" + "; expires=" + expireDate.toGMTString();
this.cookieVal = null;
}
function ArchiveCookie_GetValue(){
return this.cookieVal;
}
function ArchiveCookie( theCookieName, theExpireTimeInDays ){
this.CookieName = theCookieName;
this.cookieVal = null;
this.expireTimeInMs = theExpireTimeInDays * 100 * 60 * 60 * 24;
// methods
ArchiveCookie.prototype.GetCookie = ArchiveCookie_GetCookie;
ArchiveCookie.prototype.SetCookie = ArchiveCookie_SetCookie;
ArchiveCookie.prototype.KillCookie = ArchiveCookie_KillCookie;
ArchiveCookie.prototype.GetValue = ArchiveCookie_GetValue;
}
function ArchivePage_MakeLink(){
var month_name = new Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre");
var newName = preLink + month_name[this.StartDate.getMonth()]+" "+this.StartDate.getFullYear() + postLink;
var outString = "";
if ( -1 != location.href.indexOf( this.Link ) ){
outString = "" + newName + "
";
}
else{
outString = "" + newName + "
";
}
return outString;
}
function ArchivePage_Compare( rhs ){
if ( this.StartDate == rhs.StartDate )
return 0;
else if ( this.StartDate > rhs.StartDate )
return 1;
else
return -1;
}
function ArchivePage( theLink, theName ){
this.Link = theLink;
this.Name = theName;
this.StartDate = new Date( this.Name.slice(6,10), this.Name.slice(0,2)-1, this.Name.slice(3,5) );
this.EndDate = new Date( this.Name.slice(13+6,13+10), this.Name.slice(13+0,13+2)-1, this.Name.slice(13+3,13+5) );
ArchivePage.prototype.MakeLink = ArchivePage_MakeLink;
ArchivePage.prototype.Compare = ArchivePage_Compare;
}
function bi_comp( a, b ){
return -a.Compare( b );
}
function ShowAll(){
var cookie = new ArchiveCookie( "LimitArchive", 365 );
cookie.SetCookie( 0 );
location.href = location.href;
}
function ShowRecent( HowMany ){
var cookie = new ArchiveCookie( "LimitArchive", 365 );
cookie.SetCookie( HowMany );
location.href = location.href;
}
function FindIdx( myURL ){
for ( var n=0; n BlogInfo.length ) || ( 0 == limit )){
limit = BlogInfo.length;
}
var start = 0;
var end = limit;
currentPage = FindIdx(location.href);
if ( limit < BlogInfo.length ){
if ( null == currentPage ){
start = 0;
end = limit - 1;
}
else {
if ( currentPage < halflimit ){
start = 0;
end = limit;
}
else {
if (( currentPage + halflimit ) > ( BlogInfo.length - 1 )){
end = BlogInfo.length;
start = currentPage - ( limit - ( BlogInfo.length - 1 - currentPage ) - 1 );
}
else {
start = currentPage - halflimit;
end = currentPage + halflimit + 1;
}
}
}
}
if ( null != currentPage ){ document.write( "" + currentPageName + "
"); }
for ( var n=start; n" + fewerLinksPhrase + "
" );
}
else {
document.write( "" + moreLinksPhrase + "
" );
}
}
var count=0;
var BlogInfo = new Array();
BlogInfo[count++] = new ArchivePage( "2000_08_01_archive.html" , "08/01/2000 - 08/31/2000" );
BlogInfo[count++] = new ArchivePage( "2000_09_01_archive.html" , "09/01/2000 - 09/30/2000" );
BlogInfo[count++] = new ArchivePage( "2000_10_01_archive.html" , "10/01/2000 - 10/31/2000" );
BlogInfo[count++] = new ArchivePage( "2000_11_01_archive.html" , "11/01/2000 - 11/30/2000" );
BlogInfo[count++] = new ArchivePage( "2000_12_01_archive.html" , "12/01/2000 - 12/31/2000" );
BlogInfo[count++] = new ArchivePage( "2001_01_01_archive.html" , "01/01/2001 - 01/31/2001" );
BlogInfo[count++] = new ArchivePage( "2001_02_01_archive.html" , "02/01/2001 - 02/28/2001" );
BlogInfo[count++] = new ArchivePage( "2001_03_01_archive.html" , "03/01/2001 - 03/31/2001" );
BlogInfo[count++] = new ArchivePage( "2001_04_01_archive.html" , "04/01/2001 - 04/30/2001" );
BlogInfo[count++] = new ArchivePage( "2001_05_01_archive.html" , "05/01/2001 - 05/31/2001" );
BlogInfo[count++] = new ArchivePage( "2001_06_01_archive.html" , "06/01/2001 - 06/30/2001" );
BlogInfo[count++] = new ArchivePage( "2001_07_01_archive.html" , "07/01/2001 - 07/31/2001" );
BlogInfo[count++] = new ArchivePage( "2001_08_01_archive.html" , "08/01/2001 - 08/31/2001" );
BlogInfo[count++] = new ArchivePage( "2001_09_01_archive.html" , "09/01/2001 - 09/30/2001" );
BlogInfo[count++] = new ArchivePage( "2001_10_01_archive.html" , "10/01/2001 - 10/31/2001" );
BlogInfo[count++] = new ArchivePage( "2001_11_01_archive.html" , "11/01/2001 - 11/30/2001" );
BlogInfo[count++] = new ArchivePage( "2001_12_01_archive.html" , "12/01/2001 - 12/31/2001" );
BlogInfo[count++] = new ArchivePage( "2002_01_01_archive.html" , "01/01/2002 - 01/31/2002" );
BlogInfo[count++] = new ArchivePage( "2002_02_01_archive.html" , "02/01/2002 - 02/28/2002" );
BlogInfo[count++] = new ArchivePage( "2002_03_01_archive.html" , "03/01/2002 - 03/31/2002" );
BlogInfo[count++] = new ArchivePage( "2002_04_01_archive.html" , "04/01/2002 - 04/30/2002" );
BlogInfo[count++] = new ArchivePage( "2002_05_01_archive.html" , "05/01/2002 - 05/31/2002" );
BlogInfo[count++] = new ArchivePage( "2002_06_01_archive.html" , "06/01/2002 - 06/30/2002" );
BlogInfo[count++] = new ArchivePage( "2002_07_01_archive.html" , "07/01/2002 - 07/31/2002" );
BlogInfo[count++] = new ArchivePage( "2002_08_01_archive.html" , "08/01/2002 - 08/31/2002" );
BlogInfo[count++] = new ArchivePage( "2002_09_01_archive.html" , "09/01/2002 - 09/30/2002" );
BlogInfo[count++] = new ArchivePage( "2002_10_01_archive.html" , "10/01/2002 - 10/31/2002" );
BlogInfo[count++] = new ArchivePage( "2002_11_01_archive.html" , "11/01/2002 - 11/30/2002" );
BlogInfo[count++] = new ArchivePage( "2002_12_01_archive.html" , "12/01/2002 - 12/31/2002" );
BlogInfo[count++] = new ArchivePage( "2003_01_01_archive.html" , "01/01/2003 - 01/31/2003" );
BlogInfo[count++] = new ArchivePage( "2003_02_01_archive.html" , "02/01/2003 - 02/28/2003" );
BlogInfo[count++] = new ArchivePage( "2003_03_01_archive.html" , "03/01/2003 - 03/31/2003" );
BlogInfo[count++] = new ArchivePage( "2003_04_01_archive.html" , "04/01/2003 - 04/30/2003" );
BlogInfo[count++] = new ArchivePage( "2003_05_01_archive.html" , "05/01/2003 - 05/31/2003" );
BlogInfo[count++] = new ArchivePage( "2003_06_01_archive.html" , "06/01/2003 - 06/30/2003" );
BlogInfo[count++] = new ArchivePage( "2003_07_01_archive.html" , "07/01/2003 - 07/31/2003" );
BlogInfo[count++] = new ArchivePage( "2003_08_01_archive.html" , "08/01/2003 - 08/31/2003" );
BlogInfo[count++] = new ArchivePage( "2003_09_01_archive.html" , "09/01/2003 - 09/30/2003" );
BlogInfo[count++] = new ArchivePage( "2003_10_01_archive.html" , "10/01/2003 - 10/31/2003" );
BlogInfo[count++] = new ArchivePage( "2003_11_01_archive.html" , "11/01/2003 - 11/30/2003" );
BlogInfo[count++] = new ArchivePage( "2003_12_01_archive.html" , "12/01/2003 - 12/31/2003" );
BlogInfo[count++] = new ArchivePage( "2004_01_01_archive.html" , "01/01/2004 - 01/31/2004" );
BlogInfo[count++] = new ArchivePage( "2004_02_01_archive.html" , "02/01/2004 - 02/29/2004" );
BlogInfo[count++] = new ArchivePage( "2004_03_01_archive.html" , "03/01/2004 - 03/31/2004" );
BlogInfo[count++] = new ArchivePage( "2004_04_01_archive.html" , "04/01/2004 - 04/30/2004" );
BlogInfo[count++] = new ArchivePage( "2004_05_01_archive.html" , "05/01/2004 - 05/31/2004" );
BlogInfo[count++] = new ArchivePage( "2004_06_01_archive.html" , "06/01/2004 - 06/30/2004" );
BlogInfo[count++] = new ArchivePage( "2004_07_01_archive.html" , "07/01/2004 - 07/31/2004" );
BlogInfo[count++] = new ArchivePage( "2004_08_01_archive.html" , "08/01/2004 - 08/31/2004" );
BlogInfo[count++] = new ArchivePage( "2004_09_01_archive.html" , "09/01/2004 - 09/30/2004" );
BlogInfo[count++] = new ArchivePage( "2004_10_01_archive.html" , "10/01/2004 - 10/31/2004" );
BlogInfo[count++] = new ArchivePage( "2004_11_01_archive.html" , "11/01/2004 - 11/30/2004" );
BlogInfo[count++] = new ArchivePage( "2004_12_01_archive.html" , "12/01/2004 - 12/31/2004" );
BlogInfo[count++] = new ArchivePage( "2005_01_01_archive.html" , "01/01/2005 - 01/31/2005" );
BlogInfo[count++] = new ArchivePage( "2005_02_01_archive.html" , "02/01/2005 - 02/28/2005" );
BlogInfo[count++] = new ArchivePage( "2005_03_01_archive.html" , "03/01/2005 - 03/31/2005" );
BlogInfo[count++] = new ArchivePage( "2005_04_01_archive.html" , "04/01/2005 - 04/30/2005" );
BlogInfo[count++] = new ArchivePage( "2005_05_01_archive.html" , "05/01/2005 - 05/31/2005" );
BlogInfo[count++] = new ArchivePage( "2005_06_01_archive.html" , "06/01/2005 - 06/30/2005" );
BlogInfo[count++] = new ArchivePage( "2005_07_01_archive.html" , "07/01/2005 - 07/31/2005" );
BlogInfo[count++] = new ArchivePage( "2005_08_01_archive.html" , "08/01/2005 - 08/31/2005" );
BlogInfo[count++] = new ArchivePage( "2005_09_01_archive.html" , "09/01/2005 - 09/30/2005" );
BlogInfo[count++] = new ArchivePage( "2005_10_01_archive.html" , "10/01/2005 - 10/31/2005" );
BlogInfo[count++] = new ArchivePage( "2005_11_01_archive.html" , "11/01/2005 - 11/30/2005" );
BlogInfo[count++] = new ArchivePage( "2005_12_01_archive.html" , "12/01/2005 - 12/31/2005" );
BlogInfo[count++] = new ArchivePage( "2006_01_01_archive.html" , "01/01/2006 - 01/31/2006" );
BlogInfo[count++] = new ArchivePage( "2006_02_01_archive.html" , "02/01/2006 - 02/28/2006" );
BlogInfo[count++] = new ArchivePage( "2006_03_01_archive.html" , "03/01/2006 - 03/31/2006" );
BlogInfo[count++] = new ArchivePage( "2006_04_01_archive.html" , "04/01/2006 - 04/30/2006" );
BlogInfo[count++] = new ArchivePage( "2006_05_01_archive.html" , "05/01/2006 - 05/31/2006" );
BlogInfo[count++] = new ArchivePage( "2006_06_01_archive.html" , "06/01/2006 - 06/30/2006" );
BlogInfo[count++] = new ArchivePage( "2006_07_01_archive.html" , "07/01/2006 - 07/31/2006" );
BlogInfo[count++] = new ArchivePage( "2006_08_01_archive.html" , "08/01/2006 - 08/31/2006" );
BlogInfo[count++] = new ArchivePage( "2006_09_01_archive.html" , "09/01/2006 - 09/30/2006" );
BlogInfo[count++] = new ArchivePage( "2006_10_01_archive.html" , "10/01/2006 - 10/31/2006" );
BlogInfo[count++] = new ArchivePage( "2006_11_01_archive.html" , "11/01/2006 - 11/30/2006" );
BlogInfo[count++] = new ArchivePage( "2006_12_01_archive.html" , "12/01/2006 - 12/31/2006" );
BlogInfo[count++] = new ArchivePage( "2007_01_01_archive.html" , "01/01/2007 - 01/31/2007" );
BlogInfo[count++] = new ArchivePage( "2007_02_01_archive.html" , "02/01/2007 - 02/28/2007" );
WriteArchiveSection( BlogInfo );