var menudata=new Array(62);
menudata[1]="    <table class=\"dynamicmenu\" width=\"100%\"> ";
menudata[2]="      <tr> ";
menudata[3]="        <td onmouseover=\"hide();\" align=\"center\"><a href=\"index.htm\"><font color=\"#ffffff\">Home</font></a></td> ";
menudata[4]="        <td id='tddropmenu0' onmouseout=\"hide();\" onmouseover=\"dropit(event, 'dropmenu0','tddropmenu0');event.cancelBubble=true;return false\">Our Organization</td> ";
menudata[5]="        <td id='tddropmenu1' onmouseout=\"hide();\" onmouseover=\"dropit(event, 'dropmenu1','tddropmenu1');event.cancelBubble=true;return false\">Policies & Issues</td> ";
menudata[6]="        <td id='tddropmenu2' onmouseout=\"hide();\" onmouseover=\"dropit(event, 'dropmenu2','tddropmenu2');event.cancelBubble=true;return false\">Hot Topics</td> ";
menudata[7]="        <td id='tddropmenu3' onmouseout=\"hide();\" onmouseover=\"dropit(event, 'dropmenu3','tddropmenu3');event.cancelBubble=true;return false\">Get Involved</td> ";
menudata[8]="        <td id='tddropmenu4' onmouseout=\"hide();\" onmouseover=\"dropit(event, 'dropmenu4','tddropmenu4');event.cancelBubble=true;return false\">Info Center</td> ";
menudata[9]="        <td onmouseover=\"hide();\" align=\"center\"><a href=\"sitemap.htm\"><font color=\"#ffffff\">Site Map</font></a></td> ";
menudata[10]="     </tr> ";
menudata[11]="    </table> ";
menudata[12]="    <div id=\"dropmenu0\" class=\"navdropmenu\" onmouseout=\"hide();\" onmouseover=\"donotclose();\"> ";
menudata[13]="      <a href=\"about.htm\">About Us</a><br /> ";
menudata[14]="      <a href=\"contact.htm\">Contact Us</a><br /> ";
menudata[15]="      <a href=\"whatsnew.htm\">What's New Here</a><br /> ";
menudata[16]="      <a href=\"speakup.htm\">Comments/Questions</a><br /> ";
menudata[17]="      <a href=\"privacylegal.htm\">Privacy Policy</a><br /> ";
menudata[18]="      <a href=\"donate.htm\">Make a Donation</a><br /> ";
menudata[19]="    </div> ";
menudata[20]="    <div id=\"dropmenu1\" class=\"navdropmenu\" onmouseout=\"hide();\" onmouseover=\"donotclose();\"> ";
menudata[21]="      <a href=\"economy.htm\">Economic Issues</a><br /> ";
menudata[22]="      <a href=\"underconst.htm\">Domestic Policies</a><br /> ";
menudata[23]="      <a href=\"underconst.htm\">Foreign Policy</a><br /> ";
menudata[24]="      <a href=\"underconst.htm\">Homeland Security</a><br /> ";
menudata[25]="      <a href=\"underconst.htm\">Federal Legislation</a><br /> ";
menudata[26]="      <a href=\"underconst.htm\">Trade Issues</a><br /> ";
menudata[27]="      <a href=\"underconst.htm\">Education Issues</a><br /> ";
menudata[28]="      <a href=\"underconst.htm\">&nbsp;&nbsp; Environmental Issues &nbsp;&nbsp;</a><br /> ";
menudata[29]="      <a href=\"underconst.htm\">Immigration Issues</a><br /> ";
menudata[30]="    </div> ";
menudata[31]="    <div id=\"dropmenu2\" class=\"navdropmenu\" onmouseout=\"hide();\" onmouseover=\"donotclose();\"> ";
menudata[32]="      <a href=\"hot-issues.htm\">Today's Hot Issues</a><br /> ";
menudata[33]="      <a href=\"energy/index.htm\">Energy Independence</a><br /> ";
menudata[34]="      <a href=\"energy/planprod.htm\">Domestic Oil Production</a><br /> ";
menudata[35]="      <a href=\"agw/index.htm\">Global Warming</a><br /> ";
menudata[36]="      <a href=\"economy.htm\">U.S. Economy</a><br /> ";
menudata[37]="    </div>  ";
menudata[38]="    <div id=\"dropmenu3\" class=\"navdropmenu\" onmouseout=\"hide();\" onmouseover=\"donotclose();\"> ";
menudata[39]="      <a href=\"speakup.htm\">Suggestions and Requests</a><br /> ";
menudata[40]="      <a href=\"contact-elected.htm\">Contact Your Elected Officials</a><br /> ";
menudata[41]="      <a href=\"underconst.htm\">Petitions & Opinions</a><br /> ";
menudata[42]="      <a href=\"underconst.htm\">Register to Vote</a><br /> ";
menudata[43]="      <a href=\"volunteer.htm\">Volunteer to Help</a><br /> ";
menudata[44]="      <a href=\"energy/support.htm\">Support Energy Independence</a><br /> ";
menudata[45]="      <a href=\"donate.htm\">Make a Donation</a><br /> ";
menudata[46]="     </div> ";
menudata[47]="     <div id=\"dropmenu4\" class=\"navdropmenu\" onmouseout=\"hide();\" onmouseover=\"donotclose();\"> ";
menudata[48]="       <a href=\"underconst.htm\">Federal Legislation</a><br /> ";
menudata[49]="       <a href=\"underconst.htm\">Freedom of Information Requests</a><br /> ";
menudata[50]="       <a href=\"energy/plan.htm\">Energy Independence Plan</a><br /> ";
menudata[51]="       <a href=\"energy/planprod.htm\">Domestic Oil Production Plan</a><br /> ";
menudata[52]="       <a href=\"energy/news.htm\">Energy News and Opinion</a><br /> ";
menudata[53]="       <a href=\"energy/facts.htm\">Energy Facts</a><br /> ";
menudata[54]="       <a href=\"energy/factcheck.htm\">Energy Fact Check</a><br /> ";
menudata[55]="       <a href=\"agw/debate.htm\">Global Warming Debate</a><br /> ";
menudata[56]="       <a href=\"agw/videos.htm\">Global Warming Videos</a><br /> ";
menudata[57]="       <a href=\"agw/resources.htm\">Global Warming Resources</a><br /> ";
menudata[58]="       <a href=\"agw/news.htm\">Global Warming News and Opinion</a><br /> ";
menudata[59]="       <a href=\"agw/facts.htm\">Global Warming Facts</a><br /> ";
menudata[60]="       <a href=\"agw/factcheck.htm\">Global Warming Fact Check</a><br /> ";
menudata[61]="     </div> ";
for(i=1; i<62; i++)
    document.write(menudata[i]);



