//JAVASCRIPT 
//NAVIGATION MENU CONTROL cusc.js
//COPYRIGHT 2009, ALL RIGHTS RESERVED
//COPYRIGHT ASSIGNED TO CITIZENS for the UNITED STATES CONSTITUTION

function resetbuts()
{
document['fpAnimswapImgFP1'].src ="/images/neB.png";
document['fpAnimswapImgFP2'].src ="/images/faB.png";
document['fpAnimswapImgFP3'].src ="/images/ccB.png";
document['fpAnimswapImgFP4'].src ="/images/reB.png";
document['fpAnimswapImgFP5'].src ="/images/alB.png";
document['fpAnimswapImgFP6'].src ="/images/peB.png";
document['fpAnimswapImgFP7'].src ="/images/edB.png";
document['fpAnimswapImgFP8'].src ="/images/auB.png";
}

//INTERNAL/EXTERNAL FORMATS:
//muN[0]='<a href="/F+I+L+E+N+A+M+E" target="_self">=d=i=s=p=l=a=y=n=a=m=e</a>'
//muN[0]='<a href="http++url+url+url+url" target="_blank">=d=i=s=p=l=a=y=n=a=m=e</a>'

//Contents for MENU-1 ++NEWS++
var mu1=new Array()
var mu1W=430
mu1[0]='<a href="/news/20090112-Berg-v-Obama.htm">[1/12]U.S. SUPREME COURT SENDS BERG v. OBAMA TO THE U.S. THIRD CIRCUIT COURT; ACCEPTS AMICUS CURIÆ BRIEF</a>'
mu1[1]='<a href="/news/20090108-Pravda.htm" target="_self">[1/8]SHOCKING...RUSSIA&rsquo;S MAINSTREAM MEDIA REPORTS ON U.S. CONSTITUTIONAL CRISIS; U.S. MEDIA OBLIVIOUS</a>'
mu1[2]='<a href="/news/20090107-Lightfoot-v-Bowen.htm" target="_self">[1/7]LIGHTFOOT v. BOWEN WILL BE REVIEWED BY THE ENTIRE SUPREME COURT OF THE UNITED STATES</a>'
mu1[3]='<a href="/news/20081223-Murray-v-Paulson.htm" target="_self">[12/23]U.S. TREASURY DEPARTMENT SUED FOR USE OF TAXPAYER FUNDING FOR AIG ISLAMIC INSURANCE PROGRAM</a>'
mu1[4]='<a href="/news/20081223-Berg-v-Obama.htm" target="_self">[12/23]MOTION TO STOP U.S. PRESIDENTIAL ELECTION TO BE REVIEWED BY ENTIRE U.S. SUPREME COURT</a>'
mu1[5]='<a href="/news/20081218-Berg-v-Obama.htm" target="_self">[12/18]BERG v. OBAMA SET FOR FULL REVIEW IN THE SUPREME COURT OF THE UNITED STATES</a>'
mu1[6]='<a href="/news/20081215-Wrotnowski-v-Bysiewicz.htm" target="_self">[12/15]U.S. SUPREME COURT DECIDES WROTNOWSKI v. BYSIEWICZ WILL NOT MOVE TO OPEN COURT</a>'
mu1[7]='<a href="/news/20081215-Lightfoot-v-Bowen.htm" target="_self">[12/15]LIGHTFOOT v. BOWEN FILED AND DOCKETED IN THE UNITED STATES SUPREME COURT</a>'
mu1[8]='<a href="/news/20081209-Berg-v-Obama.htm" target="_self">[12/9]UNITED STATES SUPREME COURT ASKED ON DECEMBER 8, 2008 FOR STAY OF ELECTORAL VOTE</a>'
mu1[9]='<a href="/news/20081208-Donofrio-v-Wells.htm" target="_self">[12/8]U.S. SUPREME COURT ISSUES ORDER TO DENY A STAY OF THE NEW JERSEY ELECTION</a>'
mu1[10]='<a href="/news/" target="_self">View these articles and more on our Constitutional News Page</a>'


