var defaultMenuWidth="133px"

var linkset=new Array()

/* Streambox RED --> */

linkset[0] = '<img src="iwrs_themes/clubradio24/images/red_winamp.png" />'
linkset[0]+='<div id="red_winamp_aach" class="dr_item_red" onmouseover="ChangeBg(\'red_winamp_aach\',\'iwrs_themes/clubradio24/images/red_mouseover.png\')" onmouseout="ChangeBg(\'red_winamp_aach\',\'iwrs_themes/clubradio24/images/red_mousedown.png\')"><a href="iwrs_files/listen/red/aac/stream_high.m3u">High Quality AAC (DSL)</a></div>'
linkset[0]+='<div id="red_winamp_aacl" class="dr_item_red" onmouseover="ChangeBg(\'red_winamp_aacl\',\'iwrs_themes/clubradio24/images/red_mouseover.png\')" onmouseout="ChangeBg(\'red_winamp_aacl\',\'iwrs_themes/clubradio24/images/red_mousedown.png\')"><a href="iwrs_files/listen/red/aac/stream_low.m3u">Low Quality AAC (ISDN)</a></div>'
linkset[0]+='<div id="red_winamp_mp3h" class="dr_item_red" onmouseover="ChangeBg(\'red_winamp_mp3h\',\'iwrs_themes/clubradio24/images/red_mouseover.png\')" onmouseout="ChangeBg(\'red_winamp_mp3h\',\'iwrs_themes/clubradio24/images/red_mousedown.png\')"><a href="iwrs_files/listen/red/mp3/stream_high.m3u">High Quality MP3 (DSL)</a></div>'
linkset[0]+='<div id="red_winamp_mp3l" class="dr_item_red" onmouseover="ChangeBg(\'red_winamp_mp3l\',\'iwrs_themes/clubradio24/images/red_mouseover.png\')" onmouseout="ChangeBg(\'red_winamp_mp3l\',\'iwrs_themes/clubradio24/images/red_mousedown.png\')"><a href="iwrs_files/listen/red/mp3/stream_low.m3u">Low Quality MP3 (ISDN)</a></div>'

linkset[1] = '<img src="iwrs_themes/clubradio24/images/red_mediaplayer.png" />'
linkset[1]+='<div id="red_media_mp3h" class="dr_item_red" onmouseover="ChangeBg(\'red_media_mp3h\',\'iwrs_themes/clubradio24/images/red_mouseover.png\')" onmouseout="ChangeBg(\'red_media_mp3h\',\'iwrs_themes/clubradio24/images/red_mousedown.png\')"><a href="iwrs_files/listen/red/mp3/stream_high.asx">High Quality MP3 (DSL)</a></div>'
linkset[1]+='<div id="red_media_mp3l" class="dr_item_red" onmouseover="ChangeBg(\'red_media_mp3l\',\'iwrs_themes/clubradio24/images/red_mouseover.png\')" onmouseout="ChangeBg(\'red_media_mp3l\',\'iwrs_themes/clubradio24/images/red_mousedown.png\')"><a href="iwrs_files/listen/red/mp3/stream_low.asx">Low Quality MP3 (ISDN)</a></div>'

linkset[2] = '<img src="iwrs_themes/clubradio24/images/red_real.png" />'
linkset[2]+='<div id="red_real_mp3h" class="dr_item_red" onmouseover="ChangeBg(\'red_real_mp3h\',\'iwrs_themes/clubradio24/images/red_mouseover.png\')" onmouseout="ChangeBg(\'red_real_mp3h\',\'iwrs_themes/clubradio24/images/red_mousedown.png\')"><a href="iwrs_files/listen/red/mp3/stream_high.ram">High Quality MP3 (DSL)</a></div>'
linkset[2]+='<div id="red_real_mp3l" class="dr_item_red" onmouseover="ChangeBg(\'red_real_mp3l\',\'iwrs_themes/clubradio24/images/red_mouseover.png\')" onmouseout="ChangeBg(\'red_real_mp3l\',\'iwrs_themes/clubradio24/images/red_mousedown.png\')"><a href="iwrs_files/listen/red/mp3/stream_low.ram">Low Quality MP3 (ISDN)</a></div>'

/* <-- Streambox RED */

