//lang="sp";
document.write('<style type="text/css">');
document.write('#posi_menu {position:absolute; left:38%; }');
document.write('</style>');

function createMenu() 
{

x=0;
document.write("<table border=.5 bordercolor="+menu_bordercolor+" style=cursor:hand;position:absolute;left:"+(x)+"; cellspacing=0; cellpadding=10; ><tr>")
for (var i = 0; i < menu.length; i++) {document.write("<td bgcolor="+menu_bgcolor_normal+" id=menu"+i+" onmouseover=menuOver(this,"+i+") onmouseout=menuOut(this,"+i+") onclick=hideSubMenu("+i+") height="+elementH+" >&nbsp;"+menu[i]+"</td>")}
document.write("</tr></table>")
document.write("<br><br>")
for (var i = 0; i < submenu.length; i++) 
    {
    document.write("<table border=.5 bordercolor="+menu_bordercolor+" style=display:none;cursor:hand;position:absolute;left:"+(x)+";  id=submenu"+i+" cellspacing=0; cellpadding=0; onmouseover=revealSubMenu("+i+") onmouseout=hideSubMenu("+i+") >") 
    for (var j = 0; j < 6; j++)
         {      
        if (i == 0) document.write("<tr><td width=120 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
        //if (i == 1) document.write("<tr><td width=280 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
        //if (i == 2) document.write("<tr><td width=80 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
         }
    for (var j = 0; j < 9; j++)
         {      
        //if (i == 0) document.write("<tr><td width=120 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
        if (i == 1) document.write("<tr><td width=280 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
        //if (i == 2) document.write("<tr><td width=80 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
         }

    for (var j = 0; j < 3; j++)
         {      
        //if (i == 0) document.write("<tr><td width=120 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
        //if (i == 1) document.write("<tr><td width=280 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
        if (i == 2) document.write("<tr><td width=110 bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) onClick=\"JavaScript:document.location.href='" + lurl[i][j] + "'\" height="+elementH+">&nbsp;"+submenu[i][j]+"</td></tr>")
         }

    //x=x+(menu[i].length)+10
    x=x+65
    document.write("</table>")
   }
}

function menuOver(element, numMenu) 
{
setDefaultStyle(element)
styleOver(element)
revealSubMenu(numMenu)
}

function menuOut(element, numMenu) 
{
hideSubMenu(numMenu)
}

function styleOver(element) 
{
element.bgColor = menu_bgcolor_over
}

function styleOut(element) 
{
element.bgColor = menu_bgcolor_normal
}

function setDefaultStyle() 
{
for (var i = 0; i < menu.length; i++) O("menu"+i).bgColor = menu_bgcolor_normal
}

function revealSubMenu(numMenu) 
{
hideAll()
show( O("submenu"+numMenu) )
}

function hideSubMenu(numMenu) 
{
hide( O("submenu"+numMenu) )
}

function show(element) 
{
element.style.display = ""
}

function hideAll() 
{
for (var i = 0; i < submenu.length; i++) hideSubMenu(i)
}

function hide(element) 
{
element.style.display = "none"
}

function O(id) 
{
return document.getElementById(id)
}


var elementH = 25, elementW = 200

var menu_bgcolor_normal = "005099"
var menu_bgcolor_over = "#9999FF"
var menu_bordercolor = "#0075ff"

if(lang=="fr")
{
var menu = [
   "<font color=white size=4 face=times new roman>infos</font>",
   "<font color=white size=4 face=times new roman>artistes</font>",
   "<font color=white size=4 face=times new roman>base de données : <i>radio</i></font>"
           ]
}

if(lang=="uk")
{
var menu = [
   "<font color=white size=4 face=times new roman>infos</font>",
   "<font color=white size=4 face=times new roman>artists</font>",
   "<font color=white size=4 face=times new roman>datas base : <i>radio</i></font>"
           ]
}
if(lang=="sp")
{
var menu = [
   "<font color=white size=4 face=times new roman>infos</font>",
   "<font color=white size=4 face=times new roman>artistas</font>",
   "<font color=white size=4 face=times new roman>base de datos : <i>radio</i></font>"
           ]
}


if(lang=="fr")
{
var submenu = [

   [
    "<font color=white size=3>qui sommes nous ?</font>",
    "<font color=white size=3>contacts</font>",
    "<font color=white size=3>faq</font>",
    "<font color=white size=3>liens</font>",
    "<font color=white size=3>statistiques</font>",
    "<font color=white size=3>optimisation</font>"
    ],

   [
    "<font color=white size=3>bruno ryfer :     <font color=yellow><i><div id=posi_menu>chansons pop rock funk</div></i></font>",
    "<font color=white size=3>andy voidaux :    <font color=yellow><i><div id=posi_menu>chansons reggae</div></i></font>",
    "<font color=white size=3>gringo nuevo :    <font color=yellow><i><div id=posi_menu>chansons reggae</div></i></font>",
    "<font color=white size=3>roy khanagan :    <font color=yellow><i><div id=posi_menu>chansons rock métal</div></i></font>",
    "<font color=white size=3>reggae motion :   <font color=yellow><i><div id=posi_menu>chansons reggae roots</div></i></font>",
    "<font color=white size=3>dub station :     <font color=yellow><i><div id=posi_menu>musiques reggae dub</div></i></font>",
    "<font color=yellow size=3>easy popup :     <font color=white><i><div id=posi_menu>musiques dance trance</div></i></font>",
    "<font color=yellow size=3>dad busy :       <font color=white><i><div id=posi_menu>musiques dance chillout</div></i></font>",
    "<font color=yellow size=3>darkyx :         <font color=white><i><div id=posi_menu>musiques dub eurodance</div></i></font>"
    ],

   [
    "<font color=white size=3>chansons</font>",
    "<font color=white size=3>dance trance</font>",
    "<font color=white size=3>films</font>"
    ],


]

var lurl=[
["qui_who_quien.html?lang=fr","contact.html?lang=fr","faq.html?lang=fr","links.html?lang=fr","statistics.html?lang=fr","optimized.html?lang=fr"],
["bruno_ryfer.html?lang=fr","andy_voidaux.html?lang=fr","gringo_nuevo.html?lang=fr","roy_khanagan.html?lang=fr","reggae_motion.html?lang=fr","dub_station.html?lang=fr","easy_popup.html?lang=fr","dad_busy.html?lang=fr","darkyx.html?lang=fr"],
["radio_songs.html?lang=fr","radio_musics.html?lang=fr","music_film.html?lang=fr"],

]

}

if(lang=="uk")
{
var submenu = [

   [
    "<font color=white size=3>who are us ?</font>",
    "<font color=white size=3>contacts</font>",
    "<font color=white size=3>faq</font>",
    "<font color=white size=3>links</font>",
    "<font color=white size=3>statistics</font>",
    "<font color=white size=3>optimization</font>"
    ],

   [
    "<font color=white size=3>bruno ryfer :     <font color=yellow><i><div id=posi_menu>songs pop rock funk</div></i></font>",
    "<font color=white size=3>andy voidaux :    <font color=yellow><i><div id=posi_menu>songs reggae</div></i></font>",
    "<font color=white size=3>gringo nuevo :    <font color=yellow><i><div id=posi_menu>songs reggae</div></i></font>",
    "<font color=white size=3>roy khanagan :    <font color=yellow><i><div id=posi_menu>songs rock metal</div></i></font>",
    "<font color=white size=3>reggae motion :   <font color=yellow><i><div id=posi_menu>songs reggae roots</div></i></font>",
    "<font color=white size=3>dub station :     <font color=yellow><i><div id=posi_menu>musics reggae dub</div></i></font>",
    "<font color=yellow size=3>easy popup :     <font color=white><i><div id=posi_menu>musics dance trance</div></i></font>",
    "<font color=yellow size=3>dad busy :       <font color=white><i><div id=posi_menu>musics dance chillout</div></i></font>",
    "<font color=yellow size=3>darkyx :         <font color=white><i><div id=posi_menu>musics dub eurodance</div></i></font>"
    ],

   [
    "<font color=white size=3>songs</font>",
    "<font color=white size=3>dance trance</font>",
    "<font color=white size=3>movies</font>"
    ],


]

var lurl=[
["qui_who_quien.html?lang=uk","contact.html?lang=uk","faq.html?lang=uk","links.html?lang=uk","statistics.html?lang=uk","optimized.html?lang=uk"],
["bruno_ryfer.html?lang=uk","andy_voidaux.html?lang=uk","gringo_nuevo.html?lang=uk","roy_khanagan.html?lang=uk","reggae_motion.html?lang=uk","dub_station.html?lang=uk","easy_popup.html?lang=uk","dad_busy.html?lang=uk","darkyx.html?lang=uk"],
["radio_songs.html?lang=uk","radio_musics.html?lang=uk","music_film.html?lang=uk"],

]

}

if(lang=="sp")
{
var submenu = [

   [
    "<font color=white size=3>¿ quienes somos ?</font>",
    "<font color=white size=3>contactos</font>",
    "<font color=white size=3>faq</font>",
    "<font color=white size=3>enlaces</font>",
    "<font color=white size=3>estadísticas</font>",
    "<font color=white size=3>optimización</font>"
    ],

   [
    "<font color=white size=3>bruno ryfer :     <font color=yellow><i><div id=posi_menu>canciones pop rock funk</div></i></font>",
    "<font color=white size=3>andy voidaux :    <font color=yellow><i><div id=posi_menu>canciones reggae</div></i></font>",
    "<font color=white size=3>gringo nuevo :    <font color=yellow><i><div id=posi_menu>canciones reggae</div></i></font>",
    "<font color=white size=3>roy khanagan :    <font color=yellow><i><div id=posi_menu>canciones rock metal</div></i></font>",
    "<font color=white size=3>reggae motion :   <font color=yellow><i><div id=posi_menu>canciones reggae roots</div></i></font>",
    "<font color=white size=3>dub station :     <font color=yellow><i><div id=posi_menu>músicas reggae dub</div></i></font>",
    "<font color=yellow size=3>easy popup :     <font color=white><i><div id=posi_menu>músicas dance trance</div></i></font>",
    "<font color=yellow size=3>dad busy :       <font color=white><i><div id=posi_menu>músicas dance chillout</div></i></font>",
    "<font color=yellow size=3>darkyx :         <font color=white><i><div id=posi_menu>músicas dub eurodance</div></i></font>"
    ],

   [
    "<font color=white size=3>canciones</font>",
    "<font color=white size=3>dance trance</font>",
    "<font color=white size=3>películas</font>"
    ],


]

var lurl=[
["qui_who_quien.html?lang=sp","contact.html?lang=sp","faq.html?lang=sp","links.html?lang=sp","statistics.html?lang=sp","optimized.html?lang=sp"],
["bruno_ryfer.html?lang=sp","andy_voidaux.html?lang=sp","gringo_nuevo.html?lang=sp","roy_khanagan.html?lang=sp","reggae_motion.html?lang=sp","dub_station.html?lang=sp","easy_popup.html?lang=sp","dad_busy.html?lang=sp","darkyx.html?lang=sp"],
["radio_songs.html?lang=sp","radio_musics.html?lang=sp","music_film.html?lang=sp"],

]

}

