function menu_inicio(logo) {

  var msg;
  msg ="";
  
  msg = msg + "<div align='center'>";
  msg = msg + "<table border='0' width='100%' bordercolor='#560303'";
  msg = msg + "<tr bordercolor='#000000'>";
  msg = msg + "<td bordercolorlight='#560303' bgcolor='#000000' align='center'>";
  msg = msg + "<img src='" + logo + "'></a>";
  /*msg = msg + "</td></tr>";

  msg = msg + "<tr bordercolor='#000000'>";
  msg = msg + "<td bordercolorlight='#663300' class='text'>";*/
  msg = msg + "<br>";
/*  msg = msg + "<table width='95%' align='center' border='1' bordercolor='#560303' cellspacing='10px' cellpadding='10px'>";
  msg = msg + "<tr bordercolor='#000000'>"; */

  document.write(msg);  
}


function menu_geral(lang, loc){
  var msg;
  msg ="";

/*  if (lang=="pt")
  {
	b = "ENTREVISTAS & ARTIGOS";
	c = "ADQUIRIR CDs";
  }

  if (lang=="eng")
  {
	b = "INTERVIEWS & ARTICLES";
	c = "BUY CDs";
  }
*/
  msg = msg + "<table width='100%' bgcolor='#111111'>";
  msg = msg + "	<tr>";
  msg = msg + "<td width='50%' align='left' class='text' valign='middle'>";
  msg = msg + "<a href='" + loc + "index.html'> HOME </a> ::";
  msg = msg + "<a href='" + loc + "index.html'> PROJECTS </a> ";
 // msg = msg + "<a href='gr_interviews.htm'> " + b + "</a> ::";
 // msg = msg + "<a href='" + loc + "gr_distributors.htm'> " + c + "</a> :: ";
 // msg = msg + "<a href='" + loc + "gr_links.htm'> LINKS </a>";
  msg = msg + "</td>";
  msg = msg + "<td width='50%' class='text' align='right' valign='middle'>";
  msg = msg + "<form method='get' action='http://launch.groups.yahoo.com/subscribe/projectcreation'>Join our <a target=_'new' href='http://blog.myspace.com/index.cfm?fuseaction=blog.ConfirmSubscribe&friendID=59014352'>Blog</a> at MySpace&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;Join Fan Club";
  msg = msg + "&nbsp;<input type='text' name='user' class='textBlack_s' value='enter email address' size='20'>";
  msg = msg + "&nbsp;<input type=submit size=15 name='Click here to join sonic_pulsar' class='textBlack_s' value=JOIN />";
  msg = msg + "</form> ";
  msg = msg + "	  </td>";
  msg = msg + "	 </tr>";
  msg = msg + "	</table>";
   msg = msg + "	  </td>";
   	
  document.write(msg);
}

function menu_geral_fd_su(lang, loc){
  var msg;
  msg ="";

  if (lang=="pt")
  {
	b = "ENTREVISTAS & ARTIGOS";
	c = "ADQUIRIR CDs";
  }

  if (lang=="eng")
  {
	b = "INTERVIEWS & ARTICLES";
	c = "BUY CDs";
  }

  msg = msg + "<table width='100%' bgcolor='#111111'>";
  msg = msg + "	<tr>";
  msg = msg + "<td width='50%' align='left' class='text' valign='middle'>";
  msg = msg + "<a href='" + loc + "index.html'> Hugo Flores' HOME Page</a> ::";
  msg = msg + "<a href='prj_fd_2_rec.htm'> Recording Sessions </a> ::";
  msg = msg + "<a href='prj_fd_2.htm'> Album Info </a> ";
  msg = msg + "</td>";
  msg = msg + "<td width='50%' class='text' align='right' valign='middle'>";
  msg = msg + "<form method='get' action='http://launch.groups.yahoo.com/subscribe/projectcreation'>Join our <a target=_'new' href='http://blog.myspace.com/index.cfm?fuseaction=blog.ConfirmSubscribe&friendID=59014352'>Blog</a> at MySpace&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;Join Fan Club";
  msg = msg + "&nbsp;<input type='text' name='user' class='textBlack_s' value='enter email address' size='20'>";
  msg = msg + "&nbsp;<input type=submit size=15 name='Click here to join sonic_pulsar' class='textBlack_s' value=JOIN />";
  msg = msg + "</form> ";
  msg = msg + "	  </td>";
  msg = msg + "	 </tr>";
  msg = msg + "	</table>";
   msg = msg + "	  </td>";
   	
  document.write(msg);
}


function menu_prj(lang, loc){
  var msg;
  msg ="";

  if (lang=="pt")
  {
	d = "ALBUNS A SOLO";
	e = "OUTROS PROJECTOS";
	f = "Projectos: ";
	g = "COMPILAÇÕES";
	h = "PROJECTOS LITERARIOS";
  }

  if (lang=="eng")
  {
	d = "SOLO ALBUNS";
	e = "SIDE-PROJECTS";
	f = "Projects: ";
	g = "COMPILATIONS";
	h = "WRITTING PROJECTS";
  }
  
  msg = msg + "<td class='text' width='50%' align='center' bordercolordark='#FFC890'>" + f ;
  msg = msg + "<a href='" + loc + "prj_sp.htm'> SONIC PULSAR </a> ::";
  msg = msg + "<a href='" + loc + "prj_cr.htm'> PROJECT CREATION </a> ::";
  msg = msg + "<a href='" + loc + "prj_as.htm'> " + d  + "</a> :: ";
  msg = msg + "<a href='" + loc + "prj_otr.htm'> " + e + "</a> :: ";
  msg = msg + "<a href='" + loc + "prj_cpl.htm'> " + g + "</a> :: ";
  msg = msg + "<a href='" + loc + "prj_lit_solitary_eng.htm'> " + h + "</a><br><br>";
  msg = msg + "</td>";
  	
  document.write(msg);
}


