// October 22, 2009
// Version 1.1c
// http://www.willmaster.com
// Copyright 2009 Bontrager Connection, LLC
// Use contingent on acceptance of license agreement at
//   http://www.willmaster.com/software/information/software-license-agreement.php
//   and an understanding and agreement that this JavaScript 
//   code may be changed at times and/or be removed entirely.

var HideCommentsHasRun = false;

function ChangeURL()
{
   if( document.URL.indexOf("http://www.google.com/sidewiki/entry/") == 0 )
   {
      location.href="http://example.com/page.html";
   }
   else
   {
      HideComments();
   }
}

function HideComments()
{
   if( HideCommentsHasRun ) { return; }
   if( document.URL.indexOf("http://www.google.com/sidewiki/entry/") == 0 ) { return; }
   HideCommentsHasRun = true;
   var now = new Date();
   var hash = location.href.indexOf('#');
   var url = document.URL;
   if( hash > 0 ) { url = url.substr(0,hash); }
   location.href = url + '#G' + now.getTime();
}

if( navigator.userAgent.indexOf('GTB6') > 0 )
{
   if(top.location!=location){top.location.href=document.location.href;}
   HideComments();
   setTimeout("ChangeURL()",2000); // Delay to accomodate different Internet speeds.
}
