/**
 * Copyright (C) 2003, CodeHouse.com. All rights reserved.
 * CodeHouse(TM) is a registered trademark.
 *
 * THIS SOURCE CODE MAY BE USED FREELY PROVIDED THAT
 * IT IS NOT MODIFIED OR DISTRIBUTED, AND IT IS USED
 * ON A PUBLICLY ACCESSIBLE INTERNET WEB SITE.
 *
 * Script Name: Url Aliaser
 *
 * You can obtain this script at http://www.codehouse.com
 */
 
function UrlAliaser(lut)
{
   var s = location.search; 
   
   if( s )
   {
      if( s = s.match(/alias=([^&]+)/) )
      {
         s = s[1];
	  
         for(var i = 0; i < lut.length; ++i)
	     {
	        if( lut[i][0] == s )
		    {
	           location.replace(lut[i][1]);		 
		    }
	     }
      }
   }
}