function menu_fim(){
  var msg;
  msg ="";

  msg = msg + "</tr>";
  msg = msg + "</table>";
  	
  document.write(msg);
}

/*function PopUp(nomePg){ 
  var remote
  remote=null;
  remote = window.open (nomePg, "conWindow", "toolbar=no,width=340,height=400,directories=no,status=no,resize=no,menubar=no,minimize=no,scrollbars=yes");
  if (remote != null)
    remote.location.href = nomePg;
}*/


function PopUp(nomePg){ 
  var remote
  remote=null;
  propriet = "toolbar=no,width=340,height=400,location=no,directories=no,status=no,resize=no,menubar=no,minimize=no,scrollbars=yes"
  remote = window.open (nomePg, "new", propriet);
  if (remote != null)
    remote.location.href = nomePg;
}

function PopUpXL(nomePg){ 
  var remote
  remote=null;
  propriet = "toolbar=no,width=650,height=450,location=no,directories=no,status=no,resize=no,menubar=no,minimize=no,scrollbars=yes"
  remote = window.open (nomePg, "new", propriet);
  if (remote != null)
    remote.location.href = nomePg;
}

function PopUpXL2(nomePg){ 
  var remote
  remote=null;
  propriet = "toolbar=no,width=820,height=450,location=no,directories=no,status=no,resize=no,menubar=no,minimize=no,scrollbars=yes"
  remote = window.open (nomePg, "new", propriet);
  if (remote != null)
    remote.location.href = nomePg;
}


function PopUp2(nomePg,texto){ 
  var remote
  remote=null;
  remote = window.open (nomePg, "conWindow", "toolbar=no,width=340,height=400,directories=no,status=no,resize=no,menubar=no,minimize=no,scrollbars=yes");
  if (remote != null)
    remote.location.href = nomePg;
  document.write (texto);
}



/************************
* No rigth click

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

************************/

var message="Sonic Pulsar Copyrighted";

function clickIE4(){
  if (event.button==2){
	alert("event.button: "+event.button);
    alert(message);
    return false;
  }
}

function clickNS4(e){
  if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
	alert("e.which: "+e.which);
      alert(message);
      return false;
    }
  }
}

function rigthClick ()
{
  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
  }
  else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
  }
  document.oncontextmenu=new Function("alert(message);return false")
  document.oncontextmenu.saveas 
}


function topo(lang) {
  var msg;
  msg ="";

  if (lang=="pt")
	a = "topo";

  if (lang=="eng")
	a = "top";
  
  msg = msg + "<a href='#top'>" + a + "</a>" ;
  	
  document.write(msg);
}


function projectos(){
  frame=20;

  var delay=2000; //set delay between message change (in miliseconds)
  var fcontent=new Array();

  begintag="<p class=text2>";//set opening tag, such as font declarations
  fcontent[0]="BEM VINDO ao Site oficial dos Sonic Pulsar";
  fcontent[1]="PTU está disponível através das lojas e distribuídoras indicadas no site.";
  fcontent[2]="Os Sonic Pulsar assinaram contrato com a Mellow Records. O fabuloso album OUT OF PLACE já saiu! Podem adquiri-lo em www.btf.it"; 
  fcontent[3]="Out of Place - 70 minutos de incrível música, som, imagens e uma história em notas musicais!  <a class=menu2 href=spDiscographyOPDetails.htm>\"Out of Place\"</a>.";
  fcontent[4]="Um abraço a todos!";
  closetag="</p>";


  var ie4=document.all&&!document.getElementById;
  var ns4=document.layers;
  var DOM2=document.getElementById;
  var faderdelay=0;
  var index=0;

  if (DOM2)
      faderdelay=3000;
  
  if (ie4||DOM2)
    document.write("<div id='fscroller' style='border:0px solid #ddbb88; width:180px; height:100px;padding:8px;'></div>");
  
  tempo = delay+faderdelay;
  changecontent (fcontent,index,begintag,closetag,frame,DOM2,ie4,ns4,tempo);

  document.write("<ilayer id='fscrollerns' width='180px' height='100px'><layer id='fscrollerns_sub' width='180px' height='100px' left=0 top=0></layer></ilayer>");    
}


function changecontent(fcontent,index,begintag,closetag,frame,DOM2,ie4,ns4,tempo){

document.write ("<u>fcontent:</u> " + fcontent + "<br>"); 
document.write ("<u>index:</u> " + index + "<br>"); 
document.write ("<u>begintag:</u> " + begintag + "<br>"); 
document.write ("<u>closetag:</u> " + closetag + "<br>"); 
document.write ("<u>frame:</u> " + frame + "<br>"); 
document.write ("<u>index:</u> " + index + "<br>"); 
document.write ("<u>DOM2:</u> " + DOM2 + "<br>"); 
document.write ("<u>ie4:</u> " + ie4 + "<br>"); 
document.write ("<u>ns4:</u> " + ns4 + "<br>"); 
document.write ("<u>tempo:</u> " + tempo + "<br>"); 

  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag;
    linksobj=document.getElementById("fscroller").getElementsByTagName("A");
  }

  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  else if (ns4){
    document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag);
    document.fscrollerns.document.fscrollerns_sub.document.close();
  }

  index = index + 1;
  setTimeout('changecontent(fcontent,index,begintag,closetag,frame,DOM2,ie4,ns4,tempo)',tempo);
}
