

function LoadMastheadBug() {

	//--- check for a relatively standards capable browser before doing anything
	if (document.getElementById || document.createElement || document.setAttribute) {

		var arrContentElements, masthead, objPanel, buglink, bugimage, bugalttext;
		var objAnchor = document.createElement('a');
		var objImage = document.createElement('img');
	
		//--- get the masthead container
		arrContentElements = getElementsByStyleClass('navheaderbg');
		masthead = arrContentElements[0].getElementsByTagName("div")[0];
		
		//--- fetch the masthead bug destination URL, image src, and alt text
		buglink = $('mastheadbug_link').getAttribute('href');
		bugimage = $('mastheadbug_link').firstChild.getAttribute('src');
		bugalttext = $('mastheadbug_link').firstChild.getAttribute('alt');
		
		//--- apply positioning attribute to masthead to create reference point for panel position
		masthead.style.cssText = 'position:relative;';
	
		//--- create the mastheadbug container
		objPanel = document.createElement('div');
		objPanel.setAttribute('id', 'mastheadbug');
		objPanel.style.cssText = 'display:none;';

		// --- build ESRB icon object
		objImage.setAttribute('src', bugimage);
		objImage.setAttribute('alt', bugalttext);
		objImage.setAttribute('title', '');
	
		objAnchor.appendChild(objImage);
		objAnchor.setAttribute('href', buglink);

		objPanel.appendChild(objAnchor);

		//--- add the masthead bug container to the masthead
		masthead.insertBefore(objPanel, masthead.firstChild);	
	
	
		//--- reveal the masthead bug container and its counter
//		Effect.toggle(objPanel,'appear',{duration:.5});
		Effect.BlindDown(objPanel,{duration:1});
	
	}
}