/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://moran.house.gov/newsroom_photos.shtml">Photo Gallery</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://moran.house.gov/hot-topics.shtml">Hot Topics</a>'
menu2[1]='<a href="casework.shtml">Federal Agency Assistance</a>'
menu2[2]='<a href="http://moran.house.gov/services_academy.shtml">Academy Nominations</a>'
menu2[3]='<a href="https://forms.house.gov/moran/services_flags.shtml">Flying a Flag</a>'
menu2[4]='<a href="http://moran.house.gov/federal-jobs.shtml">Federal Job Postings</a>'
menu2[5]='<a href="http://moran.house.gov/services_internships.shtml">Internships</a>'
menu2[6]='<a href="http://moran.house.gov/services_grants.shtml">Grants & Federal Funding</a>'
menu2[7]='<a href="http://moran.house.gov/student-aid.shtml">Student Financial Aid</a>'
menu2[8]='<a href="http://moran.house.gov/services_passports.shtml">Passport Services</a>'
menu2[9]='<a href="http://moran.house.gov/forms-library.shtml">Forms Library</a>'
menu2[10]='<a href="http://moran.house.gov/art-competition.shtml">Art Competition</a>'
menu2[11]='<a href="http://moran.house.gov/visitdc.shtml">Visiting Washington, D.C.</a>'
menu2[12]='<a href="http://moran.house.gov/vote.shtml">Register To Vote</a>'

var menu3=new Array()
menu3[0]='<a href="http://moran.house.gov/newsroom_releases.shtml">Press Releases</a>'
menu3[1]='<a href="http://moran.house.gov/newsroom_floor.shtml">Video Floor Speeches</a>'
menu3[2]='<a href="http://moran.house.gov/newsroom_columns.shtml">OP-EDs and Columns</a>'
menu3[3]='<a href="http://moran.house.gov/newsroom_articles.shtml">News Articles</a>'
menu3[4]='<a href="http://moran.house.gov/townhall.shtml">Telephone Town Hall Meetings</a>'
menu3[5]='<a href="http://moran.house.gov/newsroom_photos.shtml">Photo Album</a>'
menu3[6]='<a href="http://moran.congressnewsletter.net//common/mailings/">Moran e-News</a>'


var menu4=new Array()
menu4[0]='<a href="http://thomas.loc.gov/cgi-bin/bdquery/R?d111:FLD003:@1(rep+moran,+james+p.):">Bills introduced in the 111th Congress</a>'
menu4[1]='<a href="http://thomas.loc.gov/cgi-bin/bdquery/R?d110:FLD003:@1(rep+moran,+james+p.):">Bills introduced in the 110th Congress</a>'
menu4[2]='<a href="http://moran.house.gov/voting-record.shtml">Voting Record</a>'
menu4[3]='<a href="http://moran.house.gov/thomas.shtml">THOMAS Search</a>'
menu4[4]='<a href="http://moran.house.gov/legislative-process.shtml">Legislative Process</a>'
menu4[5]='<a href="http://moran.house.gov/laws.shtml">How Laws Are Made</a>'
menu4[6]='<a href="http://clerk.house.gov/floorsummary/floor.html">House Schedule</a>'
menu4[7]='<a href="http://thomas.loc.gov/home/r109query.html">Congressional Record Search</a>'
menu4[8]='<a href="http://moran.house.gov/crs_reports.shtml">Congressional Research Service Reports</a>'
menu4[9]='<a href="http://moran.house.gov/appropriations_requests.shtml">FY10-Appropriations Requests</a>'
menu4[10]='<a href="http://moran.house.gov/trans.shtml">Transportation Authorization Requests</a>'

var menu5=new Array()
menu5[0]='<a href="http://moran.house.gov/local_government.shtml">Local Government Information</a>'

var menu6=new Array()
menu6[0]='<a href="http://moran.house.gov/contact.shtml">Office Information</a>'
menu6[1]='<a href="http://moran.house.gov/email_contact.shtml">Email Contact</a>'

var menu7=new Array()
menu7[0]='<a href="https://forms.house.gov/moran/services_tours.shtml">Capitol Tours</a>'
menu7[1]='<a href="https://forms.house.gov/moran/services_tours_wh.shtml">White House Tours</a>'

var menu8=new Array()
menu8[0]='<a href="http://moran.house.gov/issues_animal.shtml">Animal Protection</a>'
menu8[1]='<a href="http://moran.house.gov/issues_information.shtml">Information Technology</a>'
menu8[2]='<a href="http://moran.house.gov/issues_darfur.shtml">Darfur</a>'
menu8[3]='<a href="http://moran.house.gov/issues_iraq.shtml">Iraq</a>'
menu8[4]='<a href="http://moran.house.gov/issues_economy.shtml">Economy</a>'
menu8[5]='<a href="http://moran.house.gov/issues_labor.shtml">Labor</a>'
menu8[6]='<a href="http://moran.house.gov/issues_education.shtml">Education</a>'
menu8[7]='<a href="http://moran.house.gov/issues_smallbiz.shtml">Small Business</a>'
menu8[8]='<a href="http://moran.house.gov/issues_environment.shtml">Environment</a>'
menu8[9]='<a href="http://moran.house.gov/issues_socialsecurity.shtml">Social Security</a>'
menu8[10]='<a href="http://moran.house.gov/issues_fedemployees.shtml">Federal Employees</a>'
menu8[11]='<a href="http://moran.house.gov/issues_transportation.shtml">Transportation</a>'
menu8[12]='<a href="http://moran.house.gov/issues_healthcare.shtml">Healthcare</a>'
menu8[13]='<a href="http://moran.house.gov/issues_veterans.shtml">Veterans</a>'
menu8[14]='<a href="http://moran.house.gov/issues_immigration.shtml">Immigration</a>'

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=0 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}