//--------------------------------------------------------------------------------
// Glitnir Config
//--------------------------------------------------------------------------------


if (typeof(boxRounder) != "undefined")
{
  boxRounder.selectors["div.rbox"] = { handle : "rbox" };
  boxRounder.selectors["div.attention"] = { handle : "attention" };
}

if( typeof(updateBtn) != "undefined" )
{
  updateBtn.config.selectors = ['.fi_btn input', '.portlet-form-button'];
  updateBtn.config.exclude= ['qsearch'];
}


//--------------------------------------------------------------------------------
// Glitnir init
//--------------------------------------------------------------------------------

// if you make any major changes to the DOM (i.e. add popup-links or page elements that require rounded corners), then make sure you run this 
var updateDom = function(_scopeElm) // if _scopeElm is undefined (or false) then the whole document is refreshed - which may take a bit longer.
{
  if (typeof(boxRounder) != "undefined") { boxRounder.init(_scopeElm); }
  if (typeof(updateBtn) != "undefined")  { updateBtn.init(); }
};


updateDom(); // initialize the dom modification functions





