/******************************************************************************
 * @title Statistics customization functions
 * @author DENIS ROUSSEAU
 * @version 1.4.4.0
 * @Note: All functions are optional. Unnecessary ones can be removed
 ******************************************************************************/
 
/**************************************************************
 * Customize base path (window.location.pathname - common - next) to remove unsuitable folders or to add virtual folders
 */
function getCustomPath(sp, isGlobal)
{
	var msp = sp ;
	if (isGlobal)
	{
	}
	else
	{
		
	}
	return msp ;
}

/**************************************************************
 * Allow particular pages exclusion from content tag
 * Ask if required uri is excluded or not from content tag. 
 * Return true if excluded.
 */
function isCustomExcluded(uri)
{
    var r = false;
    return r;
}

/**************************************************************
 * Allow settings of specific Xiti parameters (search engines, segmentation,...)
 */
function setCustomXt(pu)
{
	
}

/**************************************************************
 * Allow settings of specific Google Analytics parameters
 */
function setCustomGA(gaObj)
{
	
}

/**************************************************************
 * Allow setting of specific hooks for download tracking
 */
function setCustomDownloadHook()
{
	
}

/**************************************************************
 * Introduce custom condition to allow global statistic enabling 
 * Return false when required conditions are not met
 */
function doCustomCheck()
{
    var r = true;
    return r;
}

/**************************************************************
 * Customize alert raising.
 * Called when at least one condition prevent statistic enabling
 */
function doCustomAlert(alertType)
{
}

/**************************************************************
 * Allow any specific marking (like other marking systems)
 * Called after standard content marker
 */
function doCustomMarker()
{
}

function getCustomLinkNodeName(node, type)
{
	var lpage = '' ;
	switch (type)
	{
	default:
		lpage = stat_link.getLinkName(node.href, type) ;
		break ;
	}
	return lpage ;
}



