/***********************************************
* 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
***********************************************/

//MENU1 Festival Basics
var menu1=new Array()
menu1[1]='<a href="/festival-basics/">Festival Basics</a>'
menu1[2]='<a href="/festival-basics/mission">Mission</a>'
menu1[3]='<a href="/festival-basics/board-of-directors">Board of Directors</a>'
menu1[4]='<a href="/festival-basics/frequently-asked-questions/">FAQs</a>'
menu1[5]='<a href="/festival-basics/giving-back">Giving Back</a>'
menu1[6]='<a href="/festival-basics/contact-us">Contact Us</a>'
menu1[7]='<a href="/festival-basics/join-our-mailing-list/">Mailing List</a>'
menu1[8]='<a href="/festival-basics/privacy-policy">Privacy Policy</a>'
menu1[9]='<a href="/festival-basics/internships/">Internships</a>'
menu1[10]='<a href="/traverse-city-film-festival-movies-2011/submissions-policy/">Submissions</a></a>'

//MENU2 Movies
var menu2=new Array()
menu2[1]='<a href="http://traverse.slated.com/2011">Movies</a>'
menu2[2]='<a href="/traverse-city-film-festival-movies-2011/box-office">Box Office</a>'
menu2[3]='<a href="/traverse-city-film-festival-movies-2011/filmmaker-panels/">Panels</a>'
menu2[4]='<a href="/traverse-city-film-festival-movies-2011/filmschool/">Film School</a>'
menu2[5]='<a href="/traverse-city-film-festival-movies-2011/film-lounge/">Film Lounge</a>'
menu2[6]='<a href="http://www.traversecityfilmfest.org/events/">Parties</a>'
menu2[7]='<a href="/traverse-city-film-festival-movies-2011/performances">Performances</a>'
menu2[8]='<a href="http://www.traversecityfilmfest.org/kidsfest/">Kids Fest</a>'
menu2[9]='<a href="/traverse-city-film-festival-movies-2011/awards">Awards</a>'
menu2[10]='<a href="/traverse-city-film-festival-movies-2011/filmgoer-guide">Filmgoer Guide</a>'
menu2[11]='<a href="/attend/getting-around">Festival Map</a>'
menu2[12]='<a href="/traverse-city-film-festival-movies-2011/venues">Venues</a>'

//MENU3 Events
var menu3=new Array()

//MENU4 Sponsors
var menu4=new Array()
menu4[1]='<a href="http://secure.traversecityfilmfest.org/WebSales/Pages/EntryPoint.aspx?guid=acdb630c-ea78-4ae6-91a5-94de0a321a51&amp;">Become a Friend</a>'
menu4[2]='<a href="/sponsors/">Sponsorship</a>'
menu4[3]='<a href="/sponsors/donate/">Donate</a>'
menu4[4]='<a href="/sponsors/our-sponsors/">Our Sponsors</a>'

//MENU5 Volunteer
var menu5=new Array()
menu5[1]='<a href="http://www.traversecityfilmfest.org/volunteer-handbook/">Handbook</a>'
menu5[2]='<a href="http://www.traversecityfilmfest.org/volunteer-sign-up/">Sign Up</a>'
menu5[3]='<a href="http://www.traversecityfilmfest.org/volunteer-log-in/">Log In</a>'

//MENU6 Attend
var menu6=new Array()
menu6[1]='<a href="/attend/tickets">Tickets</a>'
menu6[2]='<a href="/attend/getting-here">Getting Here</a>'
menu6[3]='<a href="/attend/getting-around">Getting Around</a>'
menu6[4]='<a href="/attend/physical-access">Physical Access/H.O.H.</a>'
menu6[5]='<a href="/attend/accommodation-requests/">Accommodation Requests</a>'
menu6[6]='<a href="/attend/places-to-stay">Where to Stay</a>'
menu6[7]='<a href="/attend/childcare/">Childcare</a>'
menu6[8]='<a href="/attend/about-traverse-city/">About Traverse City</a>'
menu6[9]='<a href="/attend/photo-gallery">Area Photo Gallery</a>'


//MENU7 Press
var menu7=new Array()
menu7[1]='<a href="/press/photos/">Photos</a>'
menu7[2]='<a href="/press/media-credentials-request-form/">Credentials Request</a>'
menu7[3]='<a href="/press/download-press-kit">Download Press Kit</a>'
menu7[4]='<a href="/press/media-contact">Contact</a>'
menu7[5]='<a href="/press/">Press Releases</a>'

