/* ------------------------------------------------------------
   function call for framework to render right grey bar if framework-content-right has a certain # of child nodes 
   ------------------------------------------------------------ */
   
function iamSetRightColumnBar()
{
	var thisCol = document.getElementById('framework-content-right').childNodes;
	for(i=0;i < thisCol.length;i++){
		if(thisCol[i].nodeType == 1 || (thisCol[i].nodeType == 3 && (/\S/.test(thisCol[i].nodeValue)))){
			document.getElementById('framework-base-main').className="framework-base-main-override";
			document.getElementById('framework-content-right').style.width="225px";
		}
	}
}

/* ------------------------------------------------------------
   workaround for mozilla 
   ------------------------------------------------------------ 
*/

function iamSetHeaderTop()
{
  if ((typeof(document.getElementById) != 'undefined') && 
      (typeof(document.getElementById) != null))
  {
    VarNode = document.getElementById('framework-iam-header');
    if (VarNode.childNodes.length >= 6)
    {
      if (VarNode.childNodes[5].hasAttribute('class'))
      {
        if (VarNode.childNodes[5].getAttribute('class') == 'nav-area')
        {
          VarNode.childNodes[5].style.top = '51px';
        }
      }
    }
  }
}

function iamSecondaryPopup(ParamURL)
{
  var VarPopup;
  
  VarPopup = window.open(ParamURL, 'iamSecondaryPopup', 'location=yes, toolbar=yes, menubar=yes, scrollbars=yes, status=yes, resizable=yes, top=30, left=250, width=640, height=500');
  if (VarPopup)
  {
    VarPopup.focus();
  }
}

function iamCheckClear(input, defaultPhrase) 
{
  if (input.value == defaultPhrase) 
  {
    input.value = "";
  }
}

function iamResetPhrase(input, defaultPhrase)
{
  if ((input.value != defaultPhrase) && (input.value.length < 1))
  {
    input.value = defaultPhrase;
  }
}

function iamNoLink()
{
}