var is_safari =(document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)&&(!navigator.accentColorName)?true:false
var is_konq = (navigator.vendor == 'KDE')||(document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)?true:false;
if(is_safari || is_konq){
     var menuheight=81;
}else{
     var menuheight=20;
}



var x=0
var zindex=100
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var opr=navigator.userAgent.indexOf("Opera")
var ie=((navigator.userAgent.indexOf('MSIE')!=-1)&&!opr);
var ie4=document.all
var mac=(navigator.userAgent.indexOf('Mac')!=-1);
var iemac=(mac&&ie);




function GetTop(testitem)
{
	if (!document.createElement)
	{
		alert('This script won\'t work in your browser.');
		return;
	}
	var z = 'top';
	if (z) var y = getStyle(testitem,z);
     x=y.substr(0,y.length-2);

	return x * 1;
}

function getStyle(el,styleProp)
{
	var x = document.getElementById(el);
	if (window.getComputedStyle)
		var y = window.getComputedStyle(x,null).getPropertyValue(styleProp);
	else if (x.currentStyle)
		var y = eval('x.currentStyle.' + styleProp);
	return y;
}

function hidemenu(){
if (window.themenu)
	themenuStyle.visibility=ns4?"hide" : "hidden" ;
}

function findPosX(obj){
	var curleft = 0;
	if (obj.offsetParent){
		while (obj.offsetParent)	{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj){
	var curtop = 0;
	if (obj.offsetParent){
		while (obj.offsetParent)	{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function dropit(e,whichone,rr){
	donotclose()
	curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id
	curmenuIDtd=ns6? document.getElementById(rr).id : eval(rr).id
	if ((window.themenu&&themenu.id!=curmenuID)){
		hidemenu();
		x=0;
	}
	themenu=ns6? document.getElementById(whichone): eval(whichone) ;
	themenutd=ns6? document.getElementById(curmenuIDtd): eval(curmenuIDtd) ;
	themenuStyle=(ns6||ie4)? themenu.style : themenu ;
	menuwidth=window.themenu.offsetWidth; /* width of drop down list */
	browserwidth = document.body.clientWidth; /* width of browser window */
	halfmenuwidth=Math.abs(menuwidth / 2);
	if(iemac)
		tdstartpos = e.clientX - e.offsetX;
	else
		tdstartpos = findPosX(themenutd);
	tdstartpos += Math.abs(window.themenutd.offsetWidth / 2); /* add half width of the td */
	if ((tdstartpos + halfmenuwidth) > browserwidth) /* if too long for browser window */
		tdstartpos = browserwidth - menuwidth - 1; /* set to end at the browser edge */
	else
		tdstartpos -= halfmenuwidth; /* subtract half width of drop down list to center on td */
	if(tdstartpos < 0) tdstartpos = 0; /* set start position to left edge if negative */
	themenuStyle.left = tdstartpos;
	themenuStyle.top = findPosY(themenutd) + menuheight;
	hiddenconst=(ns6||ie4)? "hidden" : "hide"
	if (themenuStyle.visibility==hiddenconst || x==0 ){
		x=1;
		themenuStyle.visibility=(ns6||ie4)? "visible" : "show"
		themenuStyle.zIndex=zindex++
	} //else
//		hidemenu()
	return false
}


var wait=350;
var menuTimer;
function hide(menunum){
     menuTimer=setTimeout('hidemenu()',wait);
}
function donotclose(){
     if(menuTimer != null) clearTimeout(menuTimer);
}
