// s=s_gi("pentonwinsupersite");

var s_account="pentonwinsupersite";
var path = location.pathname;

// set the fullpath including the querystring...like CGI.REQUEST_URI
if( location.search.length != 0 ){  var fullPath=path + location.search; }
else{ var fullPath=path; }


s=s_gi(s_account);
s.channel="Community";
s.pageName=document.title;

var Today= new Date();
s.prop1=Today.getHours();
s.prop2=location.hostname;
s.prop8=s_account;



// Determine if this is the blogs or the forums - for s.prop6 // 
if( path.search( /forums/i ) > 0 ){ s.prop6="Forums"; }
else if( path.search( /blogs/i ) > 0 ){ 

	// check and see if we are in the 'tips' section...`
	if( (path.search( /itprotips/i ) > 0) || (location.search.search( /GroupID=16/i ) > 0) )
	{
		s.prop6 = "Tips";
  }
	else
		{ s.prop6="Blogs";  }

}
else if( path.search( /search/i ) > 0 )
{ 
	s.prop6="Search";    // Since this is a search we have more vars to fill
	var queryString=location.search;
	var begin=(queryString.indexOf("=") + 1);
	var end=queryString.indexOf("&");
	if( end == -1 ){ end = queryString.length; }
	var searchTerms=queryString.slice(begin, end);
	s.prop3=searchTerms.replace(/\+/g, " ");       // unfortunately, there is no easy way in 
												   //  Community Server to get the number of 
												   //  search results...
}
else{ s.prop6="General"; }



////////////////////////////////////////////////////////////////

s.trackingServer="metrics.winsupersite.com";
s.trackingServerSecure="smetrics.winsupersite.com";

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code);
 
