/*--WEBSIDESTORY CODE HBX1.0 (Universal)-->
<!--COPYRIGHT 1997-2004 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No. 6,393,479B1. MORE INFO:http://websidestory.com/privacy-->
/*<!-- <script language="javascript"> -->*/
var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="ehg-wizardsofthecoast.hitbox.com";

//comment next if block to debug on Luna
//if (sHBXWinLoc.indexOf("://luna") == -1) {

//SORTING FOR CONTENT CATEGORIES AND APPENDING ADDITIONAL ACCTs
//ARRY = substring Match, Content Category, HBX Account beyond main roll up, full string match required (T/F)
var aLocCatAcct = new Array(  	new Array("autocard.asp?name=", "autocard", "",false),
								new Array("autocard.asp", "autocard", "",false),
								new Array("x=legendology", "legendology", "",false),
								new Array("x=dbm/","dbm", ";DM550812PODE", false),
								new Array("?url=", "autocard", "",false), 
								new Array("leaving.asp", "leaving", "",false), 
								new Array("x=ht/", "hecatomb", ";DM550324BNWM",false),
								new Array("hecatomb/", "hecatomb", ";DM550324BNWM",false),
								new Array("x=books/", "books", ";DM55032495EE",false),
								new Array("x=books/mirrorstone", "books/mirrorstone", ";DM55032495EE",false),
								new Array("x=books/dlnewadventures", "books/dlnewadventures", ";DM55032495EE",false),
								new Array("x=books/knights", "books/knights", ";DM55032495EE",false),
								new Array("http://www.gleemax.com/", "gleemax", ";DM55032452DW",false),
								new Array("x=swminis/", "swminis", ";DM550324KOES",false),
								new Array("x=starwars/", "swrpg", ";DM550324KOES",false),
								new Array("x=swtcg/", "swtcg",false),
								new Array("rss.asp", "rss", "",false), 
								new Array("duelmasters", "duelmasters", ";DM5402232JVB",false),
								new Array("://boards", "boards", ";DM5406254LDF",false),
								new Array("://boards.avalonhill.com", "boards/avalonhill", ";DM5406254LDF;DM550516PMFW",false),
								new Array("://webapp", "dci-webapp", "",false),
								new Array("://events", "rpga/dci", "",false),
								new Array("://tank.", "chat", "",false),
								new Array("avalonhill.com", "avalonhill", ";DM54062586MF",false),
								new Array("ah/", "avalonhill", ";DM54062586MF",false),
								new Array("transformers", "transformers", ";DM53090575ZE",false),
								new Array("neopets", "neopets", ";DM5408137OWA",false),
								new Array("community_chat", "chat", ";DM55032452DW",false),
								new Array("chatlogin", "chat", ";DM55032452DW",false),
								new Array("rpgchat", "chat", ";DM55032452DW",false),
								new Array("tcgchat", "chat", ";DM55032452DW",false),
								new Array("search.atomz.com", "search", "",false),
								new Array("x=dnd/", "", ";DM540223PPAN",false),
								new Array("playdnd.", "dnd", ";DM540223PPAN",false),
								new Array("dndnow.", "dnd", ";DM540223PPAN",false),
								new Array("dndminis", "dnd", ";DM540223PPAN",false),
								new Array("bgp/", "bgp", ";DM53090575ZE",false),
								new Array("magic/welcome.asp", "mtgcom", ";DM54022377AE",false),
								new Array("mtgevent/", "mtgevent", ";DM54022377AE",false),
								new Array("mtgcom/welcome", "mtgcom", ";DM54022377AE",false),
								new Array("x=magic/", "", ";DM54022377AE",false),
								new Array("x=mtgcom/", "", ";DM54022377AE",false),
								new Array("x=mtg/", "", ";DM54022377AE",false), // fix for new magic content
								new Array("gatherer.wizards.com", "mtg-apps/gatherer", ";DM540625K1RN;DM54022377AE",false),
								new Array("gathererlookup.asp?name=", "mtg-apps/gatherer", ";DM540625K1RN;DM54022377AE",false),
								new Array("gathererdev", "mtg-apps/gatherer", ";DM540625K1RN;DM54022377AE",false),
								new Array("sideboard/", "sideboard", ";DM54022377AE",false),
								new Array("lg/", "rpga/lg", "",false),
								new Array("gr/", "rpga/gr", "",false),
								new Array("lfarchive", "rpga/livingforce", "",false),
								new Array("livingforce/", "rpga/livingforce", "",false),
								new Array("swlf", "rpga/livingforce", "",false),
								new Array("dnd/mit", "rpga/dndminis", "",false),
								new Array("dnd/minis/tournaments", "rpga/dndminis", "",false),
								new Array("magic/displayexpansion.asp", "magic", ";DM54022377AE",false),
								new Array("magic/orbofinsight", "mtgcom", ";DM54022377AE",false),
								new Array("magic/playmagic", "mtgcom", ";DM54022377AE",false),
								new Array("http://www.wizards.com/magic/", "mtgcom", ";DM54022377AE",true),
								new Array("http://wizards.com/magic/", "mtgcom", ";DM54022377AE",true),
								new Array("magicthegathering.com", "mtgcom", ";DM54022377AE",true),
								new Array("mtgcom", "mtgcom", ";DM54022377AE",true),
								new Array("http://luna/", "Front Page", "",true),
								new Array("http://www.wizards.com/", "Front Page", "",true),
								new Array("http://wizards.com/", "Front Page", "",true) ,	
								new Array("http://wizards.com/welcome.asp", "Front Page", "",true) ,
								new Array("http://www.wizards.com/welcome.asp", "Front Page", "",true) ,
								new Array("http://www.wizards.com/magic/", "magic", ";DM54022377AE",true),
								// subsections of the new Magic website
							    new Array("/magic/multiverse/", "magic_multiverse", ";DM54022377AE",true),
							    new Array("/magic/tcg/", "magic_tcg", ";DM54022377AE",true),
							    new Array("/magic/magazine/", "magic_magazine", ";DM54022377AE",true),
							    new Array("/magic/digital/", "magic_digital", ";DM54022377AE",true),
							    new Array("/magic/publishing/", "magic_publishing", ";DM54022377AE",true)
								); 

