/***********************************************
* AnyLink Drop Down 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="agents.htm">PUBLISHERS & AGENTS</a>'
menu1[1]='<a href="reporters.htm">REPORTERS</a>'
menu1[2]='<a href="comments.htm">COMMENTS</a>'


//Contents for menu 2
/*var menu2=new Array()
menu2[0]='<a href="read_first.htm">READ THIS FIRST</a>'
menu2[1]='<a href="preface1.htm">Preface 1</a>'
menu2[2]='<a href="preface2.htm">Preface 2</a>'
menu2[3]='<a href="wimoweh.htm">WIMOWEH</a>'
menu2[4]='<a href="boxr_bus.htm">BOXR BUS</a>'
menu2[5]='<a href="donor_donee.htm">DONOR/DONEE</a>'
menu2[6]='<a href="raflpriz.htm">RAFLPRIZ</a>'
menu2[7]='<a href="whistlr.htm">WHISTLR</a>'
menu2[8]='<a href="cover.htm">COVER</a>'*/

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="tony.html">TONY 4DA</a>'
menu2[1]='<a href="vanitize.htm">VANITIZE</a>'
menu2[2]='<a href="constitution.htm">OUR VANITIZED CONSTITUTION</a>'
menu2[3]='<a href="fdr.html">FDR WAS VANITIZED!</a>'
menu2[4]='<a href="pre10d_vnty_pl8s.htm">PRE10D VNTY PL8S</a>'
menu2[5]='<a href="preface2a.htm">BANNED BY THE DMV?</a>'
menu2[6]='<a href="vanitized_newz_gamz4.htm">VANITIZED NEWZ & GAMZ</a>'
menu2[7]='<a href="vanitized_cards.htm">VANITIZED CARDS</a>'
menu2[8]='<a href="postcard.htm">FL POSTCARD</a>'
menu2[9]='<a href="nypostcard.htm">NY POSTCARD</a>'
menu2[10]='<a href="political-plates.html">POLITICAL PLATES</a>'
menu2[11]='<a href="newyear.html">JEWISH NU YR</a>'


//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="aboutus.htm">ABOUT US</a>'
menu3[1]='<a href="links.htm">LINKS</a>'
menu3[2]='<a href="http://vanitizetheusaandcanadaproject.blogspot.com/">BLOG</a>'
//menu3[2]='<a href="http://lcns2rom.com/wordpress/" target="blank">BLOG</a>'


//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="mediacoverage.htm">MEDIA COVERAGE</a>'
menu4[1]='<a href="vanityplatesurvey.htm">VANITY PLATES SURVEY</a>'

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="vanitize.htm">VANITIZE</a>'
menu5[1]='<a href="vanitize2.html">CINDY MCCAIN IS VANITIZED!</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="petition.htm">READ-IN  PETITION</a>'
menu6[1]='<a href="readinfaqs.htm">READ-IN  FAQs</a>'
menu6[2]='<a href="readinvntypl8s.htm">READ-IN  VNTY PL8S</a>'


var menu7=new Array()
menu7[0]='<a href="faq.htm">FAQ</a>'
menu7[1]='<a href="press_room.htm">PRESS ROOM</a>'

var menu8=new Array()
menu8[0]='<a href="faqanda.pdf">FAQ: Reagan & CA VANITY PL8S</a>'
menu8[1]='<a href="ronaldreagan2.pdf">PRESS RELEASE</a>'
menu8[2]='<a href="http://www.dmv.ca.gov/pubs/newsrel/newsrel10/2010_24.htm">CA DMV PRESS RELEASE</a>'
menu8[3]='<a href="celebr8.pdf">CELEBR8! CA PL8 IMAGE</a>'
menu8[4]='<a href="Lonce Letter to Reagan Library.pdf">Lonce Letter to Reagan Library</a>'
menu8[5]='<a href="arnold.pdf">Lonce Letter to Gov. Schwarzenegger</a>'
menu8[6]='<a href="historical.pdf">REAGAN/VANITY PL8 HISTORICAL DOCUMENTS</a>'
menu8[7]='<a href="http://www.gopetition.com/petition/38366.html">CA LICENSE PL8S PETITION 2 GOV. SCHWARZENEGGER</a>'
menu8[8]='<a href="california.htm">CALIFORNIANS: BUY THE "ARTS" SPECIAL PL8!</a>'


var menubutton=new Array()
menubutton[0]='<a href="takepoll.htm">VOTE: OLD NY PL8, OR NEW NY PL8?</a>'
menubutton[1]='<a href="http://www.timesunion.com/AspStories/story.asp?storyID=870175&category=OPINION" target="_blank">Stefan Lonce new PL8 op-ed</a>'
menubutton[2]='<a href="Lonce Letter to Gov Paterson 11-17-09.pdf" target="_blank">Stefan Lonce letter to Gov. Paterson</a>'
menubutton[3]='<a href="http://gopetition.com/online/32048.html" target="_blank">SIGN THE PETITION</a>'
menubutton[4]='<a href="NYDMV - Empire Gold Plate Image 11-10-09.pdf" target="_blank">New NY PL8 image</a>'

var menubutton2=new Array()
menubutton2[0]='<a href="docs/BACKGROUND INFO  SC.pdf" target="_blank">Background info</a>'
menubutton2[1]='<a href="june18/final_text.pdf" target="_blank">Text of S 1392</a>'
menubutton2[2]='<a href="http://www.lcns2rom.com/LCNS2ROM%20-%20Media%20Coverage%20-%20The%20State%205-31-08.pdf">Lonce op-ed 5/31/08 on "I Believe" PL8</a>'
menubutton2[3]='<a href="docs/pressrelease_version2.pdf">PRESS RELEASE</a>'
menubutton2[4]='<a href="http://dictionary.reference.com/browse/coon">"COON" DEFINITION</a>'
menubutton2[5]='<a href="docs/SummersvAdams - order granting   Plaintiffs attorneys fees 5-26-10.pdf"><i>Summers v. Adams</i></a>'
menubutton2[6]='<a href="june18/COON HUNTERS PL8S.pdf">Coon Hunters PL8 Mockups</a>'
menubutton2[7]='<a href="june18/Lonce Letter to Sanford 6-17-10 with articles 1 .pdf">Lonce letter to Gov. Sanford</a>'
menubutton2[8]='<a href="sustainsandfordveto.pdf">Lonce Letter: Sustain Sanford Veto of S.1392</a>'

var menuwidth='120px' //default menu width
var menubgcolor='#215CA5'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////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:'+menuwidth+';background-color:'+menubgcolor+'" 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="-500px"
if (menuwidth!=""){
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 < 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 up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"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)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
