/*
	When adding to this list, please keep the domains in alphabetical
	order so it's easier to maintain. The default is always the menu,
	so if you want the menu displayed, it is not necessary to include
	the domain in this list.
*/

var curLoc = new String();
// get hostname from browser location and convert to all lowercase
curLoc = location.hostname.toLowerCase();

// function called from index.html in the BODY tag's onLoad event
function reDirect() {
	// search for domain keywords in location, indexOf() returns -1 if not found
	if (curLoc.indexOf("mobilepromo") != -1) 
		location.replace("http://" + curLoc + "/mobilepromo/");
	else if (curLoc.indexOf("affiliate") != -1) 
			{
			if(curLoc.indexOf("affiliate.dev") != -1)
				location.replace("http://" + curLoc + "/espn_radio/");		
		    else if (curLoc.indexOf("marketingsuggestionbox") != -1)
	    		location.replace("http://" + curLoc + "/affiliatemarketingsuggestiongbox/");
        	else if (curLoc.indexOf("affiliate.soapnet") != -1)
				location.replace("http://" + curLoc + "/soapnet/");
        	else if (curLoc.indexOf("affiliate.toondisney") != -1)
				location.replace("http://" + curLoc + "/toondisney/");
            else if (curLoc.indexOf("affiliate.disney") != -1)
				location.replace("http://" + curLoc + "/affiliate/");
			else //location.replace("http://" + curLoc + "/affiliate_zone/");	
				location.replace("http://affiliate.disney.espn.com/");	
			} 
	else if (curLoc.indexOf("100yardblitz") != -1)
		location.replace("http://" + curLoc + "/100yardblitz/");
  	else if (curLoc.indexOf("360baseball") != -1)
		location.replace("http://" + curLoc + "/ESPN360/");
	else if (curLoc.indexOf("allaccesstrip.disney") != -1)
		location.replace("http://" + curLoc + "/egp/nascar/trip/index.jsp");
	else if (curLoc.indexOf("allaccessincentive.disney") != -1)
		location.replace("http://" + curLoc + "/egp/nascar/xbox/index.jsp");
	else if (curLoc.indexOf("allaccessadmin.disney") != -1)
		location.replace("http://" + curLoc + "/egp/nascar/admin/");
	else if (curLoc.indexOf("demnbroadband") != -1)
		location.replace("http://extranet.espn.com/espnsynd/private/hub/");
	else if (curLoc.indexOf("espnwc") != -1)
		location.replace("http://192.234.2.37");
	else if (curLoc.indexOf("brandidentityguide") != -1)
		location.replace("http://logos.espn.com/");
	else if (curLoc.indexOf("espngameplan") != -1)
		location.replace("http://" + curLoc + "/espngameplan/");
	else if (curLoc.indexOf("espnclassicalltimegreatest") != -1)
		location.replace("http://" + curLoc + "/classicalltimegreatest/");
	else if (curLoc.indexOf("bulls360") != -1)
		location.replace("http://" + curLoc + "/bulls360/");
	else if (curLoc.indexOf("1222deportes") != -1)
		location.replace("http://" + curLoc + "/deportestvkit/");
	else if (curLoc.indexOf("imsweb") != -1)
		location.replace("http://" + curLoc + "/ims/");
	else if (curLoc.indexOf("IMSWeb") != -1)
		location.replace("http://" + curLoc + "/ims/");
	else if (curLoc.indexOf("vodmetadata") != -1)
		location.replace("http://" + curLoc + "/md/");
	else if (curLoc.indexOf("bringthefamilyhome") != -1)
		location.replace("http://" + curLoc + "/abcbringthefamilyhome/");
	else if (curLoc.indexOf("iwannabepromo") != -1)
		location.replace("http://" + curLoc + "/iwannabepromo/");
	else if (curLoc.indexOf("soapnetparadisepromo") != -1)
		location.replace("http://" + curLoc + "/soapnetparadisepromo/");
	else if (curLoc.indexOf("stylebysoapnet") != -1)
		location.replace("http://" + curLoc + "/stylebysoapnet/");
	else if (curLoc.indexOf("1234deportes") != -1)
		location.replace("http://" + curLoc + "/deportesprintkit/");
	else if (curLoc.indexOf("charterne") != -1)
		location.replace("http://" + curLoc + "/charterne/");		
	else if (curLoc.indexOf("coxhdplaybook") != -1)
		location.replace("http://" + curLoc + "/coxhdplaybook/");
	else if (curLoc.indexOf("15434gp") != -1)
		location.replace("http://" + curLoc + "/gpentryform/");
	else if (curLoc.indexOf("abcnegotiationnews") != -1)
		location.replace("http://" + curLoc + "/abc/");
	else if (curLoc.indexOf("adelphiabuffalo") != -1)
		location.replace("http://" + curLoc + "/adelphiabuffalo/");
   	else if (curLoc.indexOf("adelphiaballgame") != -1)
       	location.replace("http://" + curLoc + "/adelphiaballgame/");
	else if (curLoc.indexOf("alumnitracker") != -1)
		location.replace("http://" + curLoc + "/hometown/");
	else if (curLoc.indexOf("baseball") != -1)
		location.replace("http://" + curLoc + "/mlb/");
    	else if (curLoc.indexOf("bassregistration") != -1)
		location.replace("http://" + curLoc + "/bassregistration/");
	else if (curLoc.indexOf("bleecker") != -1)
		location.replace("http://" + curLoc + "/ESPN_Mag_Covers/");
	else if (curLoc.indexOf("charterhdtv") != -1)
		location.replace("http://" + curLoc + "/charterhdtv/");
	else if (curLoc.indexOf("cheetahgirls2premiere") != -1)
		location.replace("http://" + curLoc + "/cheetahgirls2/");
	else if (curLoc.indexOf("classicbanner") != -1)
		location.replace("http://" + curLoc + "/classicbanner/");
	else if (curLoc.indexOf("classicsweepstakes") != -1)
		location.replace("http://" + curLoc + "/instant_win/");
	else if (curLoc.indexOf("clearviewgowithapro") != -1)
		location.replace("http://" + curLoc + "/clearviewgowithapro/");
	else if (curLoc.indexOf("coaches") != -1)
		location.replace("https://proxy.espn.go.com/coaches/");
	else if (curLoc.indexOf("collegebasketball") != -1)
		location.replace("http://" + curLoc + "/college_basketball/");
	else if (curLoc.indexOf("collegefootball") != -1)
		location.replace("http://" + curLoc + "/college_football/");		
	else if (curLoc.indexOf("comcasttrips") != -1)
		location.replace("http://" + curLoc + "/Comcast_Flash/");
	else if (curLoc.indexOf("comcastgp") != -1)
		location.replace("http://" + curLoc + "/comcastgp/");		
	else if (curLoc.indexOf("commercialoperationsguidelines") != -1)
		location.replace("http://" + curLoc + "/commops/");
	else if (curLoc.indexOf("coxbiggame") != -1)
		location.replace("http://" + curLoc + "/coxbiggame/");
    	else if (curLoc.indexOf("demnincentives") != -1)
		location.replace("http://" + curLoc + "/incentives/");
    	else if (curLoc.indexOf("demnthankyou") != -1)
		location.replace("http://" + curLoc + "/demnthankyou/");			
	else if (curLoc.indexOf("deportesfaf") != -1)
		location.replace("http://" + curLoc + "/deportesfaf/");
	else if (curLoc.indexOf("disneychannelonthesetgwp") != -1)
		location.replace("http://" + curLoc + "/dc_ontheset/");
	else if (curLoc.indexOf("disneychannelonthesetsweeps") != -1)
		location.replace("http://" + curLoc + "/dc_onthesetsweeps/");
	else if (curLoc.indexOf("enterprises") != -1)
		location.replace("http://" + curLoc + "/enterprises/");
	else if (curLoc.indexOf("espnabcsports") != -1)
		location.replace("http://www.espnabcsports.com/");
	else if (curLoc.indexOf("espnabcsportscms") != -1)
		location.replace("http://www.espnabcsports.com/");
	else if (curLoc.indexOf("espndeportes101") != -1)
		location.replace("http://" + curLoc + "/NFL_101/");
	else if (curLoc.indexOf("espnfantasycamp") != -1)
		location.replace("http://" + curLoc + "/fantasy_camp/");
	else if (curLoc.indexOf("espnewsbehindthescenes") != -1)
		location.replace("http://" + curLoc + "/newsbehindscenes/");
	else if (curLoc.indexOf("espnhdcox") != -1)
		location.replace("http://" + curLoc + "/espnhdcox/");
	else if (curLoc.indexOf("espndeporteslarevistapromo") != -1)
		location.replace("http://" + curLoc + "/espndeporteslarevistapromo/");	
	else if (curLoc.indexOf("espytravel") != -1)
		location.replace("http://" + curLoc + "/espytravel/");		
	else if (curLoc.indexOf("espyincentivekit") != -1)
		location.replace("http://" + curLoc + "/espyincentivekit/");
	else if (curLoc.indexOf("espytripkit") != -1)
		location.replace("http://" + curLoc + "/espytripkit/");			
	else if (curLoc.indexOf("espytrip") != -1)
		location.replace("http://" + curLoc + "/espytrip/");
	else if (curLoc.indexOf("espyincentive") != -1)
		location.replace("http://" + curLoc + "/espyincentive/");
	else if (curLoc.indexOf("espyadelphia") != -1)
		location.replace("http://" + curLoc + "/espyadelphia/");				
	else if (curLoc.indexOf("espnppv") != -1)
		location.replace("http://broadband.espn.go.com/ppv/");					
	else if (curLoc.indexOf("espnpayperview") != -1)
		location.replace("http://broadband.espn.go.com/ppv/");
    else if (curLoc.indexOf("espnspecialevents") != -1)
		location.replace("http://" + curLoc + "/superbowl/");
	else if (curLoc.indexOf("espntriteam") != -1)
		location.replace("http://" + curLoc + "/espntriteam/");
	else if (curLoc.indexOf("espnucc") != -1)
		location.replace("http://" + curLoc + "/espnuccb/");
	else if (curLoc.indexOf("espnzonetozone") != -1)
		location.replace("http://" + curLoc + "/zone2zone/");
	else if (curLoc.indexOf("fantasycamppsp") != -1)
		location.replace("http://" + curLoc + "/fantasycamppsp/");			
	else if (curLoc.indexOf("fantasycamptrip") != -1)
		location.replace("http://" + curLoc + "/fantasycamptrip/");		
	else if (curLoc.indexOf("fantasyfisherman") != -1)
		location.replace("http://" + curLoc + "/fantasyfisherman/");
	else if (curLoc.indexOf("golfpebblebeach2") != -1)
		location.replace("http://" + curLoc + "/golfpebblebeach2/");
	else if (curLoc.indexOf("golfpebblebeach") != -1)
		location.replace("http://" + curLoc + "/golfpebblebeach/");		
	else if (curLoc.indexOf("footage") != -1)
		location.replace("http://" + curLoc + "/footage/");
		else if (curLoc.indexOf("features") != -1)
		location.replace("http://" + curLoc + "/features/");
	else if (curLoc.indexOf("freehat") != -1)
		location.replace("http://" + curLoc + "/freehat/");
	else if (curLoc.indexOf("frontier") != -1)
		location.replace("http://" + curLoc + "/frontier/");		
	else if (curLoc.indexOf("fullcourt") != -1)
		location.replace("http://" + curLoc + "/fullcourt/");
	else if (curLoc.indexOf("gameplan") != -1)
		location.replace("http://" + curLoc + "/gameplan/");
	else if (curLoc.indexOf("golftravel2") != -1)
		location.replace("http://" + curLoc + "/golftravel2/");
	else if (curLoc.indexOf("golftravel") != -1)
		location.replace("http://" + curLoc + "/golftravel/");
	else if (curLoc.indexOf("gowithapro") != -1)
		location.replace("http://" + curLoc + "/gowithapro/");
	else if (curLoc.indexOf("design") != -1)
		location.replace("http://" + curLoc + "/graphics/");
	else if (curLoc.indexOf("hawaiibowl") != -1)
		location.replace("http://" + curLoc + "/hawaiibowl/");
	else if (curLoc.indexOf("hd") != -1)
		location.replace("http://" + curLoc + "/hd/");
	else if (curLoc.indexOf("hiddenheroes") != -1)
		location.replace("http://" + curLoc + "/hiddenheroespromo/");
	else if (curLoc.indexOf("hometownreport") != -1)
		location.replace("http://" + curLoc + "/hometown/");
	else if (curLoc.indexOf("hotelevision") != -1)
		location.replace("http://" + curLoc + "/hotelevision/");
	else if (curLoc.indexOf("hotelzone") != -1)
		location.replace("http://" + curLoc + "/hotel_zone/");
	else if (curLoc.indexOf("howesportsdata") != -1)
		location.replace("http://" + curLoc + "/howesportsdata/");
	else if (curLoc.indexOf("hustle") != -1)
		location.replace("http://" + curLoc + "/hustle/");
    	else if (curLoc.indexOf("incentives") != -1)
		location.replace("http://" + curLoc + "/incentives/");
	else if (curLoc.indexOf("international") != -1)
		location.replace("http://192.234.2.28");
    	else if (curLoc.indexOf("intlsyndication") != -1)
		location.replace("http://" + curLoc + "/intl_cat/");
	else if (curLoc.indexOf("localteamreport") != -1)
		location.replace("http://" + curLoc + "/hometown/");
	else if (curLoc.indexOf("joinourteam") != -1)
		location.replace("http://" + curLoc + "/joinourteam/");					
    else if (curLoc.indexOf("media.") != -1)
		//location.replace("http://" + curLoc + "/MediaZone/");
		location.replace("http://www.espnmediazone.com/");
	else if (curLoc.indexOf("miracle") != -1)
		location.replace("http://" + curLoc + "/miracle/");
	else if (curLoc.indexOf("musiccuesheet") != -1)
		location.replace("http://" + curLoc + "/musiccuesheet/");
	else if (curLoc.indexOf("mxwc-athleteregistration") != -1)
		location.replace("http://" + curLoc + "/mxwc/");
	else if (curLoc.indexOf("nhwinterx") != -1)
		location.replace("http://" + curLoc + "/nhwinterx/");	
	else if (curLoc.indexOf("on-air-promos") != -1)
		location.replace("http://" + curLoc + "/promos/");		
    	else if (curLoc.indexOf("on-airsponsorship") != -1)
		location.replace("http://" + curLoc + "/on-air_sales/");
	else if (curLoc.indexOf("pass") != -1)
		location.replace("http://" + curLoc + "/cfootball_schedule/");
    	else if (curLoc.indexOf("remoteoperations") != -1)
		location.replace("http://" + curLoc + "/remote_operations/");
	else if (curLoc.indexOf("snfcomcastatl") != -1)
		location.replace("http://" + curLoc + "/snfcomcastatl/");
	else if (curLoc.indexOf("snfcomcastnj") != -1)
		location.replace("http://" + curLoc + "/snfcomcastnj/");
	else if (curLoc.indexOf("snfcomcastpitt") != -1)
		location.replace("http://" + curLoc + "/snfcomcastpitt/");
	else if (curLoc.indexOf("snfhdcomcast") != -1)
		location.replace("http://" + curLoc + "/snfhdcomcast/");
	else if (curLoc.indexOf("soapnetbeautylounge") != -1)
		location.replace("http://" + curLoc + "/sn_beauty_lounge/");		
	else if (curLoc.indexOf("soapnetdaytimeemmygetaway") != -1)
		location.replace("http://" + curLoc + "/soapnet_emmy/");		
	else if (curLoc.indexOf("sportscenterdesk") != -1)
		location.replace("http://" + curLoc + "/jax/");
	else if (curLoc.indexOf("source.disney") != -1)
		location.replace("http://" + curLoc + "/source/");		
	else if (curLoc.indexOf("sportsfigures") != -1)
		location.replace("http://" + curLoc + "/sportsfigures/");
	else if (curLoc.indexOf("sportsticker") != -1)
		location.replace("http://" + curLoc + "/ticker/");
	else if (curLoc.indexOf("suscomxgames") != -1)
		location.replace("http://" + curLoc + "/suscom/");
	else if (curLoc.indexOf("teamcaptain") != -1)
		location.replace("http://" + curLoc + "/teamcaptain/");
	else if (curLoc.indexOf("teamespn") != -1)
		location.replace("http://" + curLoc + "/TeamESPN/");
	else if (curLoc.indexOf("tdunlimitedaction") != -1)
		location.replace("http://" + curLoc + "/tdunlimitedaction/");
	else if (curLoc.indexOf("thetruck") != -1)
		location.replace("http://" + curLoc + "/thetruck/");
	else if (curLoc.indexOf("toyota") != -1)
		location.replace("http://" + curLoc + "/Camry/");
	else if (curLoc.indexOf("twcsnfkiosk") != -1)
		location.replace("http://" + curLoc + "/twcsnfkiosk/");		
	else if (curLoc.indexOf("ncaabrealtime") != -1)
		location.replace("http://" + curLoc + "/ncaab/login.jsp");
    	else if (curLoc.indexOf("watchlistenwin") != -1)
		location.replace("http://" + curLoc + "/watch_listen_win/");
    	else if (curLoc.indexOf("winterx9kitaspen") != -1)
		location.replace("http://" + curLoc + "/winterx9aspen/");
    	else if (curLoc.indexOf("winterx9kitsnowboard") != -1)
		location.replace("http://" + curLoc + "/winterx9snowboard/");
    	else if (curLoc.indexOf("winterxcomcast") != -1)
		location.replace("http://" + curLoc + "/winterxcomcast/");
	else if (curLoc.indexOf("winterxbannerad") != -1)
		location.replace("http://" + curLoc + "/winterxcustbanner/");
	else if (curLoc.indexOf("xgameshudson") != -1)
		location.replace("http://" + curLoc + "/XGames_contest/MHC/");
	else if (curLoc.indexOf("xgamesrcn") != -1)
		location.replace("http://" + curLoc + "/XGames_contest/RCN/");
    else if (curLoc.indexOf("intlxgamesregistration") != -1)
		location.replace("https://" + curLoc + "/xdubai/");
    else if (curLoc.indexOf("xgamesregistration") != -1)
		location.replace("https://" + curLoc + "/mxwc/");
	else if (curLoc.indexOf("snfcomcastbalt") != -1)
		location.replace("https://" + curLoc + "/snfcomcastbalt/");
	else if (curLoc.indexOf("sngetintohotwater") != -1)
		location.replace("http://" + curLoc + "/sngetinhotwater/");
	else if (curLoc.indexOf("coxmemorabilia") != -1)
		location.replace("http://" + curLoc + "/coxmemorabilia/");
	else if (curLoc.indexOf("wichitarules") != -1)
		location.replace("http://" + curLoc + "/wichitarules/");
	else if (curLoc.indexOf("espnewscruisesignup") != -1)
		location.replace("http://" + curLoc + "/espnewscruisesignup/");
	else if (curLoc.indexOf("espnukit") != -1)
		location.replace("http://" + curLoc + "/espnupromotionkit/");		
	else if (curLoc.indexOf("espnupromotion") != -1)
		location.replace("http://" + curLoc + "/espnupromotionbookstore/");		
	else if (curLoc.indexOf("espnugiftcard") != -1)
		location.replace("http://" + curLoc + "/ESPNU/");		
	else if (curLoc.indexOf("espntrivia") != -1)
		location.replace("http://" + curLoc + "/espntrivia/");
	else if (curLoc.indexOf("espndeportespromotionsellin") != -1)
		location.replace("http://" + curLoc + "/espndeportespromotionsellin/");
	else if (curLoc.indexOf("espnsyndication") != -1)
		location.replace("http://" + curLoc + "/espnsynd/");
	else if (curLoc.indexOf("worcestersoap") != -1)
		location.replace("http://" + curLoc + "/worcestersoapnet/");
	else if (curLoc.indexOf("worcestersoapnet") != -1)
		location.replace("http://" + curLoc + "/worcestersoapnet/");
	else if (curLoc.indexOf("adelphiact") != -1)
		location.replace("http://" + curLoc + "/adelphia_magazine/");		
	else if (curLoc.indexOf("winterxgamesaspen") != -1)
		location.replace("http://" + curLoc + "/winterxgamesaspen/");		
	else if (curLoc.indexOf("winterxgamesmarketing") != -1)
		location.replace("http://" + curLoc + "/winterxgamesmarketing/");		
	else if (curLoc.indexOf("winterxgamesnowboard") != -1)
		location.replace("http://" + curLoc + "/winterxgamesnowboard/");		
	else if (curLoc.indexOf("winterxgamestravel") != -1)
		location.replace("http://" + curLoc + "/winterxgamestravel/");	
	else if (curLoc.indexOf("xgamesincentivekit") != -1)
		location.replace("http://" + curLoc + "/xgamesincentivekit/");			
	else if (curLoc.indexOf("xgamesincentive") != -1)
		location.replace("http://" + curLoc + "/xgamesincentive/");	
	else if (curLoc.indexOf("xgamestravel") != -1)
		location.replace("http://" + curLoc + "/xgamestravel/");	
	else if (curLoc.indexOf("xgamestripkit") != -1)
		location.replace("http://" + curLoc + "/xgamestripkit/");		
	else if (curLoc.indexOf("xgamestrip") != -1)
		location.replace("http://" + curLoc + "/xgamestrip/");	
	else if (curLoc.indexOf("travel") != -1)	
		location.replace("http://" + curLoc + "/travel/");	
	else if (curLoc.indexOf("thankyou.disney") != -1)	
		location.replace("http://" + curLoc + "/deamthanks/");	
	else if (curLoc.indexOf("tampabassmaster") != -1)
		location.replace("http://" + curLoc + "/tampabassmaster/");							
    else if (curLoc.indexOf("ncaa") != -1)
		location.replace("http://" + curLoc + "/ncaa/");
	else
		location.replace("http://" + curLoc + "/menu.html");
}
