//To generate this file
//from excel doc regexp replace (.*?)\:b(/.*?)\:b(/.*?)\:b(.*) with // \1\ncase "\4":\n\t_hbPageView("\4","\2;\3");\n\tbreak;\n

//make sure the the <img name="actionTagImage"> tag is in the html file 
function actionTag(url)
{
	document['actionTagImage'].src = url;
}

// call this from the flash or from anywhere
// with the name of the section to track it
function track(trackString)
{
	debug(trackString);
	switch(trackString)
	{
	
	// flash detect
	case "no+flash":
		_hbPageView("no+flash","/hidalgo/generate+awareness/information/misc;/generate+awareness/information/touchstone/hidalgo/misc");
		break;
	
	// Home
	case "intro":
	case "home":
		_hbPageView("home","/hidalgo/generate+awareness/information/misc;/generate+awareness/information/touchstone/hidalgo/misc");
		break;
	
	// About the DVD
	case "about":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Aboutmovie");
		_hbPageView("about","/hidalgo/generate+awareness/information/about;/generate+awareness/information/touchstone/hidalgo/about");
		break;
	
	//   > synopsis
	case "story":
		_hbPageView("story","/hidalgo/generate+awareness/information/story;/generate+awareness/information/touchstone/hidalgo/story");
		break;
	
	//   > bonus features
	case "features":
		_hbPageView("features","/hidalgo/generate+awareness/information/bonus+features;/generate+awareness/information/touchstone/hidalgo/bonus+features");
		break;
	
	// Downloads & Clips
	case "downloads":
	case "downloads&clips":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Downloads");
		_hbPageView("downloads&clips","/hidalgo/generate+awareness/downloads;/generate+awareness/downloads/touchstone/hidalgo");
		break;
	
	//   > Film clips
	case "clips":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Clips");
		_hbPageView("clips","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	
	//   >> clip bonus features
	case "clips+true_story":
		_hbPageView("clips+bonus+features","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;

	//   >> clip1
	case "clips1":
	case "clips+come_on":
		_hbPageView("clips1","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	
	//   >> clip2
	case "clips2":
	case "clips+his_people":
		_hbPageView("clips2","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	
	//   >> clip3
	case "clips3":
	case "clips+hopkins_please":
		_hbPageView("clips3","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	
	//   >> clip4
	case "clips4":
	case "clips+last_chance":
		_hbPageView("clips4","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	
	//   >> clip5
	case "clips5":
		_hbPageView("clips5","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	//   >> clip6
	case "clips6":
		_hbPageView("clips6","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	//   >> clip7
	case "clips7":
		_hbPageView("clips7","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	//   >> clip8
	case "clips8":
		_hbPageView("clips8","/hidalgo/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/hidalgo/clips");
		break;
	
	//   > Image Gallery
	case "image+gallery":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Gallery");
		_hbPageView("image+gallery","/hidalgo/generate+awareness/multimedia/photo+galleries;/generate+awareness/multimedia/touchstone/hidalgo/photo+galleries");
		break;
	
	//   > Buddy Icons
	case "downloads_ecardsAIM":
	case "icons":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Icons");
		_hbPageView("icons","/hidalgo/generate+awareness/downloads/icons;/generate+awareness/downloads/touchstone/hidalgo/icons");
		break;
	
	//   > download icons
	case "aim+icons":
	case "icons+download":
		_hbPageView("icons+download","/hidalgo/generate+awareness/downloads/icons;/generate+awareness/downloads/touchstone/hidalgo/icons");
		break;
	
	//   > Wallpaper
	case "downloads_wallpaper":
	case "wallpapers+ss":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Wallpaper");
		_hbPageView("wallpapers+ss","/hidalgo/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/hidalgo/wallpapers");
		break;
	
	//   >> wp1 640
	case "wp1+640":
		_hbPageView("wp1+640","/hidalgo/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/hidalgo/wallpapers");
		break;
	
	//   >> wp1 800
	case "wp1+800":
		_hbPageView("wp1+800","/hidalgo/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/hidalgo/wallpapers");
		break;
	
	//   >> wp1 1024
	case "wp1+1024":
		_hbPageView("wp1+1024","/hidalgo/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/hidalgo/wallpapers");
		break;
	
	//   >> wp2 640
	case "wp2+640":
		_hbPageView("wp2+640","/hidalgo/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/hidalgo/wallpapers");
		break;
	
	//   >> wp2 800
	case "wp2+800":
		_hbPageView("wp2+800","/hidalgo/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/hidalgo/wallpapers");
		break;
	
	//   >> wp3 1024
	case "wp2+1024":
		_hbPageView("wp2+1024","/hidalgo/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/hidalgo/wallpapers");
		break;
	
	//   >> screensaver os10
	case "ss+os10":
		_hbPageView("ss+os10","/hidalgo/generate+awareness/downloads/screensavers;/generate+awareness/downloads/touchstone/hidalgo/screensavers");
		break;
	
	//   >> screensaver os9
	case "ss+os9":
		_hbPageView("ss+os9","/hidalgo/generate+awareness/downloads/screensavers;/generate+awareness/downloads/touchstone/hidalgo/screensavers");
		break;
	
	//   >> screensaver pc
	case "ss+pc":
		_hbPageView("ss+pc","/hidalgo/generate+awareness/downloads/screensavers;/generate+awareness/downloads/touchstone/hidalgo/screensavers");
		break;
	
	// Cast & Crew
	case "bios":
	case "cast&crew":
		_hbPageView("cast&crew","/hidalgo/generate+awareness/information/cast+crew;/generate+awareness/information/touchstone/hidalgo/cast+crew");
		break;
	
	//   > cast
	case "cast":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Cast");
		_hbPageView("cast","/hidalgo/generate+awareness/information/cast+crew;/generate+awareness/information/touchstone/hidalgo/cast+crew");
		break;
	
	//   > crew
	case "crew":
		_hbPageView("crew","/hidalgo/generate+awareness/information/cast+crew;/generate+awareness/information/touchstone/hidalgo/cast+crew");
		break;
	
	// Survival Game
	case "survival+game":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Game");
		_hbPageView("survival+game","/hidalgo/generate+awareness/interactive+content/games;/generate+awareness/interactive+content/touchstone/hidalgo/games");
		break;
	
	// Trailer
	case "trailer":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Trailer");
		_hbPageView("trailer","/hidalgo/generate+awareness/multimedia/trailers;/generate+awareness/multimedia/touchstone/hidalgo/trailers");
		break;
	
	// Discover More
	case "discover":
	case "discover+more":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Discover");
		_hbPageView("discover+more","/hidalgo/generate+awareness/information/misc;/generate+awareness/information/touchstone/hidalgo/misc");
		break;
	
	//   > frank hopkins
	case "hopkins":
		_hbPageView("hopkins","/hidalgo/generate+awareness/information/misc;/generate+awareness/information/touchstone/hidalgo/misc");
		break;
	
	//   > wild mustangs
	case "mustangs":
		_hbPageView("mustangs","/hidalgo/generate+awareness/information/misc;/generate+awareness/information/touchstone/hidalgo/misc");
		break;
	
	//   > educators packet
	case "edu+packet":
		_hbPageView("edu+packet","/hidalgo/generate+awareness/downloads/pdf;/generate+awareness/downloads/touchstone/hidalgo/pdf");
		break;
	
	//   >> download packet
	case "download+packet":
		_hbPageView("download+packet","/hidalgo/generate+awareness/downloads/pdf;/generate+awareness/downloads/touchstone/hidalgo/pdf");
		break;
	
	// Order Now
	case "order":
		actionTag("http://switch.atdmt.com/action/Hidalgo_Order");
		_hbPageView("order","/hidalgo/sell+movies/exit+links;/sell+movies/exit+links/touchstone/hidalgo");
		break;

	default:
        debug("unhandled: " + trackString);
        _hbPageView(trackString, "/hidalgo/generate+awareness/information/misc;/generate+awareness/information/touchstone/hidalgo/misc");
        break;
    }
}