//MENU8 Shop
var menu8=new Array()
menu8[1]='<a href="http://secure.traversecityfilmfest.org/WebSales/Pages/EntryPoint.aspx?guid=8a556a0c-f262-421e-8416-0f8c6145a36f&amp;">Online Store</a>'
menu8[2]='<a href="http://secure.traversecityfilmfest.org/WebSales/Pages/EntryPoint.aspx?guid=acdb630c-ea78-4ae6-91a5-94de0a321a51&amp;">Become a Friend</a>'

//MENU9 Archives
var menu9=new Array()

//MENU10 The State
/* var menu10=new Array()
menu10[1]='<a href="/the-state/schedule">Schedule</a>'
menu10[2]='<a href="/the-state/met-opera">Met Opera</a>'
menu10[3]='<a href="/the-state/buy-tickets">Buy Tickets</a>'
menu10[4]='<a href="/the-state/membership">Membership</a>'
menu10[5]='<a href="/the-state/gift-certificates">Gift Certificates</a>'
menu10[6]='<a href="http://absolutemichigan.com/blogs/tcfilmfestival/" target="_blank">Blog</a>'
menu10[7]='<a href="http://rtvpix.com/BU-2026-5KWOEM-01" target="_blank">Virtual Tour</a>'
menu10[8]='<a href="/the-state/mailing-list">Mailing List</a>'
menu10[9]='<a href="/the-state/signup">You Can Help</a>'
menu10[10]='<a href="/the-state/state-theatre-show">State Theatre Show</a>'
menu10[11]='<a href="/the-state/latest-state-news">Latest State News</a>'
menu10[12]='<a href="/the-state/sponsors">Sponsors</a>'
menu10[13]='<a href="/the-state/about-the-state">About The State</a>'
menu10[14]='<a href="/the-state/forum">Forum</a>'
menu10[15]='<a href="/the-state/physical-access">Physical Access/H.O.H.</a>'
menu10[16]='<a href="/the-state/parking-garage">Parking Garage</a>'
menu10[17]='<a href="/the-state/photo-gallery">Photo Gallery</a>'
menu10[18]='<a href="/the-state/grand-opening">Grand Opening</a>'
menu10[19]='<a href="/the-state/contact-the-state">Contact The State</a>'
*/
	
var menuwidth='250px' //default menu width
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?


/////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=-500
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





<!--
img1=new Image()
img1.src="/wp-content/themes/spectrum/images/button1.jpg"
img2=new Image()
img2.src="/wp-content/themes/spectrum/images/button1a.jpg"
img3=new Image()
img3.src="/wp-content/themes/spectrum/images/button2.jpg"
img4=new Image()
img4.src="/wp-content/themes/spectrum/images/button2a.jpg"
img5=new Image()
img5.src="/wp-content/themes/spectrum/images/button3.jpg"
img6=new Image()
img6.src="/wp-content/themes/spectrum/images/button3a.jpg"
img7=new Image()
img7.src="/wp-content/themes/spectrum/images/button4.jpg"
img8=new Image()
img8.src="/wp-content/themes/spectrum/images/button4a.jpg"
img9=new Image()
img9.src="/wp-content/themes/spectrum/images/button5.jpg"
img10=new Image()
img10.src="/wp-content/themes/spectrum/images/button5a.jpg"
img11=new Image()
img11.src="/wp-content/themes/spectrum/images/button6.jpg"
img12=new Image()
img12.src="/wp-content/themes/spectrum/images/button6a.jpg"
img13=new Image()
img13.src="/wp-content/themes/spectrum/images/button7.jpg"
img14=new Image()
img14.src="/wp-content/themes/spectrum/images/button7a.jpg"
img15=new Image()
img15.src="/wp-content/themes/spectrum/images/button8.jpg"
img16=new Image()
img16.src="/wp-content/themes/spectrum/images/button8a.jpg"
img17=new Image()
img17.src="/wp-content/themes/spectrum/images/button9.jpg"
img18=new Image()
img18.src="/wp-content/themes/spectrum/images/button9a.jpg"
img19=new Image()
img19.src="/wp-content/themes/spectrum/images/button10.jpg"
img20=new Image()
img20.src="/wp-content/themes/spectrum/images/button10a.jpg"
img21=new Image()
img21.src="/wp-content/themes/spectrum/images/button11.jpg"
img22=new Image()
img22.src="/wp-content/themes/spectrum/images/button11a.jpg"
img23=new Image()
img23.src="/wp-content/themes/spectrum/images/button12.jpg"
img24=new Image()
img24.src="/wp-content/themes/spectrum/images/button12a.jpg"
img25=new Image()
img25.src="/wp-content/themes/spectrum/images/button13.jpg"
img26=new Image()
img26.src="/wp-content/themes/spectrum/images/button13a.jpg"
//-->
