<!--

//Get URL parameters
var request = new Array(); // in case we need an associative array to handle query string.
    //populate the empty array request() with name / value pairs from the query string.
	  var query = document.location.search;
	  query = query.substring(1,query.length);
	  query = query.replace(/\+/g," ");

	  var arrQ = query.split("&");
	  for(i=0;i<arrQ.length; i++)
  	{
	    arrQ2 = arrQ[i].split('=');
	    request[arrQ2[0]] = arrQ2[1];
	  }
  
// ****** Get page URL info
var full_url = location.href.substring(location.href.length,location.href.indexOf('\/')+2);
var protocol = location.href.substring(0,location.href.indexOf('\/')+2);
var dom = full_url.substring(0,full_url.indexOf('\/'));

// ****** Set s.pagename
var pname = "";
// s.pagename = url w/o protocol and domain for static pages
pname = full_url.substring(full_url.length,full_url.indexOf('\/')+1);

// s.pagename = Dynamic pages - filter for product and support pages containing the url parameter TAB
if(pname.indexOf('tab=') > -1) pname = pname.substring(pname.length,pname.indexOf('tab='));

// s.pagename = filter for AWR servlet hits
if(pname.indexOf('awr/servlet') > -1) pname = "AWR";
   
   
// ****** Set s.channel
var chan = "";

if(location.href.indexOf('www.3com.com/corpinfo/') > -1) chan = "Corpinfo";
if(location.href.indexOf('www.3com.com/products/') > -1) chan = "Products";
if(location.href.indexOf('www.3com.com/promotions/') > -1) chan = "Promotions";
if(location.href.indexOf('www.3com.com/solutions/') > -1) chan = "Solutions";
if(location.href.indexOf('www.3com.com/retail/') > -1) chan = "Solutions";
if(location.href.indexOf('www.3com.com/voip/') > -1) chan = "Solutions";
if(location.href.indexOf('www.3com.com/network/') > -1) chan = "Solutions";
//if(location.href.indexOf('www.3com.com/support/') > -1) chan = "Support";
if(request["pathtype"]) {subGrp2 = request["pathtype"]; if (subGrp2 == "support") chan = "Support";};
if(location.href.indexOf('www.3com.com/partners/') > -1) chan = "Partners";
if(location.href.indexOf('www.3com.com/shop/') > -1) chan = "Shop";

// ****** Set s.prop5 - to product SKU
var prod =  "";
if(request["sku"]) prod = request["sku"];

// ****** Set s.prop1
var subGrp0 = "";
// s.prop1 = set to the search engine search term(s)
if(request["tx0"]) subGrp0 = request["tx0"];
if(request["tx1"]) subGrp0 += " + " + request["tx1"];
if(request["qt"])  subGrp0 = request["qt"];


// ****** Set s.prop2 to Category page
var subGrp1 = "";
if(request["cat"]) subGrp1 = request["cat"];

// ****** Set s.prop3 to Family page
var subGrp2 = "";
if(request["family"]) subGrp2 = request["family"];

// ****** Set s.prop4 to a Solution section
var subGrp3 = "";
if(location.href.indexOf('en_US/education/') > -1) subGrp3 = "Education";
if(location.href.indexOf('en_US/healthcare/') > -1) subGrp3 = "Healthcare";
if(location.href.indexOf('en_US/government/') > -1) subGrp3 = "Government";
if(location.href.indexOf('www.3com.com/retail/') > -1) subGrp3 = "Retail";
if(location.href.indexOf('www.3com.com/network/') > -1) subGrp3 = "Network";
if(location.href.indexOf('www.3com.com/voip/') > -1) subGrp3 = "VoIP";
if(location.href.indexOf('en_US/smb/') > -1) subGrp3 = "SMB";

// ****** Set s.events
var assign_event = "";
if (typeof comevent != "undefined") assign_event = comevent;


s.pageName=pname;
s.server=""
s.channel=chan;
s.pageType=""
s.prop1=subGrp0;
s.prop2=subGrp1;
s.prop3=subGrp2;
s.prop4=subGrp3;
s.prop5= prod;
/* E-commerce Variables */
s.campaign=""
s.state=""
s.zip=""
s.events=assign_event;
s.products=""
s.purchaseID=""
s.eVar1=""
s.eVar2=""
s.eVar3=""
//alert("loaded");
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)

// -->
