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

// HTH | Extra Vars

var hth_td_bgA = 'onmouseover="this.style.backgroundColor=\'#FBEFEF\';" onmouseout="this.style.backgroundColor=\'#EDEDED\';"'
var hth_td_bgB = 'onmouseover="this.style.backgroundColor=\'#E0F8E0\';" onmouseout="this.style.backgroundColor=\'#EDEDED\';"'
var hth_td_bgC = 'onmouseover="this.style.backgroundColor=\'#F7F8E0\';" onmouseout="this.style.backgroundColor=\'#EDEDED\';"'
var hth_td_bgD = 'onmouseover="this.style.backgroundColor=\'#ECE0F8\';" onmouseout="this.style.backgroundColor=\'#EDEDED\';"'
var hth_td_bgE = 'onmouseover="this.style.backgroundColor=\'#E0ECF8\';" onmouseout="this.style.backgroundColor=\'#EDEDED\';"'
var hth_cimg   = '<img src="images/style/hth/v3/other/hth_02.gif" alt="" border="0" /><br /><br />'
var hth_ctext  = '<br /><b><u>HTH Chat-Abend</u></b><br /><br /><b><i>Jeden Samstag um 20:00 Uhr findet ein Chat-Abend auf HTH-C.com statt.</b></i>'
var hth_img    = '&nbsp;&nbsp;<img align="absmiddle" src="images/style/hth/v3/profil/InfoBullet.png" border="0" alt="" />&nbsp;'
var hth_raq    = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&raquo;&nbsp;&nbsp;'
var hth_ts     = '<a class="hhn" href="javascript:;" onclick="window.open(\'teamspeak/TS_Viewer.php\',\'\',\'width=220, height=350, left=300, top=260, location=no, toolbar=no, menubar=no, scrollbars=yes, resizable=no\');return false">FNW &amp; KNW Teamspeak</a>'



// HTH | Chat - Menue Nr. 0

var hthnav00=new Array()

hthnav00[0]  = '<table class="headnav" cellspacing="1" cellpadding="3" style="width: 100%;">'
hthnav00[1]  = '<tr><td class="headnav" align="center">'+hth_ctext+'<br /><br />'+hth_cimg+'</td></tr>'
hthnav00[2]  = '</table>'


// HTH | Community - Menue Nr. 1

var hthnav01=new Array()

hthnav01[0]  = '<table class="headnav" cellspacing="1" cellpadding="4" style="width: 100%;">'
hthnav01[1]  = '<tr><td class="headnav" '+hth_td_bgA+'>'+hth_img+'<a class="hhn" href="gbook.php">G&auml;stebuch</a></td></tr>'
hthnav01[2]  = '<tr><td class="headnav" '+hth_td_bgA+'>'+hth_img+'<a class="hhn" href="award.php">Award Center</a></td></tr>'
hthnav01[3]  = '<tr><td class="headnav" '+hth_td_bgA+'>'+hth_img+'<a class="hhn" href="usermap.php">Benutzerkarte</a></td></tr>'
hthnav01[4]  = '<tr><td class="headnav" '+hth_td_bgA+'>'+hth_img+'<a class="hhn" href="tipprunde.php">Fußball Tipprunde</a></td></tr>'
hthnav01[5]  = '</table>'

// hthnav01[2]  = '<tr><td class="headnav" '+hth_td_bgA+'>'+hth_img+'<a class="hhn" href="geschichten.php">Geschichten</a></td></tr>'
// hthnav01[5]  = '<tr><td class="headnav" '+hth_td_bgA+'>'+hth_img+''+hth_ts+'</td></tr>'

// HTH | Games - Menue Nr. 2

var hthnav02=new Array()