/* Streambox BLUE --> */
linkset[3] = '<img src="iwrs_themes/clubradio24/images/blue_winamp.png" />'
/*linkset[3]+='<div id="blue_winamp_aach" class="dr_item_blue" onmouseover="ChangeBg(\'blue_winamp_aach\',\'iwrs_themes/clubradio24/images/blue_winamp_mouseover.png\')" onmouseout="ChangeBg(\'blue_winamp_aach\',\'iwrs_themes/clubradio24/images/blue_mousedown.png\')"><a href="iwrs_files/listen/blue/aac/stream_high.m3u">High Quality AAC (DSL)</a></div>'
linkset[3]+='<div id="blue_winamp_aacl" class="dr_item_blue" onmouseover="ChangeBg(\'blue_winamp_aacl\',\'iwrs_themes/clubradio24/images/blue_winamp_mouseover.png\')" onmouseout="ChangeBg(\'blue_winamp_aacl\',\'iwrs_themes/clubradio24/images/blue_mousedown.png\')"><a href="iwrs_files/listen/blue/aac/stream_low.m3u">Low Quality AAC (ISDN)</a></div>'*/
linkset[3]+='<div id="blue_winamp_mp3h" class="dr_item_blue" onmouseover="ChangeBg(\'blue_winamp_mp3h\',\'iwrs_themes/clubradio24/images/blue_winamp_mouseover.png\')" onmouseout="ChangeBg(\'blue_winamp_mp3h\',\'iwrs_themes/clubradio24/images/blue_mousedown.png\')"><a href="iwrs_files/listen/blue/mp3/stream_high.m3u">High Quality MP3 (DSL)</a></div>'
//linkset[3]+='<div id="blue_winamp_mp3l" class="dr_item_blue" onmouseover="ChangeBg(\'blue_winamp_mp3l\',\'iwrs_themes/clubradio24/images/blue_winamp_mouseover.png\')" onmouseout="ChangeBg(\'blue_winamp_mp3l\',\'iwrs_themes/clubradio24/images/blue_mousedown.png\')"><a href="iwrs_files/listen/blue/mp3/stream_low.m3u">Low Quality MP3 (ISDN)</a></div>'

linkset[4] = '<img src="iwrs_themes/clubradio24/images/blue_mediaplayer.png" />'
linkset[4]+='<div id="blue_media_mp3h" onmouseover="ChangeBg(\'blue_media_mp3h\',\'iwrs_themes/clubradio24/images/blue_winamp_mouseover.png\')" onmouseout="ChangeBg(\'blue_media_mp3h\',\'iwrs_themes/clubradio24/images/blue_mousedown.png\')" class="dr_item_blue"><a href="iwrs_files/listen/blue/mp3/stream_high.asx">High Quality MP3 (DSL)</a></div>'
//linkset[4]+='<div id="blue_media_mp3l" onmouseover="ChangeBg(\'blue_media_mp3l\',\'iwrs_themes/clubradio24/images/blue_winamp_mouseover.png\')" onmouseout="ChangeBg(\'blue_media_mp3l\',\'iwrs_themes/clubradio24/images/blue_mousedown.png\')" class="dr_item_blue"><a href="iwrs_files/listen/blue/mp3/stream_low.asx">Low Quality MP3 (ISDN)</a></div>'

linkset[5] = '<img src="iwrs_themes/clubradio24/images/blue_real.png" />'
linkset[5]+='<div id="blue_real_mp3h" onmouseover="ChangeBg(\'blue_real_mp3h\',\'iwrs_themes/clubradio24/images/blue_winamp_mouseover.png\')" onmouseout="ChangeBg(\'blue_real_mp3h\',\'iwrs_themes/clubradio24/images/blue_mousedown.png\')" class="dr_item_blue"><a href="iwrs_files/listen/blue/mp3/stream_high.ram">High Quality MP3 (DSL)</a></div>'
//linkset[5]+='<div id="blue_real_mp3l" onmouseover="ChangeBg(\'blue_real_mp3l\',\'iwrs_themes/clubradio24/images/blue_winamp_mouseover.png\')" onmouseout="ChangeBg(\'blue_real_mp3l\',\'iwrs_themes/clubradio24/images/blue_mousedown.png\')" class="dr_item_blue"><a href="iwrs_files/listen/blue/mp3/stream_low.ram">Low Quality MP3 (ISDN)</a></div>'

/* <-- Streambox BLUE */


var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)" class="dropdown_streambox"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY

var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY

if (rightedge<menuobj.contentwidth)

menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else

menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"

if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {

while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu
