// set site domain and name of redirect file.
/* when delivered, domain was hardcoded to www.buick.com.
i changed this to be dynamic so that if on pprod, it would send you to pprod url, if live, it *should* send you to live url.
"should" being the operative word. -- dtw 9/22/05 */
var domain = "http://" + window.location.host;

/*
 Lookup for valid URLs i.e., user bookmarked promotion
 from 6 months ago and now it has either moved,
 or maybe we just want to send them elsewhere.
*/
function urlTable(){
var urls = new Array();
/*all index data must be used in lower case*/
urls['/h3t'] = "/?goto_page=/h3t/highlights/h3t_highlights_story.swf&goto_nav=h3t#/AMERICAS/us/en-us/";
urls['/H3T/'] = "/?goto_page=/h3t/highlights/h3t_highlights_story.swf&goto_nav=h3t#/AMERICAS/us/en-us/";
urls['/H3T'] = "/?goto_page=/h3t/highlights/h3t_highlights_story.swf&goto_nav=h3t#/AMERICAS/us/en-us/";
urls['/h3t/'] = "/?goto_page=/h3t/highlights/h3t_highlights_story.swf&goto_nav=h3t#/AMERICAS/us/en-us/";
urls['/H3t/'] = "/?goto_page=/h3t/highlights/h3t_highlights_story.swf&goto_nav=h3t#/AMERICAS/us/en-us/";
urls['/h3T/'] = "/?goto_page=/h3t/highlights/h3t_highlights_story.swf&goto_nav=h3t#/AMERICAS/us/en-us/";
urls['/h3t/customize'] = "/h3t/microsite/h3t.jsp?tabName=h3tTab&goto_page=customize.swf ";
urls['/h3t/customize/'] = "/h3t/microsite/h3t.jsp?tabName=h3tTab&goto_page=customize.swf ";
urls['/h3t/news'] = "/h3t/microsite/h3t.jsp?tabName=newsTab";
urls['/h3t/news/'] = "/h3t/microsite/h3t.jsp?tabName=newsTab";
urls['/%3cbr%20/%3e'] = "/";
urls['/civ2k/index2.html'] = "/";
urls['/civilian/index.html'] = "/";
urls['/civilian/'] = "/";
urls['/civilian/new/winter.html'] = "/";
urls["/hummerjsp/home.jsp_gm's_official_hummer_site"] = "/";
urls['/index.htm'] = "/";
urls['/index1.html'] = "/";
urls['/h1/4dw/gallery/index.asp'] = "/?goto_page=/world/h1_heritage.swf&goto_nav=world#/AMERICAS/us/en-us/";
urls['/h1/historyhert/index.asp'] = "/?goto_page=/world/h1_heritage.swf&goto_nav=world#/AMERICAS/us/en-us/";
urls['/h1/inthenews/viewnews.asp?i=59'] = "/?goto_page=/world/h1_heritage.swf&goto_nav=world#/AMERICAS/us/en-us/";
urls['/h2/'] = "/?goto_page=/h2/highlights/h2_highlights_story.swf&goto_nav=h2#/AMERICAS/us/en-us/";
urls['/h2'] = "/?goto_page=/h2/highlights/h2_highlights_story.swf&goto_nav=h2#/AMERICAS/us/en-us/";
urls['/h2/index.asp'] = "/?goto_page=/h2/highlights/h2_highlights_story.swf&goto_nav=h2#/AMERICAS/us/en-us/";
urls['/h2/gallery.asp'] = "/?goto_page=/h2/gallery/h2_gallery.swf&goto_nav=h2#/AMERICAS/us/en-us/";
urls['/h3/h3minisite/hummerh3.html?ignoreflash=0'] = "/?goto_page=/h3/highlights/h3_highlights_story.swf&goto_nav=h3#/AMERICAS/us/en-us/";
urls['/hummerjsp/h2/build/index.jsp%20h2'] = "/?goto_page=/h2/build/h2_configurator.swf&goto_nav=build#/AMERICAS/us/en-us/";
urls['/index.asp'] = "/";
urls['/hummerjsp/h2/gallery/index.jsp'] = "/?goto_page=/h2/gallery/h2_gallery.swf&goto_nav=h2#/AMERICAS/us/en-us/";
urls['/hummerjsp/h2/specs/chassis.jsp'] = "/?goto_page=/h2/details/h2_details_specs.swf&goto_nav=h2#/AMERICAS/us/en-us/";
urls['/hummerjsp/h2/specs/dimensions.jsp'] = "/?goto_page=/h2/details/h2_details_specs.swf&goto_nav=h2#/AMERICAS/us/en-us/";
urls['/hummerjsp/world/academy/index.jsp'] = "/?goto_page=/world/driving_academy.swf&goto_nav=world#/AMERICAS/us/en-us/";
urls['/dirt'] = "/index.jsp?goto_page=/world/hummer_racing.swf?section=dirt_experience&goto_nav=world";
urls['/dirt/'] = "/index.jsp?goto_page=/world/hummer_racing.swf?section=dirt_experience&goto_nav=world";
urls['/ownercenter'] = "http://www.gm.com/gmownercenter/hummer/";

//redirects Issue HUMAINT-27
urls['/hummerjsp/world/tv/tvspot_1.html'] = "/hummerjsp/home.jsp?goto_page=/world/tvspots/tvspots.swf?section=&goto_nav=tvspots";
urls['/default.htm'] = "/hummerjsp/home.jsp";
urls['/%22'] = "/hummerjsp/home.jsp";
urls['/hummerjsp/finance/incentives/index.jsp'] = "/hummerjsp/home.jsp?goto_page=/currentoffers/local_offers.swf?section=&goto_nav=currentoffers";
urls['/civilian/photo/1.html'] = "/hummerjsp/home.jsp";
urls['/hummerjsp/world/tv/tvspot_4.html'] = "/hummerjsp/home.jsp?goto_page=/world/tvspots/tvspots.swf?section=&goto_nav=tvspots";
urls['/hummerjsp/h1/gallery/index.jsp'] = "/hummerjsp/home.jsp";
urls['/hummerjsp/world/tv/tvspot_5.html'] = "/hummerjsp/home.jsp?goto_page=/world/tvspots/tvspots.swf?section=&goto_nav=tvspots";
urls['/hummerjsp/world/tv/tvspot_6.html'] = "/hummerjsp/home.jsp?goto_page=/world/tvspots/tvspots.swf?section=&goto_nav=tvspots";
urls['/h1/index.asp'] = "/hummerjsp/home.jsp";
urls['/flash.html'] = "/hummerjsp/home.jsp";
urls['/industrial/'] = "/hummerjsp/home.jsp";
urls['/industrial'] = "/hummerjsp/home.jsp";
urls['/hummerjsp/bigrace/bigrace.html'] = "/hummerjsp/home.jsp";
urls['/h1/4dot/gallery/index.asp'] = "/hummerjsp/home.jsp";
urls['/ht-2'] = "/hummerjsp/home.jsp";
urls['/html/nissan-pathfinder.html'] = "/hummerjsp/home.jsp";
urls['/civilian/index.html'] = "/hummerjsp/home.jsp";
urls['/contact/brochure/index.asp'] = "/hummerjsp/home.jsp?goto_page=/request_information.swf?section=&goto_nav=requestinformation";
urls['/html/offroad.html'] = "/hummerjsp/home.jsp";
urls['/dlrloc/outside.asp'] = "/hummerjsp/home.jsp";
urls['/html/ford-explorer.html'] = "/hummerjsp/home.jsp";
urls['/hummerjsp/h1/gallery/index.jsp'] = "/hummerjsp/home.jsp";
// End redirects Issue HUMAINT-27

return urls;
}

/* The Dictionary of keywords to match, and the metadata associated with each
putMapIdx('url','uri','title','description') where url = ultimate destination,
uri = intermediary destination fed to omniture, title = link name displayed to user
in the generated list, description = short text telling the what the link is.
*/
var dictionary = new MultiMap(); // create new MultiMap
/*
dictionary.putMapIdx('/for-o-for.html','uri','title1','description');
dictionary.putMapIdx('/fpur-0-four.html','uri','title2','description');
dictionary.putMapIdx('/fou-o-4.hml','uri','title3','description');
dictionary.putMapIdx('/4-0-4.htm','uri','title4','description');
dictionary.putMapIdx('/four-o-four.html','uri','title5','description');
dictionary.putMapIdx('/protours/index.jsp','uri','Protours','Protours is most awesome.');
dictionary.putMapIdx('url','uri','title7','description');
dictionary.putMapIdx('url','uri','title8','description');
dictionary.putMapIdx('url','uri','title9','description');
dictionary.putMapIdx('url','uri','title','description');
*/