hthnav02[0]  = '<table class="headnav" cellspacing="1" cellpadding="4" style="width: 100%;">'
hthnav02[1]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_img+'<a class="hhnB" href="kniffel.php">Kniffel</a></td></tr>'
hthnav02[2]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_img+'<a class="hhnB" href="words.php">Wordsearch</a></td></tr>'
hthnav02[3]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_img+'<a class="hhnB" href="dond.php">Deal or no Deal</a></td></tr>'
hthnav02[4]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_img+'<a class="hhnB" href="farmgame.php">Goodgame Farmer</a></td></tr>'
hthnav02[5]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_img+'<a class="hhnB" href="games.php">HTH Game Sektion</a></td></tr>'
hthnav02[6]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_raq+'<a class="hhnB" href="include.php?path=arcade/arcade.php&amp;cat=8">Sport</a></td></tr>'
hthnav02[7]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_raq+'<a class="hhnB" href="include.php?path=arcade/arcade.php&amp;cat=6">Action</a></td></tr>'
hthnav02[8]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_raq+'<a class="hhnB" href="include.php?path=arcade/arcade.php&amp;cat=10">Casino</a></td></tr>'
hthnav02[9]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_raq+'<a class="hhnB" href="include.php?path=arcade/arcade.php&amp;cat=9">Classic</a></td></tr>'
hthnav02[10]  = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_raq+'<a class="hhnB" href="include.php?path=arcade/arcade.php&amp;cat=7">Strategie</a></td></tr>'
hthnav02[11] = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_raq+'<a class="hhnB" href="include.php?path=arcade/arcade.php&amp;cat=12">Denk Sport</a></td></tr>'
hthnav02[12] = '<tr><td class="headnav" '+hth_td_bgB+'>'+hth_raq+'<a class="hhnB" href="include.php?path=arcade/arcade.php&amp;cat=11">Rennspiele</a></td></tr>'
hthnav02[13] = '</table>'


// HTH | Galerien - Menue Nr. 3

var hthnav03=new Array()

hthnav03[0]  = '<table class="headnav" cellspacing="1" cellpadding="4" style="width: 100%;">'
hthnav03[1]  = '<tr><td class="headnav" '+hth_td_bgC+'>'+hth_img+'<a class="hhnC" href="video.php">Videogalerie</a></td></tr>'
hthnav03[2]  = '<tr><td class="headnav" '+hth_td_bgC+'>'+hth_img+'<a class="hhnC" href="galerie.php">Bildergalerie</a></td></tr>'
hthnav03[3]  = '</table>'


// HTH | Content - Menue Nr. 4

var hthnav04=new Array()

hthnav04[0]  = '<table class="headnav" cellspacing="1" cellpadding="4" style="width: 100%;">'
hthnav04[1]  = '<tr><td class="headnav" '+hth_td_bgD+'>'+hth_img+'<a class="hhnD" href="news.php">News</a></td></tr>'
hthnav04[2]  = '<tr><td class="headnav" '+hth_td_bgD+'>'+hth_img+'<a class="hhnD" href="article.php">Artikel</a></td></tr>'
hthnav04[3]  = '<tr><td class="headnav" '+hth_td_bgD+'>'+hth_img+'<a class="hhnD" href="download.php">Downloads</a></td></tr>'
hthnav04[4]  = '<tr><td class="headnav" '+hth_td_bgD+'>'+hth_img+'<a class="hhnD" href="freestuff.php">Free Stuff</a></td></tr>'
hthnav04[5]  = '</table>'

// hthnav04[5]  = '<tr><td class="headnav" '+hth_td_bgD+'>'+hth_img+'<a class="hhnD" href="smiliemaker.php">Smilie Maker</a></td></tr>'
// hthnav04[5]  = '<tr><td class="headnav" '+hth_td_bgD+'>'+hth_img+'<a class="hhnD" href="trailer.php">Movie Trailer</a></td></tr>'


// HTH | About Us - Menue Nr. 5

var hthnav05=new Array()

hthnav05[0]  = '<table class="headnav" cellspacing="1" cellpadding="4" style="width: 100%;">'
hthnav05[1]  = '<tr><td class="headnav" '+hth_td_bgE+'>'+hth_img+'<a class="hhnE" href="faq.php">FAQ</a></td></tr>'
hthnav05[2]  = '<tr><td class="headnav" '+hth_td_bgE+'>'+hth_img+'<a class="hhnE" href="partner.php">Partnerseiten</a></td></tr>'
hthnav05[3]  = '<tr><td class="headnav" '+hth_td_bgE+'>'+hth_img+'<a class="hhnE" href="linkus.php">HTH verlinken</a></td></tr>'
hthnav05[4]  = '<tr><td class="headnav" '+hth_td_bgE+'>'+hth_img+'<a class="hhnE" href="aboutus.php">&Uuml;ber HTH-C.com</a></td></tr>'
hthnav05[5]  = '<tr><td class="headnav" '+hth_td_bgE+'>'+hth_img+'<a class="hhnE" href="contact.php">Kontaktieren Sie Uns</a></td></tr>'
hthnav05[6]  = '<tr><td class="headnav" '+hth_td_bgE+'>'+hth_raq+'<a class="hhnE" href="imprint.php">Impressum</a></td></tr>'
hthnav05[7]  = '</table>'


