//<!--
/*
 * Note that getFileNameFromURL returns the directory tree
 * and name for a file.  For this code, "pageName" is this value.
 * "http://www.shoes.com/womens/highheel/index.html"
 * returns "womens/highheel/index.html" as pageName
 * Notice that the leading forward slash is omitted.
 */

/*
 * Each conditional block tests the pageName to a known URL.
 * If, for example, your home page has the URL
 * "http://www.mysite.com/index.html", the first
 * conditional block in this code would read:
 *
 * if (pageName == "index.html") {
 */

// The page currently being viewed
var pageName = getFileNameFromURL(false,false);

// Whether or not a tag has been placed on a page
var tagPlaced = false;

/*
 * cm_search should be set any time you arrive at a page using
 * a search term.  Usually, that search term is available in the
 * query string of the URL.  Otherwise, set this parameter in
 * your web page's code
 */
var cm_search = "";

// Technical Properties tag will be placed
//if (pageName == "http://nike.com/nikegolf/index.html") {
if (pageName == "[Home Page pageName]") {
	var cm = new _cm("tid", "6", "vn2", "e3.1");
	cm.pi = getFileNameFromURL(false,false);
	cm.pc = "Y";
	cm.addTP();
	cm.writeImg();
	
	tagPlaced = true;
}

// One of these conditional blocks or multi-conditional should be
// used for registration confirmation pages
if (pageName == "[Registration pageName]") {
	cmCreateRegistrationTag("Registration Name", "Subscribed Flag", "Registration ID", "Zip Code");

	tagPlaced = true;
}

// One of these conditional blocks or multi-condition should be
// used for error pages
if (pageName == "[Error pageName]") {
	cmCreateErrorTag();

	tagPlaced = true;
}

// Every other page will get a PageView tag
if (!tagPlaced) {
	cmCreatePageViewTag();
}
//-->