//Update these keys to use for specific site
//key = mlc:pageName : new Array(siteSection, pageTitle, contentType)
var _hbxKey = {
"/originalmovies/halloweentown/index:halloweentown+index":new Array("ret_hal","home","regular"),
"/originalmovies/halloweentown/about:about+index":new Array("ret_hal","about","regular"),
"/originalmovies/halloweentown/photos:photos+index":new Array("ret_hal","photos","photos"),
"/originalmovies/halloweentown/email:email+index":new Array("ret_hal","email","email"),
"/originalmovies/halloweentown/videos:videos+index":new Array("ret_hal","videos","videos"),
"/originalmovies/halloweentown/party+planner/index:party+planner+index":new Array("ret_hal:party_planner","home","regular"),
"/originalmovies/halloweentown/party+planner/ideas:ideas+index":new Array("ret_hal:party_planner","ideas","activities"),
"/originalmovies/halloweentown/party+planner/decorations:decorations+index":new Array("ret_hal:party_planner","decorations","activities"),
"/originalmovies/halloweentown/party+planner/menu:menu+index":new Array("ret_hal:party_planner","menu","activities"),
"/originalmovies/halloweentown/party+planner/invites:invites+index":new Array("ret_hal:party_planner","invites","activities"),
"/originalmovies/halloweentown/quiz:quiz+index":new Array("ret_hal","quiz","activities"),
"/originalmovies/halloweentown/downloads:downloads+index":new Array("ret_hal:downloads","home","regular"),
"/originalmovies/halloweentown/downloads/wallpaper:wallpaper+800x600+index":new Array("ret_hal:downloads","wallpaper_sm","downloads"),
"/originalmovies/halloweentown/downloads/wallpaper:wallpaper+1024x768+index":new Array("ret_hal:downloads","wallpaper_lg","downloads"),
"/originalmovies/halloweentown/downloads/print:print+downloads+index":new Array("ret_hal:downloads","print_poster","downloads")
};

function pageTrack(pn,mlc,account){
	try{
		var omnivalue = _hbxKey[mlc+":"+pn];
		cto.h.mlc=mlc;
		cto.h.pageName=pn;
		cto.account="dcndisneychannel";
		cto.category="dtv";
		cto.site="dch";
		cto.siteSection=omnivalue[0];
		cto.pageName=omnivalue[1];
		cto.contentType=omnivalue[2];
		cto.property="ret_hal";
		cto.genre="movies"; 
		cto.track();
	}
	catch(err)
	{
		/* Use these while developing, comment it out when finish
		   Viwer don't need to see these stuff */

		//alert("Please update _hbxKey");
		//document.write(mlc + ":" + pn);
	}
}
hitbox = new function hitboxObj(){
	this.Set_hbPageView = pageTrack
	this.Set_hbLink = pageTrack
} 