function switch_Button(highlight, id)
{
	if(highlight == 'yes')
	{
		if(id == '1')
		{
			document.b1.src = '/images/nav/h_01.png'
		}
		if(id == '2')
		{
			document.b2.src = '/images/nav/h_02.png'
		}
		if(id == '3')
		{
			document.b3.src = '/images/nav/h_03.png'
		}
		if(id == '4')
		{
			document.b4.src = '/images/nav/h_04.png'
		}
		if(id == '5')
		{
			document.b5.src = '/images/nav/h_05.png'
		}
		if(id == '6')
		{
			document.b6.src = '/images/nav/h_06.png'
		}
		if(id == '7')
		{
			document.b7.src = '/images/nav/h_07.png'
		}
		if(id == '8')
		{
			document.b8.src = '/images/nav/h_08.png'
		}
		if(id == '9')
		{
			document.b9.src = '/images/nav/h_09.png'
		}
		if(id == '10')
		{
			document.b10.src = '/images/nav/h_10.png'
		}
	}
	
	if(highlight == 'no')
	{
		if(id == '1')
		{
			document.b1.src = '/images/nav/01.png'
		}
		if(id == '2')
		{
			document.b2.src = '/images/nav/02.png'
		}
		if(id == '3')
		{
			document.b3.src = '/images/nav/03.png'
		}
		if(id == '4')
		{
			document.b4.src = '/images/nav/04.png'
		}
		if(id == '5')
		{
			document.b5.src = '/images/nav/05.png'
		}
		if(id == '6')
		{
			document.b6.src = '/images/nav/06.png'
		}
		if(id == '7')
		{
			document.b7.src = '/images/nav/07.png'
		}
		if(id == '8')
		{
			document.b8.src = '/images/nav/08.png'
		}
		if(id == '9')
		{
			document.b9.src = '/images/nav/09.png'
		}
		if(id == '10')
		{
			document.b10.src = '/images/nav/10.png'
		}
	}
}

/***********************************************
* 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="/nyheder/"><img src="/images/nav_icons/folder.png" height="14" width="14" alt="" /> Oversigt</a>'
menu1[1]='<a href="/anmeldelser/"><img src="/images/nav_icons/award_star_gold_1.png" height="14" width="14" alt="" /> Anmeldelser</a>'
menu1[2]='<a href="/guides/"><img src="/images/nav_icons/help.png" height="14" width="14" alt="" /> Guides</a>'
menu1[3]='<a href="/spotlight/"><img src="/images/nav_icons/user_comment.png" height="14" width="14" alt="" /> Spotlight</a>'
menu1[4]='<a href="/rss/"><img src="/images/nav_icons/application_go.png" height="14" width="14" alt="" /> RSS</a>'

var menu2 = new Array();
menu2[0]='<a href="/soeg/nyheder/"><img src="/images/nav_icons/folder_explore.png" height="14" width="14" alt="" /> Søg i arkivet</a>'
menu2[1]='<a href="/soeg/guild/"><img src="/images/nav_icons/folder_explore.png" height="14" width="14" alt="" /> Find Guild</a>'
menu2[2]='<a href="/soeg/profil/"><img src="/images/nav_icons/folder_explore.png" height="14" width="14" alt="" /> Find en Gamer</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="http://stats.gaming.dk/" target="_blank"><img src="/images/nav_icons/server_chart.png" height="14" width="14" alt="" /> Stats</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://gaming.dk"><img src="/images/nav_icons/gaming.png" height="14" width="14" alt="" /> Gaming.dk</a>'
menu4[1]='<a href="http://codgaming.dk"><img src="/images/nav_icons/steam.png" height="14" width="14" alt="" /> Call of Duty</a>'
menu4[2]='<a href="http://hon.gaming.dk"><img src="/images/nav_icons/coh.gif" height="14" width="14" alt="" /> Heroes of Newerth</a>'
//menu4[3]='<a href="/soeg/klan/"><img src="/images/nav_icons/help.png" height="14" width="14" alt="" /> GDK Voiceservere</a>'
menu4[4]='<a href="/downloads/"><img src="/images/nav_icons/folder.png" height="14" width="14" alt="" /> Downloads</a>'

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="/forum/"><img src="/images/nav_icons/folder.png" height="14" width="14" alt="" /> Oversigt</a>'
menu5[1]='<a href="/forum/1/"><img src="/images/nav_icons/wow.gif" height="14" width="14" alt="" /> WoW.Gaming.dk</a>'
menu5[2]='<a href="/forum/2/"><img src="/images/nav_icons/wow.gif" height="14" width="14" alt="" /> World of Warcraft</a>'
menu5[3]='<a href="/forum/3/"><img src="/images/nav_icons/wow.gif" height="14" width="14" alt="" /> Guilds</a>'
menu5[4]='<a href="/forum/4/"><img src="/images/nav_icons/wow.gif" height="14" width="14" alt="" /> Classes</a>'
menu5[5]='<a href="/forum/5/"><img src="/images/nav_icons/user_comment.png" height="14" width="14" alt="" /> Off topic</a>'
menu5[6]='<a href="/soeg/forum/"><img src="/images/nav_icons/folder_explore.png" height="14" width="14" alt="" /> S&oslash;g og find</a>'

var menu6=new Array()
menu6[0]='<a href="http://www.gaming.dk/games/lol/"><img src="/images/nav_icons/folder.png" height="14" width="14" alt="" /> League of Legends</a>'

//Contents for menu 7
var menu7=new Array()

//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="/behind/"><img src="/images/nav_icons/user_suit.png" height="14" width="14" alt="" /> Teamet bag siden</a>'
menu8[1]='<a href="/regler/"><img src="/images/nav_icons/computer.png" height="14" width="14" alt="" /> Bruger betingelser</a>'
menu8[2]='<a href="http://gaming.dk/advertise"><img src="/images/nav_icons/money.png" height="14" width="14" alt="" /> Annoncering hos os</a>'
menu8[3]='<a href="http://gaming.dk/jobs"><img src="/images/nav_icons/thumb_up.png" height="14" width="14" alt="" /> Job hos Gaming.dk</a>'
menu8[4]='<a href="http://www.facebook.com/pages/GAMINGdk/213517730316"><img src="/images/nav_icons/user_suit.png" height="14" width="14" alt="" /> GDK på Facebook</a>'
menu8[5]='<a href="http://twitter.com/gamingdk"><img src="/images/nav_icons/user_suit.png" height="14" width="14" alt="" /> GDK på Twitter</a>'

//Contents for menu 10
var menu10=new Array()
menu10[0]='<a href="http://www.Gaming.dk"><img src="/images/nav_icons/gaming.png" height="14" width="14" alt="" /> Gaming.dk</a>'
menu10[1]='<a href="http://www.CoDGaming.dk"><img src="/images/nav_icons/gaming.png" height="14" width="14" alt="" /> CoDGaming.dk</a>'
		
var menuwidth='140px' //default menu width
var menubgcolor='#FFFFFF'  //menu bgcolor
var disappeardelay=300  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="no" //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