// 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 = "[Show all]"; var fewerLinksPhrase = "[Show fewer]"; var currentPageName = "current"; var currentPageLink = "../blogger.html"; var archivePath = "/blog/"; 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 newName = preLink + (this.StartDate.getMonth()+1)+"/"+this.StartDate.getDate()+"/"+this.StartDate.getFullYear()+"-"+(this.EndDate.getMonth()+1)+"/"+this.EndDate.getDate()+"/"+this.EndDate.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( "2002_03_24_archive.html" , "03/24/2002 - 03/30/2002" ); BlogInfo[count++] = new ArchivePage( "2002_03_31_archive.html" , "03/31/2002 - 04/06/2002" ); BlogInfo[count++] = new ArchivePage( "2002_04_07_archive.html" , "04/07/2002 - 04/13/2002" ); BlogInfo[count++] = new ArchivePage( "2002_04_14_archive.html" , "04/14/2002 - 04/20/2002" ); BlogInfo[count++] = new ArchivePage( "2002_04_21_archive.html" , "04/21/2002 - 04/27/2002" ); BlogInfo[count++] = new ArchivePage( "2002_04_28_archive.html" , "04/28/2002 - 05/04/2002" ); BlogInfo[count++] = new ArchivePage( "2002_05_05_archive.html" , "05/05/2002 - 05/11/2002" ); BlogInfo[count++] = new ArchivePage( "2002_05_12_archive.html" , "05/12/2002 - 05/18/2002" ); BlogInfo[count++] = new ArchivePage( "2002_05_19_archive.html" , "05/19/2002 - 05/25/2002" ); BlogInfo[count++] = new ArchivePage( "2002_05_26_archive.html" , "05/26/2002 - 06/01/2002" ); BlogInfo[count++] = new ArchivePage( "2002_06_02_archive.html" , "06/02/2002 - 06/08/2002" ); BlogInfo[count++] = new ArchivePage( "2002_06_09_archive.html" , "06/09/2002 - 06/15/2002" ); BlogInfo[count++] = new ArchivePage( "2002_06_16_archive.html" , "06/16/2002 - 06/22/2002" ); BlogInfo[count++] = new ArchivePage( "2002_06_23_archive.html" , "06/23/2002 - 06/29/2002" ); BlogInfo[count++] = new ArchivePage( "2002_06_30_archive.html" , "06/30/2002 - 07/06/2002" ); BlogInfo[count++] = new ArchivePage( "2002_07_07_archive.html" , "07/07/2002 - 07/13/2002" ); BlogInfo[count++] = new ArchivePage( "2002_07_14_archive.html" , "07/14/2002 - 07/20/2002" ); BlogInfo[count++] = new ArchivePage( "2002_07_21_archive.html" , "07/21/2002 - 07/27/2002" ); BlogInfo[count++] = new ArchivePage( "2002_07_28_archive.html" , "07/28/2002 - 08/03/2002" ); BlogInfo[count++] = new ArchivePage( "2002_08_04_archive.html" , "08/04/2002 - 08/10/2002" ); BlogInfo[count++] = new ArchivePage( "2002_08_11_archive.html" , "08/11/2002 - 08/17/2002" ); BlogInfo[count++] = new ArchivePage( "2002_08_18_archive.html" , "08/18/2002 - 08/24/2002" ); BlogInfo[count++] = new ArchivePage( "2002_08_25_archive.html" , "08/25/2002 - 08/31/2002" ); BlogInfo[count++] = new ArchivePage( "2002_09_08_archive.html" , "09/08/2002 - 09/14/2002" ); BlogInfo[count++] = new ArchivePage( "2002_09_15_archive.html" , "09/15/2002 - 09/21/2002" ); BlogInfo[count++] = new ArchivePage( "2002_09_22_archive.html" , "09/22/2002 - 09/28/2002" ); BlogInfo[count++] = new ArchivePage( "2002_09_29_archive.html" , "09/29/2002 - 10/05/2002" ); BlogInfo[count++] = new ArchivePage( "2002_10_06_archive.html" , "10/06/2002 - 10/12/2002" ); BlogInfo[count++] = new ArchivePage( "2002_10_13_archive.html" , "10/13/2002 - 10/19/2002" ); BlogInfo[count++] = new ArchivePage( "2002_10_20_archive.html" , "10/20/2002 - 10/26/2002" ); BlogInfo[count++] = new ArchivePage( "2002_10_27_archive.html" , "10/27/2002 - 11/02/2002" ); BlogInfo[count++] = new ArchivePage( "2003_01_05_archive.html" , "01/05/2003 - 01/11/2003" ); BlogInfo[count++] = new ArchivePage( "2003_02_23_archive.html" , "02/23/2003 - 03/01/2003" ); BlogInfo[count++] = new ArchivePage( "2003_03_02_archive.html" , "03/02/2003 - 03/08/2003" ); BlogInfo[count++] = new ArchivePage( "2003_03_09_archive.html" , "03/09/2003 - 03/15/2003" ); BlogInfo[count++] = new ArchivePage( "2003_04_20_archive.html" , "04/20/2003 - 04/26/2003" ); BlogInfo[count++] = new ArchivePage( "2003_05_11_archive.html" , "05/11/2003 - 05/17/2003" ); BlogInfo[count++] = new ArchivePage( "2003_05_18_archive.html" , "05/18/2003 - 05/24/2003" ); BlogInfo[count++] = new ArchivePage( "2003_06_08_archive.html" , "06/08/2003 - 06/14/2003" ); BlogInfo[count++] = new ArchivePage( "2003_06_15_archive.html" , "06/15/2003 - 06/21/2003" ); BlogInfo[count++] = new ArchivePage( "2003_06_22_archive.html" , "06/22/2003 - 06/28/2003" ); BlogInfo[count++] = new ArchivePage( "2003_06_29_archive.html" , "06/29/2003 - 07/05/2003" ); BlogInfo[count++] = new ArchivePage( "2003_07_06_archive.html" , "07/06/2003 - 07/12/2003" ); BlogInfo[count++] = new ArchivePage( "2003_07_13_archive.html" , "07/13/2003 - 07/19/2003" ); BlogInfo[count++] = new ArchivePage( "2003_07_20_archive.html" , "07/20/2003 - 07/26/2003" ); BlogInfo[count++] = new ArchivePage( "2003_07_27_archive.html" , "07/27/2003 - 08/02/2003" ); BlogInfo[count++] = new ArchivePage( "2003_08_03_archive.html" , "08/03/2003 - 08/09/2003" ); BlogInfo[count++] = new ArchivePage( "2003_08_10_archive.html" , "08/10/2003 - 08/16/2003" ); BlogInfo[count++] = new ArchivePage( "2003_08_17_archive.html" , "08/17/2003 - 08/23/2003" ); BlogInfo[count++] = new ArchivePage( "2003_08_24_archive.html" , "08/24/2003 - 08/30/2003" ); BlogInfo[count++] = new ArchivePage( "2003_08_31_archive.html" , "08/31/2003 - 09/06/2003" ); BlogInfo[count++] = new ArchivePage( "2003_09_14_archive.html" , "09/14/2003 - 09/20/2003" ); BlogInfo[count++] = new ArchivePage( "2003_10_05_archive.html" , "10/05/2003 - 10/11/2003" ); BlogInfo[count++] = new ArchivePage( "2003_10_12_archive.html" , "10/12/2003 - 10/18/2003" ); BlogInfo[count++] = new ArchivePage( "2003_10_19_archive.html" , "10/19/2003 - 10/25/2003" ); BlogInfo[count++] = new ArchivePage( "2003_10_26_archive.html" , "10/26/2003 - 11/01/2003" ); BlogInfo[count++] = new ArchivePage( "2003_11_02_archive.html" , "11/02/2003 - 11/08/2003" ); BlogInfo[count++] = new ArchivePage( "2003_11_09_archive.html" , "11/09/2003 - 11/15/2003" ); BlogInfo[count++] = new ArchivePage( "2003_11_16_archive.html" , "11/16/2003 - 11/22/2003" ); BlogInfo[count++] = new ArchivePage( "2003_12_07_archive.html" , "12/07/2003 - 12/13/2003" ); BlogInfo[count++] = new ArchivePage( "2003_12_14_archive.html" , "12/14/2003 - 12/20/2003" ); BlogInfo[count++] = new ArchivePage( "2004_01_04_archive.html" , "01/04/2004 - 01/10/2004" ); BlogInfo[count++] = new ArchivePage( "2004_01_11_archive.html" , "01/11/2004 - 01/17/2004" ); BlogInfo[count++] = new ArchivePage( "2004_01_25_archive.html" , "01/25/2004 - 01/31/2004" ); BlogInfo[count++] = new ArchivePage( "2004_02_01_archive.html" , "02/01/2004 - 02/07/2004" ); BlogInfo[count++] = new ArchivePage( "2004_02_15_archive.html" , "02/15/2004 - 02/21/2004" ); BlogInfo[count++] = new ArchivePage( "2004_02_22_archive.html" , "02/22/2004 - 02/28/2004" ); BlogInfo[count++] = new ArchivePage( "2004_03_07_archive.html" , "03/07/2004 - 03/13/2004" ); BlogInfo[count++] = new ArchivePage( "2004_03_21_archive.html" , "03/21/2004 - 03/27/2004" ); BlogInfo[count++] = new ArchivePage( "2004_05_02_archive.html" , "05/02/2004 - 05/08/2004" ); BlogInfo[count++] = new ArchivePage( "2004_05_16_archive.html" , "05/16/2004 - 05/22/2004" ); BlogInfo[count++] = new ArchivePage( "2004_05_30_archive.html" , "05/30/2004 - 06/05/2004" ); BlogInfo[count++] = new ArchivePage( "2004_06_13_archive.html" , "06/13/2004 - 06/19/2004" ); BlogInfo[count++] = new ArchivePage( "2004_06_20_archive.html" , "06/20/2004 - 06/26/2004" ); BlogInfo[count++] = new ArchivePage( "2004_06_27_archive.html" , "06/27/2004 - 07/03/2004" ); BlogInfo[count++] = new ArchivePage( "2004_07_04_archive.html" , "07/04/2004 - 07/10/2004" ); BlogInfo[count++] = new ArchivePage( "2004_07_11_archive.html" , "07/11/2004 - 07/17/2004" ); BlogInfo[count++] = new ArchivePage( "2004_07_18_archive.html" , "07/18/2004 - 07/24/2004" ); BlogInfo[count++] = new ArchivePage( "2004_08_01_archive.html" , "08/01/2004 - 08/07/2004" ); BlogInfo[count++] = new ArchivePage( "2004_08_15_archive.html" , "08/15/2004 - 08/21/2004" ); BlogInfo[count++] = new ArchivePage( "2004_08_29_archive.html" , "08/29/2004 - 09/04/2004" ); BlogInfo[count++] = new ArchivePage( "2004_09_05_archive.html" , "09/05/2004 - 09/11/2004" ); BlogInfo[count++] = new ArchivePage( "2004_10_03_archive.html" , "10/03/2004 - 10/09/2004" ); BlogInfo[count++] = new ArchivePage( "2004_10_10_archive.html" , "10/10/2004 - 10/16/2004" ); BlogInfo[count++] = new ArchivePage( "2004_10_17_archive.html" , "10/17/2004 - 10/23/2004" ); BlogInfo[count++] = new ArchivePage( "2004_11_07_archive.html" , "11/07/2004 - 11/13/2004" ); BlogInfo[count++] = new ArchivePage( "2004_11_14_archive.html" , "11/14/2004 - 11/20/2004" ); BlogInfo[count++] = new ArchivePage( "2004_12_05_archive.html" , "12/05/2004 - 12/11/2004" ); BlogInfo[count++] = new ArchivePage( "2005_01_02_archive.html" , "01/02/2005 - 01/08/2005" ); BlogInfo[count++] = new ArchivePage( "2005_02_06_archive.html" , "02/06/2005 - 02/12/2005" ); BlogInfo[count++] = new ArchivePage( "2005_03_13_archive.html" , "03/13/2005 - 03/19/2005" ); BlogInfo[count++] = new ArchivePage( "2005_04_03_archive.html" , "04/03/2005 - 04/09/2005" ); BlogInfo[count++] = new ArchivePage( "2005_04_17_archive.html" , "04/17/2005 - 04/23/2005" ); BlogInfo[count++] = new ArchivePage( "2005_04_24_archive.html" , "04/24/2005 - 04/30/2005" ); BlogInfo[count++] = new ArchivePage( "2005_05_15_archive.html" , "05/15/2005 - 05/21/2005" ); BlogInfo[count++] = new ArchivePage( "2005_05_22_archive.html" , "05/22/2005 - 05/28/2005" ); BlogInfo[count++] = new ArchivePage( "2005_07_10_archive.html" , "07/10/2005 - 07/16/2005" ); BlogInfo[count++] = new ArchivePage( "2005_07_17_archive.html" , "07/17/2005 - 07/23/2005" ); BlogInfo[count++] = new ArchivePage( "2005_07_24_archive.html" , "07/24/2005 - 07/30/2005" ); BlogInfo[count++] = new ArchivePage( "2005_07_31_archive.html" , "07/31/2005 - 08/06/2005" ); BlogInfo[count++] = new ArchivePage( "2005_08_07_archive.html" , "08/07/2005 - 08/13/2005" ); BlogInfo[count++] = new ArchivePage( "2005_08_14_archive.html" , "08/14/2005 - 08/20/2005" ); BlogInfo[count++] = new ArchivePage( "2005_09_11_archive.html" , "09/11/2005 - 09/17/2005" ); BlogInfo[count++] = new ArchivePage( "2005_09_18_archive.html" , "09/18/2005 - 09/24/2005" ); BlogInfo[count++] = new ArchivePage( "2005_09_25_archive.html" , "09/25/2005 - 10/01/2005" ); BlogInfo[count++] = new ArchivePage( "2005_10_02_archive.html" , "10/02/2005 - 10/08/2005" ); BlogInfo[count++] = new ArchivePage( "2005_10_16_archive.html" , "10/16/2005 - 10/22/2005" ); BlogInfo[count++] = new ArchivePage( "2005_10_23_archive.html" , "10/23/2005 - 10/29/2005" ); BlogInfo[count++] = new ArchivePage( "2005_11_06_archive.html" , "11/06/2005 - 11/12/2005" ); BlogInfo[count++] = new ArchivePage( "2005_11_20_archive.html" , "11/20/2005 - 11/26/2005" ); BlogInfo[count++] = new ArchivePage( "2005_11_27_archive.html" , "11/27/2005 - 12/03/2005" ); BlogInfo[count++] = new ArchivePage( "2005_12_04_archive.html" , "12/04/2005 - 12/10/2005" ); BlogInfo[count++] = new ArchivePage( "2005_12_11_archive.html" , "12/11/2005 - 12/17/2005" ); BlogInfo[count++] = new ArchivePage( "2005_12_18_archive.html" , "12/18/2005 - 12/24/2005" ); BlogInfo[count++] = new ArchivePage( "2005_12_25_archive.html" , "12/25/2005 - 12/31/2005" ); BlogInfo[count++] = new ArchivePage( "2006_01_01_archive.html" , "01/01/2006 - 01/07/2006" ); BlogInfo[count++] = new ArchivePage( "2006_01_08_archive.html" , "01/08/2006 - 01/14/2006" ); BlogInfo[count++] = new ArchivePage( "2006_01_15_archive.html" , "01/15/2006 - 01/21/2006" ); BlogInfo[count++] = new ArchivePage( "2006_01_22_archive.html" , "01/22/2006 - 01/28/2006" ); BlogInfo[count++] = new ArchivePage( "2006_01_29_archive.html" , "01/29/2006 - 02/04/2006" ); BlogInfo[count++] = new ArchivePage( "2006_02_05_archive.html" , "02/05/2006 - 02/11/2006" ); BlogInfo[count++] = new ArchivePage( "2006_02_12_archive.html" , "02/12/2006 - 02/18/2006" ); BlogInfo[count++] = new ArchivePage( "2006_02_19_archive.html" , "02/19/2006 - 02/25/2006" ); BlogInfo[count++] = new ArchivePage( "2006_03_05_archive.html" , "03/05/2006 - 03/11/2006" ); BlogInfo[count++] = new ArchivePage( "2006_03_12_archive.html" , "03/12/2006 - 03/18/2006" ); WriteArchiveSection( BlogInfo );