if (sHBXWinLoc.indexOf("?x=") != -1) {
		var aHBXWinLoc = sHBXWinLoc.split("x=");
		sHBXContentCat = aHBXWinLoc[1].toString(); }
	else { 	sHBXWinLoc = sHBXWinLoc.toString();
			//alert("window location= " + sHBXWinLoc);
			sHBXContentCat = "Root"; 
			
	}
//test location
//Use these accounts for A&A stuff
//'new Array("showdown", "mlbshowdown", ";DM540813BPEV",false),
//'new Array("starsisterz", "starsisterz", ";DM5402234LEA",false),

var thisDataset = new HBXdataset(sHBXWinLoc,aLocCatAcct);
// ADDS IN ADDITIONAL ACCT VALUES TO SET
sHBXAcct += thisDataset["acct"];
//window.status = "URL:" + thisDataset["url"].toString() + " cat:" + thisDataset["category"].toString() + " acct:" + thisDataset["acct"].toString();
if (thisDataset["category"] != "") { sHBXContentCat = thisDataset["category"]; }

//status check: 
//window.status = "UD: " + sHBXContentCat + " " + sHBXAcct;
//alert (sHBXContentCat + " " + sHBXAcct);

//CONFIGURATION VARIABLES
hbx.acct= "DM53090575ZE"; // Primary HBX Account Number(s)
hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)
hbx.mlc= hbxMultiLevelContentCategory;//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="title";//DEFAULT PAGE NAME
hbx.ctdef="full";//DEFAULT CONTENT CATEGORY

//OPTIONAL PAGE VARIABLES
//ACTION SETTINGS
hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
hbx.lt="auto_pos";//LINK TRACKING
hbx.dlf="n";//DOWNLOAD FILTER
hbx.dft="n";//DOWNLOAD FILE NAMING
hbx.elf="n";//EXIT LINK FILTER

//SEGMENTS AND FUNNELS
hbx.seg="";//VISITOR SEGMENTATION
hbx.fnl="";//FUNNELS

//CAMPAIGNS
hbx.cmp="";//CAMPAIGN ID
hbx.cmpn=getQueryVariable("cmp");//CAMPAIGN ID IN QUERY
hbx.dcmp=getQueryVariable("dcmp");//DYNAMIC CAMPAIGN ID
hbx.dcmpn="";//DYNAMIC CAMPAIGN ID IN QUERY
hbx.dcmpe="";//DYNAMIC CAMPAIGN EXPIRATION
hbx.dcmpre="";//DYNAMIC CAMPAIGN RESPONSE EXPIRATION
hbx.hra="";//RESPONSE ATTRIBUTE
hbx.hqsr="";//RESPONSE ATTRIBUTE IN REFERRAL QUERY
hbx.hqsp="";//RESPONSE ATTRIBUTE IN QUERY
hbx.hlt="";//LEAD TRACKING
hbx.hla="";//LEAD ATTRIBUTE
hbx.gp="";//CAMPAIGN GOAL
hbx.gpn="";//CAMPAIGN GOAL IN QUERY
hbx.hcn="";//CONVERSION ATTRIBUTE
hbx.hcv="";//CONVERSION VALUE
hbx.cp="null";//LEGACY CAMPAIGN
hbx.cpd="";//CAMPAIGN DOMAIN

//CUSTOM VARIABLES
hbx.ci="";//CUSTOMER ID
hbx.hc1="";//CUSTOM 1
hbx.hc2="";//CUSTOM 2
hbx.hc3="";//CUSTOM 3
hbx.hc4="";//CUSTOM 4
hbx.hrf="";//CUSTOM REFERRER
hbx.pec="";//ERROR CODES

//INSERT CUSTOM EVENTS
var searchEv = new _hbEvent("search"); // required definition to create custom event
searchEv.keywords = getQueryVariable("sp-q").toLowerCase();// required value
if (searchEv.keywords != "") {
searchEv.results = "1"; // integer value required. Any number of results, or 0 to have the keyword displayed in the Failed Keywords report
searchEv.attr1 = sHBXContentCat; // optional, can be any string search attribute
}

//} // END LUNA EXCLUSION BLOCK******
//END EDITABLE SECTION

//REQUIRED SECTION. CHANGE "YOURSERVER" TO VALID LOCATION ON YOUR WEB SERVER (HTTPS IF FROM SECURE SERVER)
//<!-- </script> -->


<!--END WEBSIDESTORY CODE-->
