var newBlog = "http://blog.falchionconsulting.com";
var oldBlog = "http://stsadm.blogspot.com";
var blogUrls = new Array();
blogUrls['2007/10/1012-general-update.html']='index.php/2007/10/1012-general-update/';blogUrls['2010/02/4th-grade-math-and-powershell.html']='index.php/2010/02/4th-grade-math-and-powershell/';blogUrls['2008/11/activating-features-at-different-scopes.html']='index.php/2008/11/activating-features-at-different-scopes-using-stsadm/';blogUrls['2007/12/add-list-item.html']='index.php/2007/12/add-list-item/';blogUrls['2008/07/add-list.html']='index.php/2008/07/creating-a-list-via-stsadm/';blogUrls['2007/09/add-site-administrator.html']='index.php/2007/09/add-site-administrator/';blogUrls['2007/12/add-user-2.html']='index.php/2007/12/add-user-2/';blogUrls['2007/12/add-user-policy-for-web-application.html']='index.php/2007/12/add-user-policy-for-web-application/';blogUrls['2008/09/adding-event-receivers-using-stsadm.html']='index.php/2008/09/adding-event-receivers-using-stsadm/';blogUrls['2008/08/adding-list-view-web-part-to-page.html']='index.php/2008/08/adding-a-list-view-web-part-to-a-page/';blogUrls['2010/08/announcing-aptillon.html']='index.php/2010/08/announcing-aptillon/';blogUrls['2010/05/announcing-my-sharepoint-2010.html']='index.php/2010/05/announcing-my-sharepoint-2010-powershell-cmdlets-stsadm-commands-now-available-for-download/';blogUrls['2008/04/anyone-been-counting.html']='index.php/2008/04/anyone-been-counting/';blogUrls['2008/01/apply-theme.html']='index.php/2008/01/apply-theme/';blogUrls['2007/10/apply-upgrade-area-url-mappings.html']='index.php/2007/10/apply-upgrade-area-url-mappings/';blogUrls['2008/08/assigning-rules-to-audiences-via-stsadm.html']='index.php/2008/08/assigning-rules-to-audiences-via-stsadm/';blogUrls['2008/04/backup-site-collections.html']='index.php/2008/04/backup-site-collections/';blogUrls['2009/05/backuprestore-now-supported-between.html']='index.php/2009/05/backuprestore-now-supported-between-farms-via-april-cu/';blogUrls['2007/09/better-delete-web.html']='index.php/2007/09/a-better-delete-web/';blogUrls['2008/10/better-execadmsvcjobs-stsadm-command.html']='index.php/2008/10/a-better-execadmsvcjobs-stsadm-command/';blogUrls['2007/10/better-import.html']='index.php/2007/10/a-better-import/';blogUrls['2010/07/big-changes.html']='index.php/2010/07/big-changes/';blogUrls['2008/04/breaking-change-to-my-extensions.html']='index.php/2008/04/breaking-change-to-my-extensions/';blogUrls['2008/03/bug-absolute-path-information-required.html']='index.php/2008/03/bug-absolute-path-information-required/';blogUrls['2008/10/change-password-script.html']='index.php/2008/10/change-password-script/';blogUrls['2008/10/changing-application-pool-identity-via.html']='index.php/2008/10/changing-the-application-pool-identity-via-stsadm/';blogUrls['2008/10/colorado-springs-sharepoint-user-group.html']='index.php/2008/10/colorado-springs-sharepoint-user-group-meeting-slides/';blogUrls['2009/04/configuring-sso-via-stsadm.html']='index.php/2009/04/configuring-sso-via-stsadm/';blogUrls['2008/05/content-deployment-qfe-pack-now.html']='index.php/2008/05/content-deployment-qfe-pack-now-available/';blogUrls['2007/09/convert-sub-site-to-site-collection.html']='index.php/2007/09/convert-a-sub-site-to-a-site-collection/';blogUrls['2007/08/copy-content-types.html']='index.php/2007/08/copy-content-types/';blogUrls['2007/11/copy-list-security-permissions-settings.html']='index.php/2007/11/copy-list-security-permissions-settings/';blogUrls['2008/01/create-content-database.html']='index.php/2008/01/create-content-database/';blogUrls['2008/09/create-publishing-page-via-stsadm.html']='index.php/2008/09/create-a-publishing-page-via-stsadm/';blogUrls['2008/01/create-site-in-database.html']='index.php/2008/01/create-site-in-database/';blogUrls['2007/10/create-web-application.html']='index.php/2007/10/create-web-application/';blogUrls['2008/08/creating-audiences-via-stsadm.html']='index.php/2008/08/creating-audiences-via-stsadm/';blogUrls['2009/10/creating-custom-sharepoint-2010-cmdlets.html']='index.php/2009/10/creating-custom-sharepoint-2010-cmdlets-using-visual-studio-2010/';blogUrls['2009/04/creating-default-site-groups-after.html']='index.php/2009/04/creating-default-site-groups-after-creating-site-collections-using-stsadm/';blogUrls['2008/07/creating-listlibrary-folders.html']='index.php/2008/07/creating-listlibrary-folders-programmatically/';blogUrls['2009/12/creating-sharepoint-2010-enterprise.html']='index.php/2009/12/creating-a-sharepoint-2010-enterprise-search-service-application-using-powershell/';blogUrls['2009/12/creating-sharepoint-2010-site-structure.html']='index.php/2009/12/creating-a-sharepoint-2010-site-structure-using-powershell/';blogUrls['2008/12/custom-field-types-and-wss-40s-xslt.html']='index.php/2008/12/custom-field-types-and-wss-4-0s-xslt-based-field-type/';blogUrls['2008/12/custom-list-views-and-wss-40s-xslt.html']='index.php/2008/12/custom-list-views-and-wss-4-0s-xslt-based-list-view/';blogUrls['2009/07/custom-sharepoint-2007-site-collection.html']='index.php/2009/07/custom-sharepoint-2007-site-collection-creation-page/';blogUrls['2007/11/customizing-mysites.html']='index.php/2007/11/customizing-mysites/';blogUrls['2008/11/deactivating-features-at-different.html']='index.php/2008/11/deactivating-features-at-different-scopes-using-stsadm/';blogUrls['2007/11/debug-parameter.html']='index.php/2007/11/debug-parameter/';blogUrls['2008/08/delete-all-users-from-site-collection.html']='index.php/2008/08/delete-all-users-from-a-site-collection/';blogUrls['2007/09/delete-list-field.html']='index.php/2007/09/delete-list-field/';blogUrls['2007/11/delete-list-forget-about.html']='index.php/2007/11/delete-list-forget-about-forcedeletelist/';blogUrls['2007/11/delete-list-using-forcedeletelist.html']='index.php/2007/11/delete-a-list-using-forcedeletelist/';blogUrls['2007/10/delete-web-application.html']='index.php/2007/10/delete-web-application/';blogUrls['2008/08/deleting-audience-via-stsadm.html']='index.php/2008/08/deleting-an-audience-via-stsadm/';blogUrls['2008/09/deleting-event-receiver-using-stsadm.html']='index.php/2008/09/deleting-an-event-receiver-using-stsadm/';blogUrls['2009/03/deleting-orphaned-event-receivers-using.html']='index.php/2009/03/deleting-orphaned-event-receivers-using-powershell/';blogUrls['2010/06/deploying-sharepoint-2010-solution.html']='index.php/2010/06/deploying-sharepoint-2010-solution-packages-using-powershell/';blogUrls['2009/07/deploying-sharepoint-files-not-handled.html']='index.php/2009/07/deploying-sharepoint-files-not-handled-by-the-wsp-solution-schema/';blogUrls['2010/04/discovering-who-has-access-to.html']='index.php/2010/04/discovering-who-has-access-to-sharepoint-2010-securable-objects/';blogUrls['2008/08/displaying-audience-rules-via-stsadm.html']='index.php/2008/08/displaying-audience-rules-via-stsadm/';blogUrls['2009/01/dont-use-preparetomove-stsadm-command.html']='index.php/2009/01/dont-use-the-preparetomove-stsadm-command/';blogUrls['2009/07/download-my-custom-extensions-source.html']='index.php/2009/07/download-my-custom-extensions-source-from-codeplex/';blogUrls['2009/02/downloads.html']='index.php/downloads/';blogUrls['2008/08/enabling-audience-targeting-on-list.html']='index.php/2008/08/enabling-audience-targeting-on-a-list/';blogUrls['2008/12/ensuring-valid-spcontext-via-feature.html']='index.php/2008/12/ensuring-a-valid-spcontext-via-feature-activation/';blogUrls['2007/08/enumerate-available-page-layouts.html']='index.php/2007/08/enumerate-available-page-layouts/';blogUrls['2007/10/enumerate-effective-base-permissions.html']='index.php/2007/10/enumerate-effective-base-permissions/';blogUrls['2007/08/enumerate-features.html']='index.php/2007/08/enumerate-features/';blogUrls['2007/10/enumerate-page-web-parts.html']='index.php/2007/10/enumerate-page-web-parts/';blogUrls['2007/09/enumerate-timer-job-definitions.html']='index.php/2007/09/enumerate-timer-job-definitions/';blogUrls['2008/08/enumerating-email-enabled-lists-via.html']='index.php/2008/08/enumerating-email-enabled-lists-via-stsadm/';blogUrls['2008/02/export-content-types.html']='index.php/2008/02/export-content-types/';blogUrls['2007/11/export-import-and-update-list-fields.html']='index.php/2007/11/export-import-and-update-list-fields/';blogUrls['2008/02/export-site-columns.html']='index.php/2008/02/export-site-columns/';blogUrls['2008/05/exporting-and-importing-list-folders.html']='index.php/2008/05/exporting-and-importing-list-folders/';blogUrls['2009/04/exporting-audiences-using-stsadm.html']='index.php/2009/04/exporting-audiences-using-stsadm/';blogUrls['2008/04/exporting-list-security-settings.html']='index.php/2008/04/exporting-list-security-settings/';blogUrls['2008/03/extend-web-application.html']='index.php/2008/03/extend-web-application/';blogUrls['2007/08/fix-publishing-pages-page-layout-url.html']='index.php/2007/08/fix-publishing-pages-page-layout-url/';blogUrls['2008/04/fix-variation-relationships-list.html']='index.php/2008/04/fix-variation-relationships-list/';blogUrls['2008/05/fixing-invalid-page-contacts.html']='index.php/2008/05/fixing-invalid-page-contacts/';blogUrls['2009/03/follow-me-on-twitter.html']='index.php/2009/03/follow-me-on-twitter/';blogUrls['2008/04/fun-with-variations.html']='index.php/2008/04/fun-with-variations/';blogUrls['2007/09/general-update.html']='index.php/2007/09/general-update/';blogUrls['2010/08/getting-inventory-of-all-sharepoint.html']='index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/';blogUrls['2009/04/getting-spfarm-object-using-powershell.html']='index.php/2009/04/getting-an-spfarm-object-using-powershell/';blogUrls['2009/04/getting-spwebapplication-object-using.html']='index.php/2009/04/getting-an-spwebapplication-object-using-powershell/';blogUrls['2007/08/getting-started-with-stsadm-extensions.html']='index.php/2007/08/getting-started-with-stsadm-extensions/';blogUrls['2008/12/gl-fixpagecontact-deprecated.html']='index.php/2008/12/gl-fixpagecontact-deprecated/';blogUrls['2008/12/i-be-speaking-at-sharepoint-best.html']='index.php/2008/12/ill-be-speaking-at-the-sharepoint-best-practices-conference/';blogUrls['2010/02/im-speaking-at-tec-2010-see-you-there.html']='index.php/2010/02/i%e2%80%99m-speaking-at-tec-2010-see-you-there/';blogUrls['2007/11/import-export-copy-and-delete-lists.html']='index.php/2007/11/import-export-copy-and-delete-list-items/';blogUrls['2008/04/import-list-security.html']='index.php/2008/04/import-list-security/';blogUrls['2008/02/import-site-columns.html']='index.php/2008/02/import-site-columns/';blogUrls['2007/09/importexportcopy-lists.html']='index.php/2007/09/importexportcopy-lists/';blogUrls['2009/04/importing-audiences-using-stsadm.html']='index.php/2009/04/importing-audiences-using-stsadm/';blogUrls['2008/08/importing-profile-properties.html']='index.php/2008/08/importing-profile-properties/';blogUrls['2008/04/include-iis-with-disaster-recovery.html']='index.php/2008/04/include-iis-with-disaster-recovery-backup/';blogUrls['2008/12/initial-release-of-my-sharepoint.html']='index.php/2008/12/initial-release-of-my-sharepoint-powershell-cmdlets/';blogUrls['2008/01/list-all-welcome-pages.html']='index.php/2008/01/list-all-welcome-pages/';blogUrls['2008/09/listing-event-receivers-using-stsadm.html']='index.php/2008/09/listing-event-receivers-using-stsadm/';blogUrls['2007/09/manage-content-database-settings.html']='index.php/2007/09/manage-content-database-settings/';blogUrls['2007/08/migrate-profile-data-from-sps-2003-to.html']='index.php/2007/08/migrate-profile-data-from-sps-2003-to-moss-2007/';blogUrls['2008/05/minor-update.html']='index.php/2008/05/minor-update/';blogUrls['2007/09/more-site-navigation-settings-commands.html']='index.php/2007/09/more-site-navigation-settings-commands/';blogUrls['2008/01/move-site-collection.html']='index.php/2008/01/move-a-site-collection/';blogUrls['2007/10/move-web-part-on-page.html']='index.php/2007/10/move-a-web-part-on-a-page/';blogUrls['2007/09/move-web.html']='index.php/2007/09/move-web/';blogUrls['2008/06/moving-databases-easy-way.html']='index.php/2008/06/moving-databases-the-easy-way/';blogUrls['2009/01/mvp-for-another-year.html']='index.php/2009/01/mvp-for-another-year/';blogUrls['2009/03/mvp-summit-2009.html']='index.php/2009/03/mvp-summit-2009/';blogUrls['2008/11/my-new-powershell-cmdlets-for.html']='index.php/2008/11/my-new-powershell-cmdlets-for-sharepoint-2007-feedback-requested/';blogUrls['2007/09/my-site-settings.html']='index.php/2007/09/my-site-settings/';blogUrls['2008/01/namespace-and-filename-changes-plus-5.html']='index.php/2008/01/namespace-and-filename-changes-plus-5-new-commands/';blogUrls['2008/08/new-crm-blog.html']='index.php/2008/08/new-crm-blog/';blogUrls['2009/03/new-issue-with-stsadm-mergecontentdb.html']='index.php/2009/03/new-issue-with-stsadm-mergecontentdb/';blogUrls['2009/05/new-stsadm-commands-and-parameters-with.html']='index.php/2009/05/new-stsadm-commands-and-parameters-with-sharepoint-2007-sp2/';blogUrls['2010/11/november-2010-sharepoint-connections.html']='index.php/2010/11/november-2010-sharepoint-connections-decks-and-code/';blogUrls['2007/11/personalization-service-permissions.html']='index.php/2007/11/personalization-service-permissions/';blogUrls['2007/08/portal-site-connection.html']='index.php/2007/08/portal-site-connection/';blogUrls['2009/04/powershell-cmdlet-name-changes.html']='index.php/2009/04/powershell-cmdlet-name-changes/';blogUrls['2008/06/presetting-lookup-field-values-via-link.html']='index.php/2008/06/presetting-lookup-field-values-via-a-link/';blogUrls['2008/05/profile-import-timer-job.html']='index.php/2008/05/profile-import-timer-job/';blogUrls['2008/04/programmatically-setting-web-part.html']='index.php/2008/04/programmatically-setting-web-part-audience-targeting/';blogUrls['2008/05/propagate-content-type-changes.html']='index.php/2008/05/propagate-content-type-changes/';blogUrls['2007/10/publish-items.html']='index.php/2007/10/publish-items/';blogUrls['2007/09/re-ghosting-pages.html']='index.php/2007/09/re-ghosting-pages/';blogUrls['2010/11/real-world-sharepoint-2010-released.html']='index.php/2010/11/real-world-sharepoint-2010-released/';blogUrls['2009/01/recalculating-usage-statistics-via.html']='index.php/2009/01/recalculating-usage-statistics-via-stsadm-or-powershell/';blogUrls['2009/07/recent-custom-stsadm-extensions-bug.html']='index.php/2009/07/recent-custom-stsadm-extensions-bug-fixes/';blogUrls['2007/10/replace-field-values.html']='index.php/2007/10/replace-field-values/';blogUrls['2007/10/replace-web-part-content.html']='index.php/2007/10/replace-web-part-content/';blogUrls['2009/01/replacing-navigation-urls-using-stsadm.html']='index.php/2009/01/replacing-navigation-urls-using-stsadm/';blogUrls['2007/10/retarget-content-query-web-part.html']='index.php/2007/10/retarget-content-query-web-part/';blogUrls['2008/01/retarget-grouped-listings-web-parts.html']='index.php/2008/01/retarget-grouped-listings-web-parts/';blogUrls['2008/03/roll-your-own-custom-stsadm-extensions.html']='index.php/2008/03/roll-your-own-custom-stsadm-extensions/';blogUrls['2008/03/sample-install-script.html']='index.php/2008/03/sample-install-script/';blogUrls['2007/12/save-list-items-and-files-to-disk.html']='index.php/2007/12/save-list-items-and-files-to-disk/';blogUrls['2007/11/search-scopes-and-rules.html']='index.php/2007/11/search-scopes-and-rules/';blogUrls['2007/08/security-for-web-part-pages.html']='index.php/2007/08/security-for-web-part-pages/';blogUrls['2007/08/self-service-site-creation.html']='index.php/2007/08/self-service-site-creation/';blogUrls['2010/10/service-accounts-and-managed-service.html']='index.php/2010/10/service-accounts-and-managed-service-accounts-in-sharepoint-2010/';blogUrls['2010/06/service-application-charts.html']='index.php/2010/06/sharepoint-2010-service-application-charts/';blogUrls['2008/03/set-anonymous-access.html']='index.php/2008/03/set-anonymous-access/';blogUrls['2007/11/set-audit-settings-for-site-collection.html']='index.php/2007/11/set-audit-settings-for-site-collection/';blogUrls['2007/08/set-available-site-templates.html']='index.php/2007/08/set-available-site-templates/';blogUrls['2007/10/set-local-site-directory.html']='index.php/2007/10/set-local-site-directory/';blogUrls['2007/08/set-my-sites-naming-format.html']='index.php/2007/08/set-my-sites-naming-format/';blogUrls['2007/11/set-navigation-settings.html']='index.php/2007/11/set-navigation-settings/';blogUrls['2007/08/set-picture-url-property.html']='index.php/2007/08/set-picture-url-property/';blogUrls['2007/10/set-search-center.html']='index.php/2007/10/set-search-center/';blogUrls['2007/09/set-site-general-settings.html']='index.php/2007/09/set-site-general-settings/';blogUrls['2007/12/set-usage-analysis.html']='index.php/2007/12/set-usage-analysis/';blogUrls['2007/08/set-user-profile-import-schedule.html']='index.php/2007/08/set-user-profile-import-schedule/';blogUrls['2008/09/set-user-profile-picture-url-property.html']='index.php/2008/09/set-user-profile-picture-url-property-using-stsadm-revisited/';blogUrls['2007/10/set-web-part-state.html']='index.php/2007/10/set-web-part-state/';blogUrls['2008/01/set-welcome-page-for-web.html']='index.php/2008/01/set-the-welcome-page-for-a-web/';blogUrls['2008/08/setting-audience-compilation-schedule.html']='index.php/2008/08/setting-the-audience-compilation-schedule-via-stsadm/';blogUrls['2009/09/setting-back-connection-host-names-for.html']='index.php/2009/09/setting-back-connection-host-names-for-sharepoint-2007-using-stsadm/';blogUrls['2008/08/setting-list-content-types-using-stsadm.html']='index.php/2008/08/setting-list-content-types-using-stsadm/';blogUrls['2009/07/setting-list-properties-using-stsadm.html']='index.php/2009/07/setting-list-properties-using-stsadm/';blogUrls['2009/02/setting-master-page-using-stsadm.html']='index.php/2009/02/setting-the-master-page-using-stsadm/';blogUrls['2007/08/setting-master-site-directory.html']='index.php/2007/08/setting-the-master-site-directory/';blogUrls['2008/05/setting-metadata.html']='index.php/2008/05/setting-metadata/';blogUrls['2009/08/setting-powershell-switch-parameters.html']='index.php/2009/08/setting-powershell-switch-parameters-dynamically/';blogUrls['2009/10/sharepoint-2010-psconfig-and-powershell.html']='index.php/2009/10/sharepoint-2010-psconfig-and-powershell/';blogUrls['2009/10/sharepoint-2010-stsadm-and-powershell.html']='index.php/2009/10/sharepoint-2010-stsadm-and-powershell/';blogUrls['2009/02/sharepoint-best-practices-conference.html']='index.php/2009/02/sharepoint-best-practices-conference-wrap-up/';blogUrls['2008/03/sharepoint-conference-2008.html']='index.php/2008/03/sharepoint-conference-2008/';blogUrls['2009/12/sharepoint-saturday-denver-2009-slide.html']='index.php/2009/12/sharepoint-saturday-denver-2009-slide-deck/';blogUrls['2007/08/site-collection-title.html']='index.php/2007/08/site-collection-title/';blogUrls['2007/09/site-directory-links-scan.html']='index.php/2007/09/site-directory-links-scan/';blogUrls['2007/08/site-navigation-settings.html']='index.php/2007/08/site-navigation-settings/';blogUrls['2008/03/solution-package-wsp.html']='index.php/2008/03/solution-package-wsp/';blogUrls['2009/01/spdisposecheck-released.html']='index.php/2009/01/spdisposecheck-released/';blogUrls['2007/11/splimitedwebpartmanagerdispose-bug.html']='index.php/2007/11/splimitedwebpartmanager-dispose-bug/';blogUrls['2010/10/sptechcon-decks.html']='index.php/2010/10/sptechcon-decks/';blogUrls['2010/04/starting-sharepoint-2010-foundation.html']='index.php/2010/04/starting-the-sharepoint-2010-foundation-search-service-using-powershell/';blogUrls['2007/08/stsadm-commands.html']='index.php/2007/08/quota-templates/';blogUrls['2007/08/stsadm-commands_09.html']='index.php/stsadmpowershell-commands/';blogUrls['2009/02/synchronizing-quota-settings-via-stsadm.html']='index.php/2009/02/synchronizing-quota-settings-via-stsadm/';blogUrls['2007/08/test.html']='index.php/2007/08/why-an-stsadm-blog/';blogUrls['2008/06/trace-log-settings.html']='index.php/2008/06/trace-log-settings/';blogUrls['2008/04/un-extend-web-application.html']='index.php/2008/04/un-extend-web-application/';blogUrls['2007/11/update-list-view.html']='index.php/2007/11/update-list-view/';blogUrls['2007/09/update-v2-to-v3-area-url-mappings.html']='index.php/2007/09/update-v2-to-v3-area-url-mappings/';blogUrls['2008/08/updating-default-content-access-account.html']='index.php/2008/08/updating-the-default-content-access-account-via-stsadm/';blogUrls['2007/09/upgrade2.html']='index.php/2007/09/upgrade2/';blogUrls['2007/08/user-permissions-for-web-applications.html']='index.php/2007/08/user-permissions-for-web-applications/';blogUrls['2007/08/user-profile-default-access-account.html']='index.php/2007/08/user-profile-default-access-account/';blogUrls['2007/11/user-profile-privacy-policies.html']='index.php/2007/11/user-profile-privacy-policies/';blogUrls['2007/11/user-profile-properties.html']='index.php/2007/11/user-profile-properties/';blogUrls['2008/07/web-part-page-history-codeplex-project.html']='index.php/2008/07/web-part-page-history-codeplex-project/';blogUrls['2010/03/webinars-pod-shows-and-user-group.html']='index.php/2010/03/webinars-pod-shows-and-user-group-meetings/';blogUrls['2009/03/why-i-dont-use-openweb.html']='index.php/2009/03/why-i-dont-use-openweb/';blogUrls['2008/09/windows-server-2008-default.html']='index.php/2008/09/windows-server-2008-default-impersonation-level-must-be-identify/';blogUrls['2009/01/working-with-spsiteinfo-objects-using.html']='index.php/2009/01/working-with-spsiteinfo-objects-using-powershell/';blogUrls['2009/04/working-with-spwebinfo-objects-using.html']='index.php/2009/04/working-with-spwebinfo-objects-using-powershell/';blogUrls['2008/06/wss-build-of-my-stsadm-extensions.html']='index.php/2008/06/wss-build-of-my-stsadm-extensions/';

