function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (unescape(pair[0]) == variable) {
      return pair[1];
    }
  }
  return false;
}

function displayMenu(iAccountID, bIsPnpPub, bIsPub, bIsAdmin, bIsVirads, sPath,
                     sMenu1, sMenu2,sMenu2S1,sMenu2S2,sMenu2S3,sMenu3,
                     sMenu4,sMenu4S1,sMenu4S2,sMenu4S3,sMenu5,
                     sMenu6,sMenu6S1,sMenu6S2,sMenu6S3,sMenu6S4,sMenu6S5,
                     sMenu7,sMenu7S1,sMenu7S2,sMenu7S3,sMenu7S4,
                     sMenu8,sMenu8S1,sMenu8S2,sMenu8S3,sMenu8S4,sMenu8S5,sMenu8S6,sMenu8S7,sMenu8S8,sMenu8S9,sMenu8S10,sMenu8S11,sMenu8S12,sMenu8S13,
                     sMenu2T1,sMenu2T2,
                     sMenu4T1,sMenu4T2,
                     sMenu6T1,sMenu6T2,
                     sMenu7T1,
                     sMenu8T1,sMenu8T2,sMenu8T3,sMenu8T4,sMenu8T5,
                     sPageUrl)
{
	bHomePath 	= false;
	bMmbrPath 	= false;
	bPubPath 	= false;
	bMainPath 	= false;
	bAdminPath 	= false;
	bSuprtPath 	= false;
	bCntctPath 	= false;
	bCampIndexPath = false;

	bCheckMmbr 	 = sPageUrl.indexOf('/member/');
	bCheckPub 	 = sPageUrl.indexOf('/pubs/');
	bCheckPublisher  = sPageUrl.indexOf('/publisher/');
	bProfile         = sPageUrl.indexOf('/profile');
	bPublisherReport = sPageUrl.indexOf('/pnp/campaign/publisher-report');
	bListWebsites    = sPageUrl.indexOf('/website/list-websites');
	bAccountBalance  = sPageUrl.indexOf('/payment/account-balance');
	bListInvoices    = sPageUrl.indexOf('/payment/list-invoices');
	bListPayments    = sPageUrl.indexOf('/payment/list-payments');
	bCheckAdmin	 = sPageUrl.indexOf('/admin/');
	bCheckCamps	 = sPageUrl.indexOf('/camps/');
	bCheckSprt1	 = sPageUrl.indexOf('/com/faq');
	bCheckSprt2	 = sPageUrl.indexOf('/com/user_manual');
	bCheckCntct	 = sPageUrl.indexOf('/com/contact');
	bCheckSrch	 = sPageUrl.indexOf('/search/result');
	bCheckTerms	 = sPageUrl.indexOf('/com/terms');
	bCampList	 = sPageUrl.indexOf('/pnp/campaign');

	// Determine the view of invoice report:
	// If there is a filter[searchPublishers] and it is anything other than the
	// user's account ID, then it is the admin view.
	bInvoicePubView = (bListInvoices != -1);

	if(bInvoicePubView && sPageUrl.indexOf('searchPublishers') != -1 && getQueryVariable('filter[searchPublishers]') != iAccountID)
	{
	    bInvoicePubView = false;
	}

	if(bCheckMmbr != -1)
	{
		bMmbrPath = true;
	}
	else if((bCheckPub != -1) || (bProfile != -1) || (bPublisherReport != -1) || (bAccountBalance != -1) || (bInvoicePubView))
	{
		bPubPath = true;
	}
	else if(bCheckAdmin != -1 || bCheckCamps != -1 || bCheckPublisher != -1 || bListPayments != -1 || bListWebsites != -1 || bListInvoices != -1)
	{
		bAdminPath = true;
	}
	else if(bCheckSprt1 != -1 || bCheckSprt2 != -1 || bCheckTerms != -1)
	{
		bSuprtPath = true;
	}
	else if(bCheckCntct != -1)
	{
		bCntctPath = true;
	}
	else if(bCampList != -1)
	{
		bCampIndexPath = true;
	}
	else if(bCheckSrch == -1)
	{
		bHomePath = true;
	}

	// menu settings

	iMenuWidth 			= 540;

	iMenuHdWdth 		= 10;
	iMenuHdHght 		= 34;
	sMenuHdLnkClr 		= "#1B93D0";
	sMenuHdHvrClr 		= "#1B93D0";
	sMenuHdSptClr 		= "#FF023E";
	sMenuHdLnkTxt 		= "normal 9pt Trebuchet MS";
	sMenuHdHvrTxt 		= "normal 9pt Trebuchet MS";
	sMenuHdLnkArw 		= "images/menu_arrow_active.gif";
	sMenuHdHvrArw 		= "images/menu_arrow_active.gif";
	sMenuHdSptArw 		= "images/menu_arrow_hover.gif";
	iMenuHdArwWdth  	= 12;
	iMenuHdArwHght  	= 12;

	iMenuPopSpeed 		= 1000;
	iMenuPopX 			= -6;
	iMenuPopY 			= -3;
	iMenuPopSpcg		= 0;
	iMenuPopPdng		= 0;
	iMenuPopBdrWdt 		= 1;
	sMenuPopBdrClr 		= "#FFFFFF #1B93D0 #1B93D0 #1B93D0";
	sMenuPopBgClr 		= "#FFFFFF";
	iMenuPopShdwType 	= 0;
	iMenuPopShdwWdth 	= 2;
	sMenuPopShdwClr  	= "#999999";

	sMenuTtlSpc 		= "  ";
	sMenuTtlNrmClr 		= "#FFFFFF";
	sMenuTtlHvrClr 		= "#FFFFFF";
	iMenuTtlWtdth 		= 160;
	iMenuTtlHght		= 20;
	sMenuTtlNrmTxt		= "bold 8pt Trebuchet MS";
	sMenuTtlHvrTxt		= "bold 8pt Trebuchet MS";
	sMenuTtlNrmTxtC		= "#FF8400";
	sMenuTtlHvrTxtC		= "#FF8400";

	sMenuItmSpc 		= "    ";
	sMenuItmLnkClr 		= "#ffffff";
	sMenuItmHvrClr 		= "#1B93D0";
	iMenuItmWtdth 		= 160;
	iMenuItmHght		= 20;
	sMenuItmNrmTxt		= "normal 9pt Trebuchet MS";
	sMenuItmHvrTxt		= "normal 9pt Trebuchet MS";
	sMenuItmNrmTxtC		= "#1B93D0";
	sMenuItmHvrTxtC		= "#ffffff";

	// apply settings

	stm_bm(["menu101",iMenuWidth,"/images/","blank.gif",0,"","",0,0,0,0,20,1,0,0,sPath,"",0,0,1,1,"default","hand",""],this);

	stm_bp("p0",[0,4,0,0,0,0,0,11,100,"stEffect(\"slip\")",-2,"stEffect(\"slip\")",-2,100,0,0,"#EEEEEE","transparent","",3,0,0,"#EEEEEE"]);

	stm_ai("p0i0",[6,1,"transparent",sPath+"images/blank.gif",1,1,0]);

	// section

	if(bHomePath)
	{
		stm_ai("p0i1",[0,sMenu1,"","",-1,-1,0,,"_self","",,"","",0,0,0,"","",0,0,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdSptClr,sMenuHdSptClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
	} else {
		stm_ai("p0i1",[0,sMenu1,"","",-1,-1,0,sPath,"_self","",sMenu1,"","",0,0,0,"","",0,0,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE",sMenuHdLnkClr,sMenuHdLnkClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
	}

	stm_bp("p1",[1,4,0,0,1,4,0,0,100,"stEffect(\"slip\")",-2,"stEffect(\"slip\")",-2,100,0,0,"#EEEEEE","transparent","",3,0,0,"#000000"]);

	stm_aix("p0i2","p0i0",[6,20]);

	stm_ep();

	// section

	if(bIsPub || bIsPnpPub || bIsAdmin) {
		stm_aix("p0i4","p0i2",[]);

		if (bPubPath) {
			stm_aix("p0i5","p0i3",[0,sMenu6,"","",-1,-1,0,sPath+"profile/","_self","",,"","",0,0,0,sPath+sMenuHdSptArw,sPath+sMenuHdHvrArw,iMenuHdArwWdth,iMenuHdArwHght,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdSptClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		} else {
			stm_aix("p0i5","p0i3",[0,sMenu6,"","",-1,-1,0,sPath+"profile/","_self","",sMenu6,"","",0,0,0,sPath+sMenuHdLnkArw,sPath+sMenuHdHvrArw,iMenuHdArwWdth,iMenuHdArwHght,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE",sMenuHdLnkClr,sMenuHdLnkClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		}

		stm_bpx("p2","p1",[1,4,iMenuPopX,iMenuPopY,iMenuPopSpcg,iMenuPopPdng,0,0,iMenuPopSpeed,"",-2,"",-2,50,iMenuPopShdwType,iMenuPopShdwWdth,sMenuPopShdwClr,sMenuPopBgClr,"",3,1,iMenuPopBdrWdt,sMenuPopBdrClr]);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu6S1,"","",-1,-1,0,sPath+"profile","_self","",sMenu6S1,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i3","p0i0",[0,sMenuItmSpc+sMenu6S2,"","",-1,-1,0,sPath+"profile/?section=websites","_self","",sMenu6S2,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		if (!bIsVirads) {
			// item
			stm_aix("p1i5","p0i0",[0,sMenuItmSpc+sMenu6S3,"","",-1,-1,0,sPath+"pnp/campaign/publisher-report/","_self","",sMenu6S3,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

			// item
			stm_aix("p1i5","p0i0",[0,sMenuItmSpc+sMenu6S4,"","",-1,-1,0,sPath+"payment/account-balance","_self","",sMenu6S4,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

			// item
			stm_aix("p1i5","p0i0",[0,sMenuItmSpc+sMenu6S5,"","",-1,-1,0,sPath+"payment/list-invoices?filter[searchPublishers]="+iAccountID,"_self","",sMenu6S5,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);
		}

		stm_ep();
	}

	// check if login to display members

	if(!bIsAdmin && !bIsPub && !bIsPnpPub)
	{
		stm_aix("p0i6","p0i2",[]);

		if(bMmbrPath)
		{
			stm_aix("p0i7","p0i3",[0,sMenu4,"","",-1,-1,0,sPath+"member/login.php","_self","",,"","",0,0,0,sPath+sMenuHdSptArw,sPath+sMenuHdHvrArw,iMenuHdArwWdth,iMenuHdArwHght,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdSptClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		}
		else
		{
			stm_aix("p0i7","p0i3",[0,sMenu4,"","",-1,-1,0,sPath+"member/login.php","_self","",sMenu4,"","",0,0,0,sPath+sMenuHdLnkArw,sPath+sMenuHdHvrArw,iMenuHdArwWdth,iMenuHdArwHght,0,1,1,"#2C3C4C",1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE",sMenuHdLnkClr,sMenuHdLnkClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		}

		stm_bpx("p2","p1",[1,4,iMenuPopX,iMenuPopY,iMenuPopSpcg,iMenuPopPdng,0,0,iMenuPopSpeed,"",-2,"",-2,50,iMenuPopShdwType,iMenuPopShdwWdth,sMenuPopShdwClr,sMenuPopBgClr,"",3,1,iMenuPopBdrWdt,sMenuPopBdrClr]);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu4S1,"","",-1,-1,0,sPath+"member/login.php","_self","",sMenu4S1,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		stm_aix("p1i3","p1i1",[0,sMenuItmSpc+sMenu4S2,"","",-1,-1,0,sPath+"member/frgtPswd.php","_self","",sMenu4S2,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		stm_aix("p1i4","p1i1",[0,sMenuItmSpc+sMenu4S3,"","",-1,-1,0,"/account/signup/","_self","",sMenu4S3,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		stm_ep();

		stm_aix("p0i6","p0i2",[]);

		stm_aix("p0i5","p0i3",[0,sMenu3,"","",-1,-1,0,"/account/signup/","_self","",sMenu3,"","",0,0,0,"","",0,0,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdLnkClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);

		stm_bpx("p2","p1",[]);

		stm_ep();
	}

	// check if administrator

	if(bIsAdmin)
	{
		stm_aix("p0i6","p0i2",[]);

		if(bAdminPath) {
			stm_aix("p0i7","p0i3",[0,sMenu8,"","",-1,-1,0,sPath+"publisher/activity-report","_self","",,"","",0,0,0,sPath+sMenuHdSptArw,sPath+sMenuHdHvrArw,iMenuHdArwWdth,iMenuHdArwHght,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdSptClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		} else {
			stm_aix("p0i7","p0i3",[0,sMenu8,"","",-1,-1,0,sPath+"publisher/activity-report","_self","",sMenu8,"","",0,0,0,sPath+sMenuHdLnkArw,sPath+sMenuHdHvrArw,iMenuHdArwWdth,iMenuHdArwHght,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE",sMenuHdLnkClr,sMenuHdLnkClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		}

		stm_bpx("p2","p1",[1,4,iMenuPopX,iMenuPopY,iMenuPopSpcg,iMenuPopPdng,0,0,iMenuPopSpeed,"",-2,"",-2,50,iMenuPopShdwType,iMenuPopShdwWdth,sMenuPopShdwClr,sMenuPopBgClr,"",3,1,iMenuPopBdrWdt,sMenuPopBdrClr]);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S1,"","",-1,-1,0,sPath+"camps/","_self","",sMenu8S1,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S2,"","",-1,-1,0,sPath+"camps/generateCampaignUpdate.php","_blank","",sMenu8S2,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S10,"","",-1,-1,0,sPath+"publisher/activity-report","_self","",sMenu8S10,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S3,"","",-1,-1,0,sPath+"website/list-websites","_self","",sMenu8S3,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"New Publishers","","",-1,-1,0,sPath+"website/list-websites?list_type=new_publishers","_self","",sMenu8S3,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S6,"","",-1,-1,0,sPath+"payment/list-invoices?filter[searchPublishers]=","_self","",sMenu8S6,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S7,"","",-1,-1,0,sPath+"payment/list-payments","_self","",sMenu8S7,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S11,"","",-1,-1,0,sPath+"pnp/campaign/allow-list","_self","",sMenu8S11,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S12,"","",-1,-1,0,sPath+"syndicated-player/list-playlist","_self","",sMenu8S12,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu8S13,"","",-1,-1,0,sPath+"syndicated-player/list-fallback-playlist","_self","",sMenu8S13,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"Bookings","","",-1,-1,0,sPath+"campaign-bookings/list-bookings","_self","","Campaign Bookings","","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"Campaign Stats","","",-1,-1,0,sPath+"report?group=campaign_id","_self","","Referer Stats","","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"Referer Stats","","",-1,-1,0,sPath+"report?group=ref_domain_id","_self","","Referer Stats","","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"Daily Stats","","",-1,-1,0,sPath+"report?group=dato","_self","","Referer Stats","","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"Country Stats","","",-1,-1,0,sPath+"report?group=country","_self","","Referer Stats","","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);
		
		// item
		stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"Notification Messages","","",-1,-1,0,sPath+"message","_self","","Notification Messages","","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		stm_ep();
	}

	if (!bIsVirads) {
		

		if (!bIsPub) {
			stm_aix("p0i6","p0i2",[]);
			
			if (bCampIndexPath) {
				stm_ai("p0i1",[0,"CAMPAIGNS","","",-1,-1,0,sPath+"pnp/campaign/","_self","",,"","",0,0,0,"","",0,0,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdSptClr,sMenuHdSptClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
			}else{
				stm_ai("p0i1",[0,"CAMPAIGNS","","",-1,-1,0,sPath+"pnp/campaign/","_self","","CAMPAIGNS","","",0,0,0,"","",0,0,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE",sMenuHdLnkClr,sMenuHdLnkClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
			}
	
			stm_bpx("p2","p1",[]);

			stm_ep();
		}

		// section

		stm_aix("p0i6","p0i2",[]);

		if (bSuprtPath) {
			stm_aix("p0i7","p0i3",[0,sMenu2,"","",-1,-1,0,sPath+"com/faqs.php","_self","",,"","",0,0,0,sPath+sMenuHdSptArw,sPath+sMenuHdHvrArw,iMenuHdArwWdth,iMenuHdArwHght,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdSptClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		} else {
			stm_aix("p0i7","p0i3",[0,sMenu2,"","",-1,-1,0,sPath+"com/faqs.php","_self","",sMenu2,"","",0,0,0,sPath+sMenuHdLnkArw,sPath+sMenuHdHvrArw,iMenuHdArwWdth,iMenuHdArwHght,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE",sMenuHdLnkClr,sMenuHdLnkClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		}

		stm_bpx("p2","p1",[1,4,iMenuPopX,iMenuPopY,iMenuPopSpcg,iMenuPopPdng,0,0,iMenuPopSpeed,"",-2,"",-2,50,iMenuPopShdwType,iMenuPopShdwWdth,sMenuPopShdwClr,sMenuPopBgClr,"",3,1,iMenuPopBdrWdt,sMenuPopBdrClr]);

			// item
			stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu2S1,"","",-1,-1,0,sPath+"com/faqs.php","_self","",sMenu2S1,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

			// item
			stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu2S2,"","",-1,-1,0,sPath+"com/user_manual.php","_self","",sMenu2S2,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

			// item
			stm_aix("p1i1","p0i0",[0,sMenuItmSpc+sMenu2S3,"","",-1,-1,0,sPath+"com/terms.php","_self","",sMenu2S3,"","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

                        // item
			stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"Policies","","",-1,-1,0,sPath+"com/policies.php","_self","","Policies","","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

			// item
			stm_aix("p1i1","p0i0",[0,sMenuItmSpc+"Contact Us","","",-1,-1,0,sPath+"com/contact.php","_self","","Contact Us","","",0,0,0,"","",0,0,0,0,1,sMenuItmLnkClr,0,sMenuItmHvrClr,0,"","",3,3,0,0,"#E6EFF9","#2C3C4C",sMenuItmNrmTxtC,sMenuItmHvrTxtC,sMenuItmNrmTxt,sMenuItmHvrTxt],iMenuItmWtdth,iMenuItmHght);

		stm_ep();

		// section

		stm_aix("p0i10","p0i2",[]);

		if(bCntctPath)
		{
			stm_ai("p0i1",[0,sMenu5,"","",-1,-1,0,,"_self","",,"","",0,0,0,"","",0,0,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdSptClr,sMenuHdSptClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		}
		else
		{
			stm_aix("p0i10","p0i5",[0,sMenu5,"","",-1,-1,0,sPath+"com/contact.php","_self","",sMenu5,"","",0,0,0,"","",0,0,0,1,1,sMenuHdHvrClr,1,sMenuHdLnkClr,1,"","",3,3,0,0,"#EEEEEE","#9690A8",sMenuHdLnkClr,sMenuHdHvrClr,sMenuHdLnkTxt,sMenuHdHvrTxt,0,0],iMenuHdWdth,iMenuHdHght);
		}
	}

	// dispose

	stm_aix("p0i2","p0i0",[6,20]);

	stm_ep();

	stm_em();
}
