// --------------------------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------------------------
// behaviours - Marks up document with ARIA Roles;
// depends: 	jQuery library;
// author:		nr;
// --------------------------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------------------------

Barclaycard.setupARIA = function addARIARole(strID, strRole)
{
    // Find the element to add a role property to
    var objElement = document.getElementById(strID);

    if (objElement)
    {
        // Add the role property to the element
        objElement.setAttribute('role', strRole);
    }
};

(function glossary() {
	
	// Add ARIA roles to the document
	Barclaycard.setupARIA('information', 'navigation');
	Barclaycard.setupARIA('header', 'banner');
	Barclaycard.setupARIA('content', 'main');
	Barclaycard.setupARIA('sidebar', 'navigation');
	Barclaycard.setupARIA('searchForm', 'search');
	Barclaycard.setupARIA('termsConditions', 'contentinfo');
	Barclaycard.setupARIA('footer', 'contentinfo');
})();


// --------------------------------------------------------------------------------------------------------------------------------
// --- end of file --- 
// -------------------------------------------------------------------------------------------------------------------------------
