
/***********************************************
* 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="/">Startsidan</a>'
menu1[1]='<a href="http://pottersajten.com/blogg.php">Blogg</a>'
menu1[3]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1151261511&archive=&start_from=&ucat=26&">Nyhetsarkiv</a>'
menu1[4]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1151261590&archive=&start_from=&ucat=26&">Nyhetsbrev</a>'
menu1[5]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1151262099&archive=&start_from=&ucat=26&">T&auml;vling</a>'
menu1[6]='<a href="http://polyshop.se/pswebbshop/">Webshopen</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1150033828&archive=&start_from=&ucat=5&">Bok 1</a>'
menu2[1]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1150036556&archive=&start_from=&ucat=6&">Bok 2</a>'
menu2[2]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151436523&archive=&start_from=&ucat=7&">Bok 3</a>'
menu2[3]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151436892&archive=&start_from=&ucat=8&">Bok 4</a>'
menu2[4]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151437228&archive=&start_from=&ucat=9&">Bok 5</a>'
menu2[5]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151437530&archive=&start_from=&ucat=10&">Bok 6</a>'
menu2[6]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151150992&archive=&start_from=&ucat=11&">Bok 7 & rykten</a>'
menu2[7]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151156811&archive=&start_from=&ucat=5&">Bokomslag</a>'
menu2[8]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151153738&archive=&start_from=&ucat=5&">Citatsamling</a>'
menu2[9]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1152876137&archive=&start_from=&ucat=5&">F&ouml;delsedagar</a>'
menu2[10]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151153914&archive=&start_from=&ucat=5&">JK Rowling</a>'
menu2[11]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151154171&archive=&start_from=&ucat=5&">Kapitel</a>'
menu2[12]='<a href="http://pottersajten.com/bok.php?subaction=showfull&id=1151153301&archive=&start_from=&ucat=5&">Namnlista</a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1151096177&archive=&start_from=&ucat=14&">Film I</a>'
menu3[1]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1151096734&archive=&start_from=&ucat=15&">Film II</a>'
menu3[2]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1151097309&archive=&start_from=&ucat=16&">Film III</a>'
menu3[3]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1151148644&archive=&start_from=&ucat=17&">Film IV</a>'
menu3[4]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1151149186&archive=&start_from=&ucat=18&">Film V</a>'
menu3[5]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1190973745&archive=&start_from=&ucat=19&">Film VI</a>'
menu3[6]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1152283700&archive=&start_from=&ucat=23&">Adresser</a>'
menu3[7]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1152875244&archive=&start_from=&ucat=23&">F&ouml;delsedagar</a>'
menu3[8]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1151147872&archive=&start_from=&ucat=23&">Sk&aring;despelare</a>'
menu3[9]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1183762796&archive=&start_from=&ucat=14&">Trailerarkiv</a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="http://pottersajten.com/guide.php?subaction=showfull&id=1151316879&archive=&start_from=&ucat=2&">Karakt&auml;rer</a>'
menu4[1]='<a href="http://pottersajten.com/guide.php?subaction=showfull&id=1152724540&archive=&start_from=&ucat=13&">Magiska f&ouml;rem&aring;l</a>'
menu4[2]='<a href="http://pottersajten.com/guide.php?subaction=showfull&id=1151236529&archive=&start_from=&ucat=4&">Magiska platser</a>'
menu4[3]='<a href="http://pottersajten.com/guide.php?subaction=showfull&id=1151238139&archive=&start_from=&ucat=3&">Magiska vidunder</a>'
menu4[4]='<a href="http://pottersajten.com/guide.php?subaction=showfull&id=1151238447&archive=&start_from=&ucat=27&">Viktiga h&auml;ndelser</a>'
menu4[5]='<a href="http://pottersajten.com/guide.php?subaction=showfull&id=1151238861&archive=&start_from=&ucat=12&">Organisationer</a>'
menu4[6]='<a href="http://pottersajten.com/guide.php?subaction=showfull&id=1151239640&archive=&start_from=&ucat=13&">&Ouml;vrig fakta</a>'

//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="http://pottersajten.com/media.php?subaction=showfull&id=1151254049&archive=&start_from=&ucat=25&">Fanfilmer</a>'
menu5[1]='<a href="http://pottersajten.com/media.php?subaction=showfull&id=1151254169&archive=&start_from=&ucat=25&">Fan Fiction</a>'
menu5[2]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1151156680&archive=&start_from=&ucat=24&">Harry And Potters</a>'
menu5[3]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1151259820&archive=&start_from=&ucat=24&">Intervjuer</a>'
menu5[4]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1151254495&archive=&start_from=&ucat=24&">Mugglarv&auml;rlden</a>'
menu5[5]='<a href="http://pottersajten.com/fanfiction.php">Starkare &auml;n D&ouml;den</a>'
menu5[6]='<a href="http://pottersajten.com/media.php?subaction=showfull&id=1151260681&archive=&start_from=&ucat=25&">The Real Harry Potter</a>'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="http://pottersajten.com/community/viewforum.php?f=2&sid=8f7ad1d85bff936c4fe745c55a456c90">Viktig information</a>'
menu6[1]='<a href="http://pottersajten.com/community/viewforum.php?f=3&sid=67e6d6cebf406dac26e6ab218169fce4">Fr&aring;gor & Svar</a>'
menu6[2]='<a href="http://pottersajten.com/community/viewforum.php?f=6&sid=67e6d6cebf406dac26e6ab218169fce4">HP-b&ouml;ckerna</a>'
menu6[3]='<a href="http://pottersajten.com/community/viewforum.php?f=7&sid=67e6d6cebf406dac26e6ab218169fce4">HP-filmerna</a>'
menu6[4]='<a href="http://pottersajten.com/community/viewforum.php?f=8&sid=67e6d6cebf406dac26e6ab218169fce4">Allm&auml;nt om HP</a>'
menu6[5]='<a href="http://pottersajten.com/community/viewforum.php?f=9&sid=67e6d6cebf406dac26e6ab218169fce4">Fan Fiction</a>'
menu6[6]='<a href="http://pottersajten.com/community/viewforum.php?f=10&sid=67e6d6cebf406dac26e6ab218169fce4">Fan Art</a>'
menu6[7]='<a href="http://pottersajten.com/community/viewforum.php?f=12&sid=67e6d6cebf406dac26e6ab218169fce4">&Ouml;ppet forum</a>'


//Contents for menu 7, and so on
var menu7=new Array()
menu7[0]='<a href="http://pottersajten.com/media.php?subaction=showfull&id=1151252371&archive=&start_from=&ucat=25&">Avatar</a>'
menu7[1]='<a href="http://pottersajten.com/media.php?subaction=showfull&id=1151253704&archive=&start_from=&ucat=25&">Bakgrundsbilder</a>'
menu7[2]='<a href="http://pottersajten.com/media.php?subaction=showfull&id=1151253906&archive=&start_from=&ucat=25&">Bokm&auml;rken</a>'
menu7[3]='<a href="http://pottersajten.com/galleri/">Galleri</a>'
menu7[4]='<a href="http://pottersajten.com/media.php?subaction=showfull&id=1151254352&archive=&start_from=&ucat=25&">Ringsignaler</a>'
menu7[5]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1151157328&archive=&start_from=&ucat=24&">Spel</a>'
menu7[6]='<a href="http://pottersajten.com/film.php?subaction=showfull&id=1183762796&archive=&start_from=&ucat=14&">Trailerarkiv</a>'

//Contents for menu 9, and so on
var menu9=new Array()
menu9[0]='<a href="http://pottersajten.com/artiklar.php?subaction=showfull&id=1151068431&archive=&start_from=&ucat=22&">Spel 1 - PS</a>'
menu9[1]='<a href="http://pottersajten.com/artiklar.php?subaction=showfull&id=1215943793&archive=&start_from=&ucat=22&">Spel 2 - COS</a>'
menu9[2]='<a href="http://pottersajten.com/artiklar.php?subaction=showfull&id=1151068767&archive=&start_from=&ucat=22&">Spel 3 - POA</a>'
menu9[3]='<a href="http://pottersajten.com/artiklar.php?subaction=showfull&id=1215943812&archive=&start_from=&ucat=22&">Spel 4 - GOF</a>'
menu9[4]='<a href="http://pottersajten.com/artiklar.php?subaction=showfull&id=1215943832&archive=&start_from=&ucat=22&">Spel 5 - OOTP</a>'
menu9[5]='<a href="http://pottersajten.com/artiklar.php?subaction=showfull&id=1151068996&archive=&start_from=&ucat=22&">Quidditch-spelet</a>'

//Contents for menu 10, and so on
var menu10=new Array()
menu10[0]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1167484332&archive=&start_from=&ucat=26&">Annonsering</a>'
menu10[1]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1151261438&archive=&start_from=&ucat=26&">Anv&auml;ndarvillkor</a>'
menu10[2]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1151261005&archive=&start_from=&ucat=26&">Biografi</a>'
menu10[3]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1310657450&archive=&start_from=&ucat=26&">Kontakta oss</a>'
menu10[4]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1151261738&archive=&start_from=&ucat=26&">Lediga tj&auml;nster</a>'
menu10[5]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1153260544&archive=&start_from=&ucat=26&">Om cookies</a>'
menu10[6]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1151261005&archive=&start_from=&ucat=26&">Om oss</a>'
menu10[7]='<a href="http://pottersajten.com/ps.php?subaction=showfull&id=1151261236&archive=&start_from=&ucat=26&">Redaktionen</a>'

//Contents for menu 11, and so on
var menu11=new Array()
menu11[0]='<a href="http://pottersajten.com/chat/">Chatten</a>'
menu11[1]='<a href="http://pottersajten.com/ask/">Fr&aring;ga Pottersajten</a>'
menu11[2]='<a href="http://pottersajten.com/community/viewforum.php?f=13">HP-Supporten</a>'
menu11[3]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1208030411&archive=&start_from=&ucat=24&">K&ouml;p HP-b&ouml;ckerna</a>'
menu11[4]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1208092250&archive=&start_from=&ucat=24&">K&ouml;p HP-filmerna</a>'
menu11[5]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1208113147&archive=&start_from=&ucat=24&">K&ouml;p HP-spelen</a>'
menu11[6]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1151259554&archive=&start_from=&ucat=24&">L&auml;nkar</a>'
menu11[7]='<a href="http://pottersajten.com/ovrigt.php?subaction=showfull&id=1155053558&archive=&start_from=&ucat=24&">Visste du att</a>'

var menuwidth='165px' //default menu width
var menubgcolor='transparent'  //menu bgcolor
var disappeardelay=500  //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

