function presentFlash(flashSource, bgColor, width, height, wmode, flashVars) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ width +'" height="'+ height +'" id="'+ flashSource +'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="/images/'+ flashSource +'.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="'+ bgColor +'">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="'+ wmode +'">');
	document.write('<param name="flashvars" value="'+ flashVars +'">');
	document.write('<embed src="/images/'+ flashSource +'.swf" flashvars="'+ flashVars +'" menu="false" wmode="'+ wmode +'" quality="high" bgcolor="'+ bgColor +'" width="'+ width +'" height="'+ height +'" name="'+ flashSource +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</object>');
}

dropMenus = new Array('about',
'products',
'panels',
'sl25',
'sl20',
'il20',
'dl15',
'ss10',
'bs15',
'ns10',
'fp10',
'vs05',
'cr',
'crss10',
'crdl15',
'crsl20',
'ts',
'wp',
'hwp16',
'miscellaneous',
'continuousGutter',
'solarStandingSeam',
'colorGard',
'submittals',
'underlayment',
'insulation',
'extrudedPolystyrene',
'poly-ISO',
'dow',
'atlas',
'acfoam2',
'acfoamnb',
'hunter',
'warranties',
'forms',
'credit',
'green',
'solarStandingSeam2',
'submittals2',
'coolMetalRoofing',
'LEED',
'energyStar',
'contact');

function dropShow(menu, parentMenu, grandParentMenu, greatGrandParentMenu, greatGreatGrandParentMenu) {
  if (document.all) {
    document.all.menus.style.visibility = 'visible';
    document.all[menu].style.visibility = 'visible';
  } else if (document.getElementById) {
    document.getElementById('menus').style.visibility = 'visible';
    document.getElementById(menu).style.visibility = 'visible';
  }
  if (greatGreatGrandParentMenu) {
    dropHide(menu, parentMenu, grandParentMenu, greatGrandParentMenu, greatGreatGrandParentMenu);
  } else if (greatGrandParentMenu) {
    dropHide(menu, parentMenu, grandParentMenu, greatGrandParentMenu);
  } else if (grandParentMenu) {
    dropHide(menu, parentMenu, grandParentMenu);
  } else if (parentMenu) {
    dropHide(menu, parentMenu);
  } else {
    dropHide(menu);
  }
}

function dropHide(openMenu, parentMenu, grandParentMenu, greatGrandParentMenu, greatGreatGrandParentMenu) {
  for (n=0; n<dropMenus.length; n++) {
    if (dropMenus[n] != openMenu && dropMenus[n] != parentMenu && dropMenus[n] != grandParentMenu && dropMenus[n] != greatGrandParentMenu && dropMenus[n] != greatGreatGrandParentMenu) {
      if (document.all) {
        document.all[dropMenus[n]].style.visibility = 'hidden';
        document.all.menus.style.visibility = 'hidden';
      } else if (document.getElementById) {
        document.getElementById(dropMenus[n]).style.visibility = 'hidden';
        document.getElementById('menus').style.visibility = 'hidden';
      }
    }
  }
}

function rollOver(button) {
  if (document.all) {
    document.all[button].className = 'navOver';
  } else if (document.getElementById) {
    document.getElementById(button).className = 'navOver';
  }
}

function rollOut(button) {
  if (document.all) {
    document.all[button].className = 'navOut';
  } else if (document.getElementById) {
    document.getElementById(button).className = 'navOut';
  }
}