//Contents for MENU-2 ++FAQ++
var mu2=new Array()
var mu2W=300
mu2[0]='<a href="/pages/q-a.htm" target="_self">Questions and Answers About Obama&rsquo;s Citizenship</a>'
mu2[1]='<a href="http://sites.google.com/site/obamabirth/" target="_blank">FAQ on Obama&rsquo;s Birth</a>'

//Contents for MENU-3 ++CASES++
var mu3=new Array()
var mu3W=175
mu3[0]='<a href="/cases/Berg-v-Obama/" target="_self">Berg v. Obama</a>'
mu3[1]='<a href="/cases/Donofrio-v-Wells/" target="_self">Donofrio v. Wells</a>'
mu3[2]='<a href="/cases/Wrotnowski-v-Bysiewicz/" target="_self">Wrotnowski v. Bysiewicz</a>'
mu3[3]='<a href="/cases/Lightfoot-v-Bowen/" target="_self">Lightfoot v. Bowen</a>'
mu3[4]='<a href="/cases/Keyes-v-Obama/" target="_self">Keyes v. Obama</a>'
mu3[5]='<a href="/cases/" target="_self">Court Case Main Menu</a>'

//Contents for MENU-4 ++RESOURCES++
var mu4=new Array()
var mu4W=400
mu4[0]='<a href="/pages/q-a.htm" target="_self">Q and A</a>'
mu4[1]='<a href="http://sites.google.com/site/obamabirth/" target="_blank">FAQ</a>'
mu4[2]='<a href="http://saveourrights.wikia.com/wiki/Save_Our_Rights" target="_blank">WIKI</a>'
mu4[3]='<a href="http://www.freerepublic.com/focus/f-bloggers/2136816/posts" target="_blank">Birth Certification Analysis by Dr. Ron Polarik</a>'
mu4[4]='<a href="http://www.newswithviews.com/Vieira/edwin84.htm" target="_blank">KEY ARTICLE by Dr. Edwin Vieira, Ph.D., J.D.</a>'
mu4[5]='<a href="http://www.thebulletin.us/site/news.cfm?newsid=20210273" target="_blank">Philadelphia Bulletin Interviews Dr. Edwin Vieira</a>'
mu4[6]='<a href="/pages/DR-VIEIRA.htm" target="_self">Dr. Edwin Vieira, Ph.D., J.D. - CUSC Info Page</a>'
mu4[7]='<a href="/pages/whatamericasays.htm" target="_self">What America is Saying</a>'
mu4[8]='<a href="http://federalistblog.us/" target="_blank">The Federalist Blog</a>'
mu4[9]='<a href="http://federalistblog.us/2008/11/natural-born_citizen_defined.html" target="_blank">Native Born vs. Natural Born</a>'
mu4[10]='<a href="http://www.therightsideoflife.com/?page_id=1518">Summary of Eligibility Lawsuits</a>'
mu4[11]='<a href="http://www.obamacrimes.com/" target="_blank">Berg vs. Obama Site</a>'
mu4[12]='<a href="http://www.obamacrimes.us" target="_blank">Berg Comment Site / Blog</a>'
mu4[13]='<a href="http://www.riseupforamerica.com/">NEW!: Rise Up for America</a>'
mu4[14]='<a href="/pages/qualificationflowchart.htm" target="_self">NEW!: Presidential Qualification Flowchart</a>'