// HTH | UCC - User Navigation - Menue Nr. 6

var hthnav06=new Array()

hthnav06[0]   = '<table class="headnav" cellspacing="1" cellpadding="4" style="width: 100%;">'
hthnav06[1]   = '<tr><td class="headnav">'
hthnav06[2]   = '<table cellspacing="0" cellpadding="0" style="width: 100%; border: 0;"><tr>'
hthnav06[3]   = '<td style="width:  5%;" align="center"><img src="img/money.png" alt="" border="0" /></td>'
hthnav06[4]   = '<td style="width: 95%;">&nbsp;&nbsp;&nbsp;<a class="hhnE" href="bank.php">Bank</a></td>'
hthnav06[5]   = '</tr></table>'
hthnav06[6]   = '</td></tr><tr><td class="headnav"><table cellspacing="0" cellpadding="0" style="width: 100%; border: 0;"><tr>'
hthnav06[7]   = '<td style="width:  5%;" align="center"><img src="images/style/hth/v3/hthblog/linkback/hth_02.png" alt="" border="0" /></td>'
hthnav06[8]   = '<td style="width: 95%;">&nbsp;&nbsp;&nbsp;<a class="hhnE" href="userblog.php">Blog &Uuml;bersicht</a></td>'
hthnav06[9]   = '</tr></table>'
hthnav06[10]  = '</td></tr><tr><td class="headnav"><table cellspacing="0" cellpadding="0" style="width: 100%; border: 0;"><tr>'
hthnav06[11]  = '<td style="width:  5%;" align="center"><img src="img/user_comment.png" alt="" border="0" /></td>'
hthnav06[12]  = '<td style="width: 95%;">&nbsp;&nbsp;&nbsp;<a class="hhnE" href="userbook.php">Ihr G&auml;stebuch</a></td>'
hthnav06[13]  = '</tr></table>'
hthnav06[14]  = '</td></tr><tr><td class="headnav"><table cellspacing="0" cellpadding="0" style="width: 100%; border: 0;"><tr>'
hthnav06[15]  = '<td style="width:  5%;" align="center"><img src="img/user.png" alt="" border="0" /></td>'
hthnav06[16]  = '<td style="width: 95%;">&nbsp;&nbsp;&nbsp;<a class="hhnE" href="user.php">Ihr Benutzerprofil</a></td>'
hthnav06[17]  = '</tr></table>'
hthnav06[18]  = '</td></tr><tr><td class="headnav"><table cellspacing="0" cellpadding="0" style="width: 100%; border: 0;"><tr>'
hthnav06[19]  = '<td style="width:  5%;" align="center"><img src="img/group_go.png" alt="" border="0" /></td>'
hthnav06[20]  = '<td style="width: 95%;">&nbsp;&nbsp;&nbsp;<a class="hhnE" href="include.php?path=login/member.php">Mitglieder &Uuml;bersicht</a></td>'
hthnav06[21]  = '</tr></table>'
hthnav06[22]  = '</td></tr><tr><td class="headnav"><table cellspacing="0" cellpadding="0" style="width: 100%; border: 0;"><tr>'
hthnav06[23]  = '<td style="width:  5%;" align="center"><img src="img/user_green.png" alt="" border="0" /></td>'
hthnav06[24]  = '<td style="width: 95%;">&nbsp;&nbsp;&nbsp;<a class="hhnE" href="include.php?path=login/htholist.php">Online Liste</a></td>'
hthnav06[25]  = '</tr></table>'
hthnav06[26]  = '</td></tr><tr><td class="headnav"><table cellspacing="0" cellpadding="0" style="width: 100%; border: 0;"><tr>'
hthnav06[27]  = '<td style="width:  5%;" align="center"><img src="img/exclamation.png" alt="" border="0" /></td>'
hthnav06[28]  = '<td style="width: 95%;">&nbsp;&nbsp;&nbsp;<a class="hhnE" href="include.php?logout=1">Ausloggen</a></td>'
hthnav06[29]  = '</tr></table>'
hthnav06[30]  = '</td></tr></table>'



var menuwidth         = '250px'     //default menu width
var menubgcolor       = '000000'    //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

