  var guid="";
  var smenu="0";
  var flash_tower = "";
  var TrueCustomer="";
  var CentralID="";
  var CreateStation="";
  var StrLeftAdv = "";
  var MyStation = "";
  var jkplayer=null;
  // +++++++++++++++++++++++++++++++++++++ getXMLHttpRequest ++++++++++++++++++++++++++++++++++++++
  function getXMLHttpRequest(){
          try{
                  try{
                          q = new XMLHttpRequest();
                  }catch(error){
                          q = new ActiveXObject("Microsoft.XMLHTTP");
                  }
                  return q;
          }catch(error){
                  return false;
          }
  }
 // +++++++++++++++++++++++++++++++++++++ Help Menu ++++++++++++++++++++++++++++++++++++++
 function writeHtmlTable() {
	document.write("<tr bgcolor=\"#000000\"><td align=\"center\" valign=\"center\"><img src=\"http://trueworld.truelife.com/_help2/images/help_icon.gif\" onClick=\"window.open('http://trueworld.truelife.com/_help2/index.jsp','_blank','toolbar=yes,location=yes,menubar=yes,resizable=yes,directories=no,scrollbars=yes,width=1000,height=490,left=0,top=0')\" style=\"cursor:pointer\"></td></tr>");
}
  // +++++ LEFTAdvertise+++++++++++++++++++++++++++++++++
  function leftAdv(){
          try{
                  q = getXMLHttpRequest();
                  q.onreadystatechange = leftAdv_action;
                  q.open("GET","http://truemusic.truelife.com/service/JSLeftAdv.jsp");
                  q.send(null);
          }catch(error){
                 // alert("Error");
          }
  }
// ++++++++++++ LEFTAdvertise +++++++++++++++++++++++++
function leftAdv_action() {
            if (q.readyState == 4) {
                if (q.status == 200) {
                  StrLeftAdv=q.responseText;
                } else {
                   // alert('There was a problem with the request.');
                }
            }
    return true;
}
  // +++++ JSProfile+++++++++++++++++++++++++++++++++
  function loadProfile(){
          try{
                  q = getXMLHttpRequest();
                  q.onreadystatechange = loadProfile_action;
                  q.open("POST","http://truemusic.truelife.com/service/getCookies.jsp?name=CentralID");
                  q.send(null);
                  //alert("Add Song Complete");
          }catch(error){
                  //alert("Error");
          }
  }
// ++++++++++++ jk_addsongs +++++++++++++++++++++++++
function loadProfile_action() {
        if (q.readyState == 4) {
            if (q.status == 200) {
	CentralID = q.responseText;
	alert("Post "+CentralID);
            } else {
                //alert('There was a problem with the request.');
            }
        }
	return true;
}
  // +++++ JS Right+++++++++++++++++++++++++++++++++
  function loadJSRight(){
          try{
                  ran = Math.floor(Math.random()*100);
                  q = getXMLHttpRequest();
                  q.onreadystatechange = loadJSRight_action;
                  q.open("GET","http://truemusic.truelife.com/service/flash_tower.jsp");
                  q.send(null);
                  //alert("Add Song Complete");
          }catch(error){
                  //alert("Error");
          }
  }
