//from excel doc regexp replace (.*?)\:b(/.*?)\:b(/.*?)\:b(.*) with // \1\ncase "\4":\n\t_hbPageView("\4","\2;\3");\n\tbreak;\n

function actionTag(url)
{
	debug("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)
	{

	// HOME PAGE *
	case "home+page":
		actionTag("http://switch.atdmt.com/action/Village_homepage");
		_hbPageView("home+page","/the+village/generate+awareness/information/misc;/generate+awareness/information/touchstone/the+village/misc");
		break;
	
	//   > secret link
	case "Buried+info":
		_hbPageView("Buried+info","/the+village/generate+awareness/information/cast+crew;/generate+awareness/information/touchstone/the+village/cast+crew");
		break;

	//  > Bonus Features *
	case "features":
	case "dvdfeatures":
		actionTag("http://switch.atdmt.com/action/Village_bonus");
		_hbPageView("features","/the+village/generate+awareness/information/bonus+features;/generate+awareness/information/touchstone/the+village/bonus+features");
		break;
	
	//   > trailer *
	case "trailer":
		_hbPageView("trailer","/the+village/generate+awareness/multimedia/trailers;/generate+awareness/multimedia/touchstone/the+village/trailers");
		break;
	
	//  > Filmmaker *
	case "filmMaker":
	case "filmmaker":
		actionTag("http://switch.atdmt.com/action/Village_filmmaker");
		_hbPageView("filmmaker","/the+village/generate+awareness/information/cast+crew;/generate+awareness/information/touchstone/the+village/cast+crew");
		break;
	
	//  > Story *
	case "story":
		actionTag("http://switch.atdmt.com/action/Village_story");
		_hbPageView("story","/the+village/generate+awareness/information/story;/generate+awareness/information/touchstone/the+village/story");
		break;
		
	//  > Cast & Crew *
	case "cast+crew":
	case "castCrew":
	case "theCast":
		actionTag("http://switch.atdmt.com/action/Village_cast");
		_hbPageView("cast+crew","/the+village/generate+awareness/information/cast+crew;/generate+awareness/information/touchstone/the+village/cast+crew");
		break;
	
	//  > Production Notes *
	case "prod+notes":
	case "prodNotes":
		actionTag("http://switch.atdmt.com/action/Village_notes");
		_hbPageView("prod+notes","/the+village/generate+awareness/information/prod+notes;/generate+awareness/information/touchstone/the+village/prod+notes");
		break;
	
	//  > Trailers & Clips *
	case "trailer+clips":
	case "videoTrailer":
		actionTag("http://switch.atdmt.com/action/Village_video");
		//actionTag("http://switch.atdmt.com/action/Village_clips");
		_hbPageView("trailer+clips","/the+village/generate+awareness/multimedia/trailers;/generate+awareness/multimedia/touchstone/the+village/trailers");
		break;
	
	//   > downloads *
	case "essentials+downloads":
	case "downloads":
		actionTag("http://switch.atdmt.com/action/Village_downloads");
		_hbPageView("essentials+downloads","/the+village/generate+awareness/downloads;/generate+awareness/downloads/touchstone/the+village");
		break;
	
	//    >> desktops ?
	case "dtops":
		_hbPageView("dtops","/the+village/generate+awareness/downloads/dtops;/generate+awareness/downloads/touchstone/the+village/dtops");
		break;
	
	//    >> icons *
	case "icons":
	case "aim":
		actionTag("http://switch.atdmt.com/action/Village_icons");
		_hbPageView("icons","/the+village/generate+awareness/downloads/icons;/generate+awareness/downloads/touchstone/the+village/icons");
		break;
	
	//    > wallpapers *
	case "wallpaper":
	case "wallpapers":
		actionTag("http://switch.atdmt.com/action/Village_wallpaper");
		_hbPageView("wallpaper","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp1 1280 *
	case "wp1+1280":
		_hbPageView("wp1+1280","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp1 1024 *
	case "wp1+1024":
		_hbPageView("wp1+1024","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp1  800 *
	case "wp1+800":
		_hbPageView("wp1+800","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp2  1280 *
	case "wp2+1280":
		_hbPageView("wp2+1280","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp2 1024 *
	case "wp2+1024":
		_hbPageView("wp2+1024","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp2  800 *
	case "wp2+800":
		_hbPageView("wp2+800","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp3  1280 *
	case "wp3+1280":
		_hbPageView("wp3+1280","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp3 1024 *
	case "wp3+1024":
		_hbPageView("wp3+1024","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp3  800 *
	case "wp3+800":
		_hbPageView("wp3+800","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp4  1280 *
	case "wp4+1280":
		_hbPageView("wp4+1280","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp4 1024 *
	case "wp4+1024":
		_hbPageView("wp4+1024","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp4  800 *
	case "wp4+800":
		_hbPageView("wp4+800","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp5  1280 *
	case "wp5+1280":
		_hbPageView("wp5+1280","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp5 1024 *
	case "wp5+1024":
		_hbPageView("wp5+1024","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp5  800 *
	case "wp5+800":
		_hbPageView("wp5+800","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp6  1280 *
	case "wp6+1280":
		_hbPageView("wp6+1280","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp6 1024 *
	case "wp6+1024":
		_hbPageView("wp6+1024","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//     >> wp6  800 *
	case "wp6+800":
		_hbPageView("wp6+800","/the+village/generate+awareness/downloads/wallpapers;/generate+awareness/downloads/touchstone/the+village/wallpapers");
		break;
	
	//    > Interactive desktop *
	case "interact+desktop":
	case "interactiveDesktop":
		actionTag("http://switch.atdmt.com/action/Village_desktop");
		_hbPageView("interact+desktop","/the+village/generate+awareness/downloads/dtops;/generate+awareness/downloads/touchstone/the+village/dtops");
		break;
	
	//     >> download desktop *
	case "interact+dtop+download":
		_hbPageView("interact+dtop+download","/the+village/generate+awareness/downloads/dtops;/generate+awareness/downloads/touchstone/the+village/dtops");
		break;
	
	//   > ecards *
	case "ecards":
	case "cards":
		actionTag("http://switch.atdmt.com/action/Village_ecards");
		_hbPageView("ecards","/the+village/generate+awareness/downloads/ecards;/generate+awareness/downloads/touchstone/the+village/ecards");
		break;
	
	//     >> ecards download *
	case "ecards+download":
		_hbPageView("ecards+download","/the+village/generate+awareness/downloads/ecards;/generate+awareness/downloads/touchstone/the+village/ecards");
		break;
	
	//   > Iron Ons *
	case "iron+ons":
	case "ironOns":
		actionTag("http://switch.atdmt.com/action/Village_iron");
		_hbPageView("iron+ons","/the+village/generate+awareness/downloads/iron+ons;/generate+awareness/downloads/touchstone/the+village/iron+ons");
		break;
	
	//     >> iron ons download *
	case "iron+ons+download":
		_hbPageView("iron+ons+download","/the+village/generate+awareness/downloads/iron+ons;/generate+awareness/downloads/touchstone/the+village/iron+ons");
		break;
		
	// IMAGES *
	case "images":
		_hbPageView("images","/the+village/generate+awareness/multimedia/photo+galleries;/generate+awareness/multimedia/touchstone/the+village/photo+galleries");
		break;
		
	//   > clip1 *
	case "clip1":
		actionTag("http://switch.atdmt.com/action/Village_clips");
		_hbPageView("clip1","/the+village/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/the+village/clips");
		break;
	//   > clip2 *
	case "clip2":
		actionTag("http://switch.atdmt.com/action/Village_clips");
		_hbPageView("clip2","/the+village/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/the+village/clips");
		break;
	//   > clip3 *
	case "clip3":
		actionTag("http://switch.atdmt.com/action/Village_clips");
		_hbPageView("clip3","/the+village/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/the+village/clips");
		break;
	//   > clip4 *
	case "clip4":
		actionTag("http://switch.atdmt.com/action/Village_clips");
		_hbPageView("clip4","/the+village/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/the+village/clips");
		break;
	//   > clip5 *
	case "clip5":
		actionTag("http://switch.atdmt.com/action/Village_clips");
		_hbPageView("clip5","/the+village/generate+awareness/multimedia/clips;/generate+awareness/multimedia/touchstone/the+village/clips");
		break;
	
	//   > enter woods
	case "enter+woods":
		_hbPageView("enter+woods","/the+village/generate+awareness/interactive+content/games;/generate+awareness/information/touchstone/the+village/games");
		break;
	//   > secret link
	case "secret+link":
		_hbPageView("secret+link","/the+village/generate+awareness/interactive+content/games;/generate+awareness/information/touchstone/the+village/games");
		break;

	// Order Now *
	case "order":
		actionTag("http://switch.atdmt.com/action/Village_ordernow");
		_hbPageView("order","/the+village/sell+movies/exit+links;/sell+movies/exit+links/touchstone/the+village");
		break;
	
	// Non flash page *
	case "no+flash":
		actionTag("http://switch.atdmt.com/action/Village_nonflash");
		_hbPageView("no+flash","/the+village/generate+awareness/information/misc;/generate+awareness/information/touchstone/the+village/misc");
		break;

    default:
        debug("unhandled: " + trackString);
        //_hbPageView(trackString, "/the+village/generate+awareness/information/misc;/generate+awareness/information/touchstone/the+village/misc");
        break;
    }
}