//Contents for MENU-5 ++ACTION LINKS++
var mu5=new Array()
var mu5W=250
mu5[0]='<a href="http://wethepeopleusa.ning.com/" target="_blank">We The PeopleUSA</a>'
mu5[1]='<a href="http://americamustknow.com/whatcanido.aspx" target="_blank">What You Can Do</a>'
mu5[2]='<a href="http://obamaforgery.com/" target="_blank">Obama Forgery.com: info & action</a>'
mu5[3]='<a href="http://www.eboards4all.com/575231/index.html">God Save America</a>'
mu5[4]='<a href="http://www.obamanotqualified.com/action.htm" target="_blank">Ten Actions YOU Can Take Now</a>'
mu5[5]='<a href="http://restoretheconstitutionalrepublic.org/" target="_blank">Online Action Site</a>'
mu5[6]='<a href="http://peoplespassions.org/" target="_blank">STAND UP OR STEP DOWN</a>'
mu5[7]='<a href="http://www.wethepeoplefoundation.org/UPDATE/misc2008/Obama-USA-TODAY-ad.htm" target="_blank">HELP GET THIS IN USA TODAY</a>'
mu5[8]='<a href="http://freemenow.wordpress.com/2008/12/02/supreme-court-sends-citizenship-appeal-to-an-anthrax-lab/" target="_blank">FREE US NOW</a>'
mu5[9]='<a href="http://69.36.77.100/berg/bergvobama.htm" target="_blank">OBAMA BIRTH CERTIFICATE ISSUE</a>'
mu5[10]='<a href="http://countryfirst.bravehost.com/" target="_blank">COUNTRY FIRST</a>'
mu5[11]='<a href="http://www.operationexposeobama.com/" target="_blank">Take Action</a>'
mu5[12]='<a href="http://texasdarlin.wordpress.com/" target="_blank">UPDATES</a>'
mu5[13]='<a href="http://hillbuzz.wordpress.com/2008/10/28/republicans-we-clinton-democrats-stand-with-you-so-join-us-any-way-you-can-and-help-us-fight-for-america/" target="_blank">BIPARTISAN ACTION</a>'
mu5[14]='<a href="http://obamaimpeachment.org/" target="_blank">View the &ldquo;Illinois Site&rdquo;</a>'
mu5[15]='<a href="http://museumofinnocence.blogspot.com/" target="_blank">Museum of Innocence</a>'
mu5[16]='<a href="http://jbjd.wordpress.com/" target="_blank">TEAM JBJD - READ THIS IF YOU ARE IN THE ARMED FORCES/RESERVES</a>'





//Contents for MENU-6 ++PETITIONS++
var mu6=new Array()
var mu6W=200
mu6[0]='<a href="http://www.wnd.com/index.php?fa=PAGE.view&amp;pageId=81550" target="_blank">WorldNet Daily Petition - MORE THAN 200,000 SIGNATURES</a>'
mu6[1]='<a href="http://www.rallycongress.com/constitutional-qualification/1244/view_all/1/" target="_blank">Internet Petition / Comment Site - MORE THAN 90,000 SIGNATURES</a>'
mu6[2]='<a href="http://www.ipetitions.com/petition/valididentification">New Petition</a>'
mu6[3]='<a href="http://news.aol.com/political-machine/2008/12/05/hot-seat-obamas-birth-certificate/">AOL POLL - PLEASE VOTE</a>'


//Contents for MENU-7 ++EDITORIAL++
var mu7=new Array()
var mu7W=200
mu7[0]='<a href="/editorial/" target="_self">Editorial Index</a>'
mu7[1]='<a href="/letters/" target="_self">Letters to CUSC</a>'


//Contents for MENU-8 ++ABOUT US++
var mu8=new Array()
var mu8W=200
mu8[0]='<a href="/about_us/whatsnew.htm" target="_self">What’s New Today on CUSC.org</a>'
mu8[1]='<a href="/" target="_self">THE CUSC.org Home Page - www.CUSC.org</a>'
mu8[2]='<a href="/about_us/" target="_self">About Us Page:</a>'
mu8[3]='<a href="/about_us/truth.htm" target="_self">THE TRUTH</a>'
mu8[4]='<a href="/about_us/whywereinvolved.htm" target="_self">WHY ARE WE INVOLVED IN THE PRESIDENTIAL ELECTION?</a>'
mu8[5]='<a href="/about_us/logic.htm" target="_self">FOLLOW THE LOGIC</a>'
mu8[6]='<a href="/about_us/fooled.htm" target="_self">FOOLED AGAIN?</a>'

		
var menuwidth='200px' //default menu width (WAS 165px)
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

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"
resetbuts()
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}