// ++++++++++++ JS Right+++++++++++++++++++++++++
function loadJSRight_action() {
        if (q.readyState == 4) {
            if (q.status == 200) {
                flash_tower = q.responseText;
            } else {
                //alert('There was a problem with the request.');
            }
        }
	return true;
}
  // +++++++++++++++++++++++++++++++++++++ jk_addsong ++++++++++++++++++++++++++++++++++++++
  function jk_addsong(guid){
          try{
                  q = getXMLHttpRequest();
                  q.onreadystatechange = jk_addsongs;
                  q.open("POST","http://truemusic.truelife.com/home/player/inc/inc_proxy_jukebox.php?guid="+guid);
                  q.send(null);
                 // alert("เพิ่มเพลงลง jukebox เรียบร้อย");
          }catch(error){
                  //alert("Error");
          }
  }
  function jk_addsongList(guid){
          try{
                  q = getXMLHttpRequest();
                  q.onreadystatechange = jk_addsongs;
				  q.open("POST","http://truemusic.truelife.com/service/db/jk_addListSong.jsp?s_list="+guid);
                  q.send(null);
                  //alert("เพิ่มเพลงลง jukebox เรียบร้อย");
          }catch(error){
                  //alert("Error");
          }
  }
  function jk_inter_addsongList(guid){
          try{
                  q = getXMLHttpRequest();
                  q.onreadystatechange = jk_addsongs;
				  q.open("POST","http://truemusic.truelife.com/service/db/jk_inter_addListSong.jsp?s_list="+guid);
                  q.send(null);
                  //alert("เพิ่มเพลงลง jukebox เรียบร้อย");
          }catch(error){
                  //alert("Error");
          }
  }
  // +++++++++++++++++++++++++++++++++++++ jk_addsongs ++++++++++++++++++++++++++++++++++++++
  function jk_addsongs() {
          if (q.readyState == 4) {
              if (q.status == 200) {
                 response = q.responseText;
                 alert(response);
                  try
                  {
						if(jkplayer==null){
				            jukeboxPlayer();
					    }else{
							jkplayer.location.href="http://truemusic.truelife.com/jukebox/player.jsp?session="+Math.floor(Math.random()*1000);
					   }	
                  }
                  catch (error)
                  {
						if (error.number == "-2147467259")
						  {
							jukeboxPlayer();
						  }
                  }
				  
              } else {
                 // alert('There was a problem with the request.');
              }
          }
          return true;
  }
  // +++++++++++++++++++++++++++++++++++++ jk_addsong ++++++++++++++++++++++++++++++++++++++
  function jk_interaddsong(guid){
          try{
                  q = getXMLHttpRequest();
                  q.onreadystatechange = jk_interaddsongs;
                  q.open("POST","http://truemusic.truelife.com/service/db/jk_inter_addsong.jsp?guid="+guid);
                  q.send(null);
                  //alert("เพิ่มเพลงลง jukebox เรียบร้อย");
          }catch(error){
                  //alert("Error");
          }
  }
  // +++++++++++++++++++++++++++++++++++++ jk_addsongs ++++++++++++++++++++++++++++++++++++++
  function jk_interaddsongs() {
          if (q.readyState == 4) {
              if (q.status == 200) {
                 response = q.responseText;
                 alert(response);
                  if(jkplayer==null){
                    jukeboxPlayer();
                  }else{
                    jkplayer.location.href="http://truemusic.truelife.com/jukebox/player.jsp?session="+Math.floor(Math.random()*1000);
                  }
              } else {
                 // alert('There was a problem with the request.');
              }
          }
          return true;
  }
  // +++++++++++++++++++++++++++++++++++++ jk_deletesong ++++++++++++++++++++++++++++++++++++++
  function jk_deletesong(guid){
          try{
                  q = getXMLHttpRequest();
                  q.onreadystatechange = jk_action;
                  q.open("POST","http://truemusic.truelife.com/service/db/jk_deletesong.jsp?guid="+guid);
                  q.send(null);
                  alert("ลบข้อมูลเรียบร้อย");
          }catch(error){
                  //alert("Error");
          }
  }
  // +++++++++++++++++++++++++++++++++++++ jk_deletesongs ++++++++++++++++++++++++++++++++++++++
  function jk_action() {
          if (q.readyState == 4) {
              if (q.status == 200) {
                  response = q.responseXML.getElementsByTagName("response").length;
              } else {
                  //alert('There was a problem with the request.');
              }
          }
          return true;
  }
  // +++++++++++++++++++++++++++++++++++++ jukebox ++++++++++++++++++++++++++++++++++++++
  function jukeboxPlayer(){
  /*
    var windowprops = "toolbar=0,location=0,directories=0,status=0, menubar=0,scrollbars=0,resizable=0,left=0, top=0, width=750,height=550";
    jkplayer = window.open("http://truemusic.truelife.com/jukebox/player.jsp?session="+Math.floor(Math.random()*1000),"jkDevice",windowprops);
    openWindow.title = "Jukebox";
  */
    var windowprops = "toolbar=0,location=0,directories=0,status=0, menubar=0,scrollbars=0,resizable=0,left=0, top=0, width=900,height=590";
    jkplayer = window.open("http://truemusic.truelife.com/jukebox/newPlayer.jsp?session="+Math.floor(Math.random()*1000),"jkPlayer",windowprops);
    //jkplayer.title = "Jukebox";
  }
  function writeRightMenu(){
          var html="";
          var flash="";
          var table_flash="";
          //loadJSRight();

          form="<form name=\"form1\" method=\"post\" action=\"http://truemusic.truelife.com/service/artistsearch.jsp\"  target=\"_new\">\n";
          form+=" <img src=\"http://truemusic.truelife.com/images/spacer.gif\" width=\"80\" height=\"2\" >";
          form+=" &nbsp;&nbsp;<input name=\"keywordSearch\" type=\"text\" id=\"keywordSearch\" value=\"ค้นหา\"  onFocus=\"this.value=''\" size=\"25\">\n";
          form+=" <br/>&nbsp;&nbsp;<select name=\"categorySelected\" size=\"1\" id=\"category\">\n";
          form+="                <option value=\"artist\" selected>----- ศิลปิน -----</option>\n";
        //  form+="                <option value=\"song\">----- เพลง -----</option>\n";
	  //form+="                <option value=\"mv\">----- MV -----</option>\n";
       //   form+="                <option value=\"FS\">----- mobile fullsong -----</option>\n";
          form+="  </select>\n";
          form+="<input type=\"submit\" name=\"Submit\" value=\"ค้นหา\">";
          form+="</form>\n";

          //t_bonjovi.swf
          html="<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#000000\">\n";
          html+="<tr> \n";
          html+="  <td background=\"http://truemusic.truelife.com/images/headbar1_03.gif\" height=\"25\"><font class=\"searchTitle\"> &nbsp;";
          html+="<img src=\"http://truemusic.truelife.com/images/arrow3.gif\">&nbsp;ค้นหา ศิลปิน/เพลง</font></td>\n";
          html+="</tr>\n";
          html+="</table>\n";
          html+="<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#000000\">";
          html+="<tr >\n";
          html+="<td   bgcolor=\"#333333\" >\n";
          html+=form;
          html+="</td>\n";
          html+="</tr>\n";
          html+="</table>";
          //html = "";
          document.write(html);
  }
  // +++++++++++++++++++++++++++++++++++++ create_album ++++++++++++++++++++++++++++++++++++++
  function create_album(){
   var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=400,height=146";
   var openWindow = window.open("http://truemusic.truelife.com/jukebox/createalbum.jsp" ,"create_album",windowprops );
  }
  // +++++++++++++++++++++++++++++++++++++ preview_song ++++++++++++++++++++++++++++++++++++++
  function preview_song(guid){
   var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=400,height=150";
   var openWindow = window.open("http://truemusic.truelife.com/listen/demo.jsp?guid=" + guid ,"Preview",windowprops );
  }
  //Open MV Special
  function openMVSpecial(mv){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=570,height=650";
    var openWindow = window.open("http://truemusic.truelife.com/service/mvSpecial.jsp?mvtype="+mv ,"CrazyHits",windowprops );
  }
  //fullsonglistening
  function fullsonglistening(guid){
   var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=400,height=150";
   var openWindow = window.open("http://truemusic.truelife.com/listen/fullsong.jsp?guid=" + guid ,"FullSong",windowprops );
  }
  //Open MV Player by song_content_id (type=mv)
  function openMV(path,guid){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=570,height=650";
    var openWindow = window.open("http://truemusic.truelife.com/service/newMVplay.jsp" +"?guid=" + guid ,"MV",windowprops );
  }
  //Open MV Player by song_content_id (type=mv)
  function openMVPlay(path,guid){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=570,height=650";
    var openWindow = window.open("http://truemusic.truelife.com/service/newMVplay2.jsp" +"?guid=" + guid ,"MV",windowprops );
  }
  //Open MV Player by song_content_id (type=mv)
  function openKaraoke(guid){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=650,height=500";
    var openWindow = window.open("http://truemusic.truelife.com/service/karaoke.jsp" +"?guid=" + guid ,"karaoke",windowprops );
  }
  //Open MV Player by song_content_id (type=mv)
  function openConcert(guid){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=650,height=500";
    var openWindow = window.open("http://truemusic.truelife.com/service/concert.jsp" +"?guid=" + guid ,"concert",windowprops );
  }
  //Open MV Player by song_content_id (type=mv)
  function openConcertPlay(guid){
    //var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=650,height=500";
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=570,height=650";
    var openWindow = window.open("http://truemusic.truelife.com/service/concert_play.jsp" +"?guid=" + guid ,"concert",windowprops );
  }
  //Open MV Player by song_content_id (type=mv)
  function openStation(path,guid){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=500,height=370";
    var openWindow = window.open("http://truemusic.truelife.com/msstation/miniplaystation.jsp" +"?guid=" + guid ,"openStation"+ guid,windowprops );

  }
  //Open MV Player by song_content_id (type=mv)
  function openMiniStation(guid){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=500,height=370";
    var openWindow = window.open("http://truemusic.truelife.com/msstation/miniplaystation.jsp" +"?guid=" + guid ,"openStation",windowprops );
  }
  //Open My Station Player by song_content_id (type=mv)
  function openMiniMyStation(){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=500,height=370";
    var openWindow = window.open("http://truemusic.truelife.com/msstation/minimystation.jsp" ,"openStation",windowprops );
  }
  function myStation(){
    var windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=500,height=370";
    var openWindow = window.open("http://truemusic.truelife.com/msstation/minimystation.jsp" ,"openStation",windowprops );

  }
  //Open openNews
  function openNews(guid){
    var windowprops = "height=680,width=570,location=no,"+ "scrollbars=no,menubars=no,toolbars=no,status=no,resizable=no";
    var openWindow = window.open("http://truemusic.truelife.com/news/read.jsp?guid="+guid,	"news",	windowprops);
    openWindow.title = "news";
  }
  //Open openNews
  function openNewsMovie(guid){
    var windowprops = "height=680,width=570,location=no,"+ "scrollbars=no,menubars=no,toolbars=no,status=no,resizable=no";
    var openWindow = window.open("http://truemusic.truelife.com/news/new_movie.jsp?guid="+guid,	"news",	windowprops);
    openWindow.title = "news";
  }
  //open Window
  function openURL(url){
    window.location.href=url;
  }
  // +++++++++++++++++++++++++++++++++++++ writeLeftMenu ++++++++++++++++++++++++++++++++++++++
  function writeLeftMenu(imgpath,menu){
         //loadProfile();
         TrueCustomer="0";
          if(CentralID==null){
            CentralID="none";
          }
          if(menu==null){
            menu="0";
          }
          var html="";
          html+="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#310100\">\n";
          html+="  <tr>\n";
          html+="    <td width=\"10\"><img src=\"http://truemusic.truelife.com/images/th_insidemusic_01.gif\" width=\"10\" height=\"40\"></td>\n";
          html+="    <td  background=\"http://truemusic.truelife.com/images/th_insidemusic_03.gif\"><a href=\"http://truemusic.truelife.com/index.jsp\">\n";
          html+="	<img src=\"http://truemusic.truelife.com/images/head_1_02.gif\" width=\"158\" height=\"40\" border=\"0\"></a></td>\n";
          html+="    <td width=\"11\"><img src=\"http://truemusic.truelife.com/images/th_insidemusic_04.gif\" width=\"11\" height=\"40\"></td>\n";
          html+="  </tr>\n";
          html+="</table>\n";
          // +++++++++++++++++++++++++++++++++++++++++++++ menu +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          html+=" 	<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" background=\"http://truemusic.truelife.com/images/bg_submenu1.gif\">";
          if(menu=="0"){
                  html+="        <tr>";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/publicStation.jsp')\">NET RADIO</a></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr>";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/editgenre.jsp')\">My Station</a></td> \n";
                  html+="        </tr> \n";
                    if(CentralID.length>=10){
                      html+="        <tr> \n";
                      html+="          <td align=\"left\" >&nbsp;&nbsp;&nbsp;";
                      html+="          <a href=\"javascript:void(0)\" onclick=\"myStation();\">ฟังเพลง my station</a></td> \n";
                      html+="        </tr> \n";
                    }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/jukebox/jkhome.jsp')\">Jukebox</a></td> \n";
                  html+="        </tr> \n";
                   if(CentralID.length>=10){
                        if(TrueCustomer=="0"){
                        html+="        <tr> \n";
                        html+="          <td align=\"left\">&nbsp;&nbsp;&nbsp;";
                        html+="          <a href=\"javascript:void(0)\" onclick=\"jukeboxPlayer();\">ฟังเพลง jukebox</a></td> \n";
                        html+="        </tr> \n";
                        }
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/chart/home.jsp')\">TrueMusic Chart</a></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr>";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/service/artistsearch.jsp')\">ศิลปิน</a></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/mv/mvhome.jsp')\">มิวสิควีดีโอ</a></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/news/newshome.jsp')\">ข่าวและสกู๊ป</a></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/concert/home.jsp')\">คอนเสิร์ต</a></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  html+="     <tr> \n";
                  html+="          <td align=\"left\" valign=\"middle\"><a href=\"http://audition.truelife.com/\">ทรู ออดิชั่น</a></td> \n";
                  html+="        </tr> \n";
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //html+="     <tr> \n";
                  //html+="          <td align=\"left\" valign=\"middle\"><a href=\"http://truemusic.truelife.com/fullsong\">FullSong Download</a></td> \n";
                  //html+="        </tr> \n";
                  //html+="        <tr> \n";
                  //html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  //html+="        </tr> \n";
          }else{
                  if(menu=="11"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><b><font color=\"red\">Music Store</font></b></td> \n";
                          html+="        </tr> \n";
                  }else{
                          html+="     <tr> \n";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/musicstore')\">Music Store</a></td> \n";
                          html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  if(menu=="9"){
                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" valign=\"middle\"><b><font color=\"red\">NET RADIO</font></b></td> \n";
                        html+="        </tr> \n";
                  }else{
                        html+="        <tr> \n";
                        html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/publicStation.jsp')\">NET RADIO</a></td> \n";
                        html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //alert(menu);
                  if(menu=="2"){
                    if(MyStation=="true"){
                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" valign=\"middle\"><b><font color=\"red\">My Station</font></b></td> \n";
                        html+="        </tr> \n";
                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;";
                        html+="          <a href=\"javascript:void(0)\" onclick=\"myStation();\">ฟังเพลง my station</a></td> \n";
                        html+="        </tr> \n";

                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;";
                        html+="          <a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/mysongs.jsp')\">เพลงที่ชอบ</a></td> \n";
                        html+="        </tr> \n";

                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;";
                        html+="          <a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/myalbumrate.jsp')\" >อัลบัมที่ชอบ</a></td> \n";
                        html+="        </tr> \n";

                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;";
                        html+="          <a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/myartistrate.jsp')\" >ศิลปินที่ชอบ</a></td> \n";
                        html+="        </tr> \n";

                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;";
                        html+="          <a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/editgenre.jsp')\">แนวเพลงที่ชอบ</a></td> \n";
                        html+="        </tr> \n";
                    }else{
                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/editgenre.jsp')\">My Station</a></td> \n";
                        html+="        </tr> \n";
                        html+="        <tr bgcolor=\"#000000\"> \n";
                        html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;";
                        html+="          <a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/createStation.jsp')\">สร้างสถานีเพลง</a></td> \n";
                        html+="        </tr> \n";
                    }
                  }else{
                    html+="        <tr > \n";
                    html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/msstation/editgenre.jsp')\">My Station</a></td> \n";
                    html+="        </tr> \n";
                    if(CentralID.length>=10){
                    html+="        <tr> \n";
                    html+="          <td align=\"left\" >&nbsp;&nbsp;&nbsp;";
                    html+="          <a href=\"javascript:void(0)\" onclick=\"myStation();\">ฟังเพลง my station</a></td> \n";
                    html+="        </tr> \n";
                    }
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //alert(menu);
                  if(menu=="3"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><b><font color=\"red\">Jukebox</font></b></td> \n";
                          html+="        </tr> \n";
                          if(TrueCustomer=="0"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;";
                          html+="          <a href=\"javascript:void(0)\" onclick=\"jukeboxPlayer();\">ฟังเพลง jukebox</a></td> \n";
                          html+="        </tr> \n";
                          }
                  }else{
                          html+="        <tr> \n";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/jukebox/jkhome.jsp')\">Jukebox</a></td> \n";
                          html+="        </tr> \n";
                         if(CentralID.length>=10){
                            if(TrueCustomer=="0"){
                            html+="        <tr> \n";
                            html+="          <td align=\"left\">&nbsp;&nbsp;&nbsp;";
                            html+="          <a href=\"javascript:void(0)\" onclick=\"jukeboxPlayer();\">ฟังเพลง jukebox</a></td> \n";
                            html+="        </tr> \n";
                            }
                        }
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  if(menu=="10"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><a href=\"javascript:openURL('http://truemusic.truelife.com/chart/home.jsp')\"><b><font color=\"red\">TrueMusic Chart</font></b></a></td> \n";
                          html+="        </tr> \n";
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" valign=\"middle\">&nbsp;&nbsp;&nbsp;<a href=\"javascript:openURL('http://truemusic.truelife.com/chart/music_more.jsp?page=1')\">True Hits Music</a></td> \n";
                          html+="        </tr> \n";
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" valign=\"middle\">&nbsp;&nbsp;&nbsp;<a href=\"javascript:openURL('http://truemusic.truelife.com/chart/mv_more.jsp?page=1')\">True Hits MV</a></td> \n";
                          html+="        </tr> \n";
                  }else{
                          html+="        <tr> \n";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/chart/home.jsp')\">TrueMusic Chart</a></td> \n";
                          html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //alert(menu);
                  if(menu=="1"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><a href=\"javascript:openURL('http://truemusic.truelife.com/service/artistsearch.jsp')\">";
                          html+="          <b><font color=\"red\">ศิลปิน </font></b></a></td> \n";
                          html+="        </tr> \n";
                          if (guid!=""){
                                  if(smenu=="10"){
                                          html+="        <tr bgcolor=\"#000000\"> \n";
                                          html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/artist.jsp?guid="+guid+"\">";
                                          html+="          <b><font color=\"red\">ศิลปิน</font></b></a></td> \n";
                                          html+="        </tr> \n";
                                  }else{
                                          html+="        <tr>";
                                          html+="          <td align=\"left\" valign=\"middle\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/artist.jsp?guid="+guid+"\">ศิลปิน</a></td> \n";
                                          html+="        </tr> \n";
                                  }
                                  if(smenu=="11"){
                                          html+="        <tr bgcolor=\"#000000\"> \n";
                                          html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/albums.jsp?guid="+guid+"\">";
                                          html+="          <b><font color=\"red\">อัลบัม</font></b></a></td> \n";
                                          html+="        </tr> \n";
                                  }else{
                                          html+="        <tr>";
                                          html+="          <td align=\"left\" valign=\"middle\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/albums.jsp?guid="+guid+"\">อัลบัม</a></td> \n";
                                          html+="        </tr> \n";
                                  }
                                  if(smenu=="12"){
                                          html+="        <tr bgcolor=\"#000000\"> \n";
                                          html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/mv.jsp?guid="+guid+"\">";
                                          html+="          <b><font color=\"red\">มิวสิค</font></b></a></td> \n";
                                          html+="        </tr> \n";
                                  }else{
                                          html+="        <tr>";
                                          html+="          <td align=\"left\" valign=\"middle\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/mv.jsp?guid="+guid+"\">มิวสิค</a></td> \n";
                                          html+="        </tr> \n";
                                  }
                                  if(smenu=="13"){
                                          html+="        <tr bgcolor=\"#000000\"> \n";
                                          html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/relate.jsp?guid="+guid+"\">";
                                          html+="          <b><font color=\"red\">ศิลปิน Relate</font></b></a></td> \n";
                                          html+="        </tr> \n";
                                  }else{
                                          html+="        <tr>";
                                          html+="          <td align=\"left\" valign=\"middle\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/relate.jsp?guid="+guid+"\">ศิลปิน Relate</a></td> \n";
                                          html+="        </tr> \n";
                                  }
                                  if(smenu=="14"){
                                          html+="        <tr bgcolor=\"#000000\"> \n";
                                          html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/station.jsp?guid="+guid+"\">";
                                          html+="          <b><font color=\"red\">สถานีเพลง</font></b></a></td> \n";
                                          html+="        </tr> \n";
                                  }else{
                                          html+="        <tr>";
                                          html+="          <td align=\"left\" valign=\"middle\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/station.jsp?guid="+guid+"\">สถานีเพลง</a></td> \n";
                                          html+="        </tr> \n";
                                  }
                                  if(smenu=="15"){
                                          html+="        <tr bgcolor=\"#000000\"> \n";
                                          html+="          <td align=\"left\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/news.jsp?guid="+guid+"\">";
                                          html+="          <b><font color=\"red\">ข่าว</font></b></a></td> \n";
                                          html+="        </tr> \n";
                                  }else{
                                          html+="        <tr>";
                                          html+="          <td align=\"left\" valign=\"middle\" bgcolor=\"#000000\">&nbsp;&nbsp;&nbsp;<a href=\"http://truemusic.truelife.com/artist/news.jsp?guid="+guid+"\">ข่าวและสกู๊ป</a></td> \n";
                                          html+="        </tr> \n";
                                  }
                          }
                  }else{
                          html+="        <tr>";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/service/artistsearch.jsp')\">ศิลปิน </a></td> \n";
                          html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //alert(menu);
                  if(menu=="4"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><a href=\"javascript:openURL('http://truemusic.truelife.com/mv/mvhome.jsp')\"><b><font color=\"red\">มิวสิควีดีโอ</font></b></a></td> \n";
                          html+="        </tr> \n";
                  }else{
                          html+="        <tr> \n";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/mv/mvhome.jsp')\">มิวสิควีดีโอ</a></td> \n";
                          html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //alert(menu);
                  if(menu=="6"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><b><font color=\"red\">ข่าวและสกู๊ป</font></b></td> \n";
                          html+="        </tr> \n";
                  }else{
                          html+="     <tr> \n";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/news/newshome.jsp')\">ข่าวและสกู๊ป</a></td> \n";
                          html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //alert(menu);
                  if(menu=="8"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><b><font color=\"red\">คอนเสิร์ต </font></b></td> \n";
                          html+="        </tr> \n";
                  }else{
                          html+="     <tr> \n";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"javascript:openURL('http://truemusic.truelife.com/concert/home.jsp')\">คอนเสิร์ต </a></td> \n";
                          html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //alert(menu);
                  if(menu=="5"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><b><font color=\"red\">ทรู ออดิชั่น</font></b></td> \n";
                          html+="        </tr> \n";
                  }else{
                          html+="     <tr> \n";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"http://audition.truelife.com\">ทรู ออดิชั่น</a></td> \n";
                          html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/line1.gif\" width=\"168\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
                  //alert(menu);
                  if(menu=="10"){
                          html+="        <tr bgcolor=\"#000000\"> \n";
                          html+="          <td align=\"left\" bgcolor=\"#000000\"><b><font color=\"red\">FullSong Download</font></b></td> \n";
                          html+="        </tr> \n";
                  }else{
                          html+="     <tr> \n";
                          html+="          <td align=\"left\" valign=\"middle\"><a href=\"http://truemusic.truelife.com/fullsong\">FullSong Download</a></td> \n";
                          html+="        </tr> \n";
                  }
                  html+="        <tr> \n";
                  html+="          <td><img src=\"http://truemusic.truelife.com/images/spacer.gif\" height=\"2\"></td> \n";
                  html+="        </tr> \n";
          }
          html+="      </table>";
          html+=" <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#310100\" > \n";
          html+=" <tr> \n";
          html+="   <td height=\"10\" background=\"http://truemusic.truelife.com/images/footter_submenu_02.gif\"></td> \n";
          html+=" </tr> \n";
          html+=" </table> \n";
          // +++++++++++++++++++++++++++++++++++++++++++++ adv +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

          html+="<table width=\"100%\" bgcolor=\"#000000\">\n";
          html+="  <tr> \n";
          html+="    <td align=\"center\">\n";
          html+="	<a href=\"javascript:void(0)\" onclick=\"window.open('http://trueworld.truelife.com/windowsmedia.html','_blank','directories=no,scrollbars=no,width=650,height=690,left=0,top=0')\">";
          html+="	<img src=\"http://truemusic.truelife.com/images/ic_win9.gif\" border=\"0\"></a> \n";
          html+="  </tr>\n";
		  html+="<tr><td><img src=\"http://truemusic.truelife.com/images/spacer.gif\" height=\"5\"></td></tr>";
		  html+="<tr><td><script language=\"JavaScript\">writeHtmlTable();</script></td></tr>";
          // +++++++++++++++++++++++++++++++++++++++++++++ adv +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          document.write(html);
  }

  function Footer(){
          var html="";
          html+="	<TABLE cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" border=\"0\">\n";
          html+="  <TR>\n";
          html+="    <TD width=\"10\"></TD>\n";

          html+="    <TD vAlign=\"center\" align=\"middle\" background=\"http://truemusic.truelife.com/images/bgfooter_02.gif\" width=\"100%\">\n";
          html+="      <TABLE cellSpacing=\"0\" cellPadding=\"3\" border=\"0\" width=\"100%\">\n";
          html+="        <TR align=\"middle\">\n";
          html+="          <TD class=\"smalltext\"><span onClick=\"window.open('http://trueworld.truelife.com/TOS/TOS.html','TOS','directories=no,scrollbars=no,width=760,height=675,left=100,top=5');\" style=\"cursor:pointer\">TERMS OF SERVICES</span> | <span onClick=\"window.open('http://trueworld.truelife.com/CTU/CTU.html','CTU','directories=no,scrollbars=no,width=450,height=400,left=100,top=50');\" style=\"cursor:pointer\">CONTACT US</span></TD>\n";
          html+="        </TR>\n";
          html+="        <TR align=\"middle\">\n";
          html+="          <TD class=\"style2\">Copyright @ True Digital Entertainment. All rights reserved.</TD>\n";
          html+="        </TR>\n";
          html+="      </TABLE>\n";
          html+="    </TD>\n";

          html+="    <TD width=\"10\"></TD>\n";
          html+="  </TR>\n";
          html+="</TABLE>\n";

          document.write(html);
  }

function clickIE() {
	if (document.all) {
		return false;
	}
}

  function clickNS(e) {
          if (document.layers||(document.getElementById&&!document.all)) {
                  if (e.which==2||e.which==3) {
                          return false;
                  }
          }
  }


  if (document.layers) {
          document.captureEvents(Event.MOUSEDOWN);
          document.onmousedown=clickNS;
  } else{
          document.onmouseup=clickNS;
          document.oncontextmenu=clickIE;
  }

  document.oncontextmenu=new Function("return false")

