function Location( old, moved ){ this.old = old; this.moved = moved; }
//
// Map old locations to new ones in the following table. Copy /usr/web/_redirect.html
// (without changes) to the old directory and rename it to have the name of the
// file to redirect.

var map =
[
new Location("http://www.holub.com/class/uml/uml.html",			"http://www.holub.com/goodies/uml/index.html"),
new Location("http://www.holub.com/class/oo_design/uml.html",	"http://www.holub.com/goodies/uml/index.html"),
new Location("http://www.holub.com/cat/oo_design_workshop.html","http://www.holub.com/training/oo.workshop.html"),
new Location("http://www.holub.com/aiharticles.html",			"http://www.holub.com/publications/articles/index.html"),
new Location("http://www.holub.com/goodies/goodies.html",		"http://www.holub.com/goodies/index.html" ),
new Location("http://www.holub.com/bankofallen.html",			"http://www.holub.com/publications/other/bankofallen.html"),
new Location("http://www.holub.com/bio.html",					"http://www.holub.com/company/allen_holub.html"),
new Location("http://www.holub.com/patterns.html",				"http://www.holub.com/goodies/patterns/index.html"),
];
function redirect_location()
{	var here = document.URL.toLowerCase().replace( /\\/g, "/" );
	for( var i = 0; i < map.length; ++i )
		if( map[i].old == here )
			return map[i].moved;
	return "http://www.holub.com/";
}
function redirect_message()
{	document.write
	( "The page at " + document.URL + "<br>has moved to "
	  + redirect_location()
	  + '<br><br><br><br> Click <a href="'
	  + redirect_location() 
	  + '"> here </a> to go to the new location if you are not redirected within 5 seconds.'
	);
}
document.write( '<meta http-equiv="Refresh" content="4; url='+ redirect_location() +'">' );

