//Update these keys to use for specific site
//key = mlc:pageName : new Array(siteSection, pageTitle, contentType)
var _hbxKey = {
"contentArray[0]:flash_pn":new Array("sites:abadazad:intro","flash_pn","regular"),
"contentArray[1]:flash_pn":new Array("sites:abadazad:home","flash_pn","regular"),
"contentArray[2]:flash_pn":new Array("sites:abadazad:abadazad","flash_pn","regular"),
"contentArray[3]:flash_pn":new Array("sites:abadazad:characters","flash_pn","regular"),
"contentArray[4]:flash_pn":new Array("sites:abadazad:books","flash_pn","regular"),
"contentArray[5]:flash_pn":new Array("sites:abadazad:games","flash_pn","regular"),
"contentArray[6]:flash_pn":new Array("sites:abadazad:inconceivable_mess","flash_pn","activities"),
"contentArray[7]:flash_pn":new Array("sites:abadazad:crossword","flash_pn","activities"),
"contentArray[8]:flash_pn":new Array("sites:abadazad:creators","flash_pn","regular"),
"contentArray[9]:flash_pn":new Array("sites:abadazad:news","flash_pn","regular"),
"contentArray[10]:flash_pn":new Array("sites:abadazad:downloads","flash_pn","downloads"),
"contentArray[11]:flash_pn":new Array("sites:abadazad:mobile","flash_pn","mobile")
};

var _text = "";

function _openDynamicWin(text)
{
	_text = _text + text + "<br>";
	var frog = window.open("","wildebeast","width=600px,height=63px,scrollbars=0,resizable=1");

	var html = "<html><head><title>Testing</title></head><body style='margin:0;'>";
	html += _text;
	html += "</body></html>";

	//variable name of window must be included for all three of the following methods so that
	//javascript knows not to write the string to this window, but instead to the new window

	frog.document.open();
	frog.document.write(html);
	frog.document.close();

}

function pageTrack(pn,mlc,account){
	try{
		var omnivalue = _hbxKey[mlc+":"+pn];
		cto.h.mlc=mlc;
		cto.h.pageName=pn;
		cto.account="disneybooks";
		cto.category="dshop";
		cto.site="disneybooks";
		cto.siteSection=omnivalue[0];
		cto.pageName=omnivalue[1];
		cto.contentType=omnivalue[2];
		cto.property="";
		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);
		//_openDynamicWin(mlc + ":" + pn);
	}
}
hitbox = new function hitboxObj(){
	this.Set_hbPageView = pageTrack
} 