function muestra(menuSelected, tabs, cuerpos) {
    var menu = document.getElementById(tabs);
    var items = menu.getElementsByTagName("li");
    var cuerpos = document.getElementById(cuerpos);
    var itemsCuerpos = cuerpos.getElementsByTagName("div");
    for (var i = 0; i < items.length; i++) {
        if (items[i] != menuSelected.parentNode) {
            items[i].className = "";
            itemsCuerpos[i].className = "tabcontent";
        } else {
            menuSelected.parentNode.className = "selected";
            itemsCuerpos[i].className = "tabcontentSelected";
        }
    }
}

function tocar(nombre){
nueva = window.open ("", "Crescendo", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=230,height=100")
nueva.document.open()
nueva.document.write("<center>")
nueva.document.write("<body bgcolor='#FFFFFF'  text='#000000'></body>")
nueva.document.write("<table border='0'>")
nueva.document.write("<tr>")
nueva.document.write("<td valign='middle' align='center' bgcolor='oldlace'>")
nueva.document.write("<embed name=ac_tema src=" + nombre + " width=200 height=50 autostart=true loop =false >")
nueva.document.write("</td>")
nueva.document.write("</tr>")
nueva.document.write("</table>")
nueva.document.write("</center>")
nueva.document.close()
}

function nuevaven(url){
nueva=window.open(url,"ventana","menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=yes,height=480,width=640")
//nueva=window.open(url,"ventana","menubar=yes,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,height=480,width=640")
}

function webmaster() {
document.write ("<div class=\"copyr\">\r\n");
document.write ("Derechos reservados. (c) Jorge Villamizar 2010. Webmaster: <a href=\"http://www.prolatin.net\">Prolatin</a>\r\n");
document.write ("</div>\r\n");
}

function mp3(nombre,rpt,width,heigth){
if (GetBrowser() == "Netscape")
	NE(nombre,rpt,width,heigth);
if (GetBrowser() == "IE")
	IE(nombre,rpt,width,heigth);
if (navigator.appName.substring(0,5) == "WebTV")
	WTV(nombre,rpt,width,heigth)
}

function IE(nombre,rpt,width,height){
CodeGen = ""
var mediaURL,rpt,width,height
nueva = window.open ("", "Crescendo", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=300,height=48,top=120,left=0")
nueva.document.open()
nueva.document.write("<html><head><title>" + "Grupo Sabor y Son" + "</title>")
nueva.document.write("<center>")
nueva.document.write("<body bgcolor='#d5d490'  text='#000000'></body>")
nueva.document.write("<table border='0' align='center'>")
nueva.document.write("<tr>")
nueva.document.write("<td valign='middle' align='center' bgcolor='oldlace' ")
CodeGen = '<object id=Player' + '\n' ;
CodeGen += 'codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902' + '\n' ;
CodeGen += 'type=application/x-oleobject height=' + height + ' width=' + width + '\n' ;
CodeGen += ' standby="Loading Microsoft® Windows® Media Player components..." ' + '\n' ;
CodeGen += 'classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> ' + '\n' ;
CodeGen += '<param NAME="Filename" VALUE="' + nombre + '">' + '\n' ;
CodeGen += '<param NAME="ShowStatusBar" VALUE= "true">';
CodeGen += '<param NAME="autoStart" VALUE="true"><param NAME="Volume" VALUE="0">' + '\n' ;
CodeGen += '<param NAME="playCount" VALUE=' + rpt + '></object>'
nueva.document.write("</td>")
nueva.document.write("</tr>")
nueva.document.write("</table>")
nueva.document.write("</center>")
nueva.document.write(CodeGen)
nueva.document.close()
}

function NE(nombre,rpt,width,height){
CodeGen = ""
var mediaURL,rpt,width,height
nueva = window.open ("", "Crescendo", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=300,height=48,top=120,left=0")
nueva.document.open()
nueva.document.write("<html><head><title>" + "Grupo Sabor Y Son" + "</title>")
nueva.document.write("<center>")
nueva.document.write("<body bgcolor='#d5d490'  text='#000000'></body>")
nueva.document.write("<table border='0' align='center'>")
nueva.document.write("<tr>")
nueva.document.write("<td valign='middle' align='center' bgcolor='oldlace' ")
CodeGen = '<embed type="application/x-mplayer2" ' + '\n' ;
CodeGen = CodeGen + ' pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" ' + '\n' ;
CodeGen = CodeGen + 'Name="MediaPlayer" ' + 'src="' + nombre + '" ' + '\n' ;
CodeGen = CodeGen + 'autoStart=1 ' ;
CodeGen = CodeGen + 'ShowStatusBar=1 '; 
CodeGen = CodeGen + 'playCount=' + rpt + ' ' ;
CodeGen = CodeGen + 'volume=0 ' ;
CodeGen = CodeGen + 'HEIGHT=' + height + ' WIDTH=' + width + '>'
nueva.document.write("</td>")
nueva.document.write("</tr>")
nueva.document.write("</table>")
nueva.document.write("</center>")
nueva.document.write(CodeGen)
nueva.document.close()
}

function WTV(nombre,rpt,width,heigth){
CodeGen = ""
var nombre,rpt,width,height
nueva = window.open ("", "Crescendo", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=300,height=48,top=120,left=0")
nueva.document.open()
nueva.document.write("<html><head><title>" + "Grupo Sabor y Son" + "</title>")
nueva.document.write("<center>")
nueva.document.write("<body bgcolor='#d5d490'  text='#000000'></body>")
nueva.document.write("<table border='0' align='center'>")
nueva.document.write("<tr>")
nueva.document.write("<td valign='middle' align='center' bgcolor='oldlace' ")
CodeGen = '<embed src="' + nombre + '"' + '\n' ;
CodeGen += ' height=' + height + ' width=' + width + ' autostart="true"' + '\n'
CodeGen += ' LOOP=' + rpt + '>'
nueva.document.write("</td>")
nueva.document.write("</tr>")
nueva.document.write("</table>")
nueva.document.write("</center>")
nueva.document.write(CodeGen)
nueva.document.close()
}

function GetBrowser(){
   var agt=navigator.userAgent.toLowerCase();
   if( ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) )
       return "IE";
   else if( ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
         && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
         && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)) )
       return "Netscape";
   else
       return "unknown";
}

