/*	XANJAX Copyright 2007,2008,2009, and Trademark, of David Chapman, openPC Labs.

	XANJAX IS FREE SOFTWARE released under GNU Affero General Public License Version 3.
	Read licence.txt distributed with XANJAX, or xanjax.org/license.html for details.
	IF YOU USE OR DISTRIBUTE OR CONVEY XANJAX YOU ARE LEGALLY BOUND BY ITS LICENCE.

	YOU MUST Comply with Copyright and Trademark Rights. DO NOT REMOVE THIS NOTICE */

var rootPath="";
xanWrap("http://"+location.hostname+"/"+rootPath);

function xanWrap(siteRoot){
 var xanPath=siteRoot+location.href.replace(siteRoot,"#").replace(/.html|.htm/,".xml").replace("?","~");
 if(!location.hash&&navigator.userAgent.match(/webkit/i))
  location.assign(xanPath);
 else if(!location.hash)
  location.replace(xanPath);
}