function getRedirectUrl() {
	var url = document.location.href;
	if (url.match("^"+oldBlog) == oldBlog) {
		url = url.substring(oldBlog.length + 1);
	}
	if (blogUrls[url]) {
		return newBlog + '/' + blogUrls[url];
	} else {
		return newBlog;
	}
}
function redirect()
{
	if (document.getElementById('RedirectPanel') != null)
		document.getElementById('RedirectPanel').style.display = 'none';
	if (document.getElementById('ModalRedirectBackground') != null)
		document.getElementById('ModalRedirectBackground').style.display = 'none';
	window.document.location.href = getRedirectUrl();
}
function showRedirect()
{
	if(window.document.location.href.indexOf('noredirect')>0) { return; }
	
	writeRedirectText();
	if (document.getElementById('ModalRedirectBackground') != null)
		document.getElementById('ModalRedirectBackground').style.display = '';

	if (document.getElementById('RedirectPanel') != null)
	{
		document.getElementById('RedirectPanel').style.display = '';
		
		var btn = document.getElementById('RedirectButton');
		btn.href = getRedirectUrl();

		centerRedirectPopWin();
	}
	return false;
}
function addRedirectEvent(obj, evType, fn)
{
 if (obj.addEventListener){
	obj.addEventListener(evType, fn, false);
	return true;
 } else if (obj.attachEvent){
	var r = obj.attachEvent("on"+evType, fn);
	return r;
 } else {
	return false;
 }
}
function centerRedirectPopWin()
{
	theBody = document.getElementsByTagName('BODY')[0];
	var scTop = parseInt(getRedirectScrollTop(),10);
	var scLeft = parseInt(theBody.scrollLeft,10);
	var fullHeight = getRedirectViewportHeight();
	var fullWidth = getRedirectViewportWidth();
	
	var height = 300;
	var width = 500;
	
	var top = (scTop + ((fullHeight - height) / 2));
	var left = (scLeft + ((fullWidth - width) / 2));
	
	if (document.getElementById('ModalRedirectBackground') != null)
	{
		document.getElementById('ModalRedirectBackground').style.top = scTop + "px";
		document.getElementById('ModalRedirectBackground').style.left = scLeft + "px";
	}
	if (document.getElementById('RedirectPanel') != null)
	{
		document.getElementById('RedirectPanel').style.top = top + "px";
		document.getElementById('RedirectPanel').style.left =  left + "px";
	}
}
function getRedirectScrollTop() 
{
	if (self.pageYOffset) // all except Explorer
	{
		return self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
		// Explorer 6 Strict
	{
		return document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		return document.body.scrollTop;
	}
}
function getRedirectScrollLeft() 
{
	if (self.pageXOffset) // all except Explorer
	{
		return self.pageXOffset;
	}
	else if (document.documentElement && document.documentElement.scrollLeft)
		// Explorer 6 Strict
	{
		return document.documentElement.scrollLeft;
	}
	else if (document.body) // all other Explorers
	{
		return document.body.scrollLeft;
	}
}	
function getRedirectViewportHeight() {
	if (window.innerHeight!=window.undefined) return window.innerHeight;
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight; 

	return window.undefined; 
}
function getRedirectViewportWidth() {
	var offset = 17;
	var width = null;
	if (window.innerWidth!=window.undefined) return window.innerWidth; 
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 
	if (document.body) return document.body.clientWidth; 
}
function writeRedirectText()
{
var html = '';
html = html + ("<div id=\"ModalRedirectBackground\" class=\"ModalBackground\" style=\"display:none;\"></div>\n");

html = html + ("<div id=\"RedirectPanel\" class=\"LicensePanel\" style=\"display:none;\">\n");
html = html + ("								\n");
html = html + ("    <div class=\"Title\">\n");
html = html + ("        My blog has moved!\n");
html = html + ("    </div>\n");
html = html + ("    <div class=\"Body\">\n");
html = html + ("        Due to reasons I'd rather not rehash I've moved my blog to http://blog.falchionconsulting.com and am no longer maintaining this one. Click the 'Continue' button to be redirect to my new blog.\n");
html = html + ("    </div>\n");
html = html + ("    <div class=\"Buttons\">\n");
html = html + ("        <input type=\"button\" name=\"RedirectButton\" value=\"Continue\" onclick=\"download(this);\" id=\"RedirectButton\" class=\"DefaultButton\" />\n");
html = html + ("    </div>\n");
html = html + ("</div>");

document.getElementById('redirectContainer').innerHTML = html;
}

addRedirectEvent(window, "resize", centerRedirectPopWin);
addRedirectEvent(window, "scroll", centerRedirectPopWin);
window.onscroll = centerRedirectPopWin;
