window.onresize=setfontsize;
window.onload=setfontsize;


function setcontentflag()
	{
	document.body.setAttribute('ourcontent', 'true') 
	setfontsize();
	}

function setfontsize()
	{
	 if (document.all)
	  {
	  fontindex=Math.round(top.document.body.clientWidth/85);
	  top.document.all['topbody'].style.fontSize = fontindex + "pt";
	  if(document.body.getAttribute('ourcontent')=='true')top.mainpanelcontent.document.all['contentbody'].style.fontSize = fontindex + "pt";
	  top.rightpanelcontent.document.all['promobody'].style.fontSize = fontindex + "pt";
	  }
	else if (document.getElementById)
	  {
	  fontindex=Math.round(top.window.innerWidth/85);
	  top.document.getElementById('topbody').style.fontSize = fontindex + "pt";
	  top.rightpanelcontent.document.getElementById('promobody').style.fontSize = fontindex + "pt";
	  if(document.body.getAttribute('ourcontent')=='true')top.mainpanelcontent.document.getElementById('contentbody').style.fontSize = fontindex + "pt";
	  }
	reflowstyle();
	}

function reflowstyle()
	{
	var docstyle=document.body.style;
	var savemode=docstyle.display;
	docstyle.display='none';
	docstyle.display=savemode;
	}

function clearSelected()
	{
	menuAnchors = document.getElementsByTagName('li');
	count = menuAnchors.length
	for(var i = 0;i < count;i++)
	  {
	  nodeObj = menuAnchors.item(i);
	  nodeObj.removeAttribute('id');
	  }
	document.getElementById('logo').style.visibility='visible';
	}

function hideLogo()
	{
	document.getElementById('logo').style.visibility='hidden';
	}

