//BARRA DE ESTADO
window.status = 'EXPO ROCK 2010';
function ini() {
	for (i=0; e = document.links[i]; i++)
	e.onmouseover = function() {window.status = 'EXPO ROCK 2010'; return true}
}

//ABRIR VENTANA
function cmsOpenPopup(href, name, width, height, x, y, menu, status, scroll, loc, resize, title, toolbar)
{
		
	var attributes = '';
		if (width.length > 0) attributes = attributes + ',width=' + width;
		if (height.length > 0) attributes = attributes + ',height=' + height;
		if (x.length > 0) attributes = attributes + ',screenx=' + x;
		if (x.length > 0) attributes = attributes + ',left=' + x;
		if (y.length > 0) attributes = attributes + ',screeny=' + y;
		if (y.length > 0) attributes = attributes + ',top=' + y;
		attributes = attributes + ',menubar=' + (menu==1?'yes':'no');
		attributes = attributes + ',status=' + (status==1?'yes':'no');
		attributes = attributes + ',scrollbars=' + (scroll==1?'yes':'no');
		attributes = attributes + ',location=' + (loc==1?'yes':'no');
		attributes = attributes + ',titlebar=' + (title==1?'yes':'no');
		attributes = attributes + ',toolbar=' + (toolbar==1?'yes':'no');
		attributes = attributes + ',resizable=' + (resize==1?'yes':'no');
		attributes = attributes.substring(1,attributes.length);
		var cmsPopup = window.open(href, name, attributes)
}


//ABRIR IMAGEN
function abrir_imagen_directa(imagen,pie,Ancho,Alto)
{
	MasAlto=Alto+0;
	features = "width="+Ancho+",height="+MasAlto;
	//path_imagen= "/common/imagen_directa.htm?img="+imagen+"&pie="+pie+"&w="+Ancho+"&h="+Alto;
	w_new = window.open("",Ancho+Alto,features);
	w_new.document.write("<html>");
	w_new.document.write("<head>");
	w_new.document.write("<title>EXPO ROCK 2010"+pie+"</title>");
	w_new.document.write("<LINK href=\"style_imgs.css\" type=text/css rel=stylesheet>");
	w_new.document.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
	w_new.document.write("</head>");
	w_new.document.write("<body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 bgcolor=#000000 oncontextmenu=\"return false;\">");
	w_new.document.write("<div class=\"logo_img_top\"><span></span></div>");
	w_new.document.write("<div class=\"logo_img_bot\"><span></span></div>");
	w_new.document.write("<table border=0 bgcolor=#000000 cellpadding=0 cellspacing=0 vspace=0 hspace=0>");
	w_new.document.write("<tr>");
	w_new.document.write("<td bgcolor=#000000>");
	w_new.document.write("<img src='");
	w_new.document.write(imagen + "'");
	w_new.document.write(" width='");
	w_new.document.write(Ancho + "'");
	w_new.document.write(" height='");
	w_new.document.write(Alto + "'");
	w_new.document.write(" alt=");
	w_new.document.write(pie);
	w_new.document.write("></td>");
	w_new.document.write("</tr>");
	w_new.document.write("</table>");
	w_new.document.write("</body>");
	w_new.document.write("</html>");
}


//GUARDAR PAGINA
function doSaveAs()
{
	if (document.execCommand)
	{
		document.execCommand("SaveAs");
	} else
	{
		alert('Tu navegador no soporta esta función.');
	}
}

//CAMBIAR MENU (CLIC DERECHO)

///////////////////////////////////////////////////////////////////////////////
//   ..:: realMenu v1.27 ::..
// copyright © jordan neill 2000
// Script featured on JavaScript Kit (http://javascriptkit.com)
//
// change the menuItems array with your options and set the urls to link to
//  use addMenuItem("Text to show", "Url To Link To"); to make an item
//  use addMenuItem("Text", Url", "Img To Show"); to make an item with an image
//  use addMenuItem(); to indicate a separator bar
//  you can use html tags in the text, eg, <i>, <b> or <u>
//
// images used should be 16x16 transparent gifs
///////////////////////////////////////////////////////////////////////////////

 menuItems = new Array();
 menuItemNum = 0;

 function addMenuItem(text, url, img){
  if(img) menuItems[menuItemNum] = new Array(text, url, img);
  else if(text) menuItems[menuItemNum] = new Array(text, url);
  else menuItems[menuItemNum] = new Array();
  menuItemNum++;
 }

 menuWidth = 235; //menu width
 menuHeight = 201; //menu height
 menuDelay = 50; //delay before menu appears
 menuSpeed = 8; //speed which menu appears (lower=faster)
 menuOffset = 2; //offset of menu from mouse pointer

 addMenuItem("Inicio","index.php");
 addMenuItem("El grupo","elgrupo.php");
 addMenuItem("Noticias","noticias.php");
 addMenuItem("Itineriadio","itinerario.php");
 addMenuItem("Discografía","discografia.php");
 addMenuItem("Fotografías","fotografias.php");
 addMenuItem("La revista","larevista.php");
 addMenuItem("Descargas","descargas.php");
 addMenuItem("Links","links.php");
 addMenuItem("Xpresate","xpresate.php");
 addMenuItem();
 addMenuItem("Copyright © 2008, Bayside Multimedia.","javascript:void(0);");

 ///////////////////////////////////////////////////////////////////////////////
 // do not edit the code below, it is required for the menu to work correctly
 ///////////////////////////////////////////////////////////////////////////////


 if(window.navigator.appName == "Microsoft Internet Explorer" && window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE") + 5, window.navigator.appVersion.indexOf("MSIE") + 8) >= 5.5)
  isIe = 1;
 else
  isIe = 0;

 if(isIe){
  menuContent = '<table id="rightMenu" width="0" height="0" cellspacing="0" cellpadding="0" style="font:menu;color:menutext;"><tr height="1"><td style="background:threedlightshadow" colspan="4"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight" colspan="2"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="10"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"><table cellspacing="0" cellpadding="0" nowrap style="font:menu;color:menutext;cursor:default;">';
  for(m=0;m<menuItems.length;m++){
   if(menuItems[m][0] && menuItems[m][2])
    menuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + menuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap><img src="' + menuItems[m][2] + '"></td><td nowrap>' + menuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
   else if(menuItems[m][0])
    menuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + menuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap></td><td nowrap>' + menuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
   else
    menuContent += '<tr><td colspan="5" height="4"></td></tr><tr><td colspan="5"><table cellspacing="0"><tr><td width="2" height="1"></td><td width="0" height="1" style="background:threedshadow"></td><td width="2" height="1"></td></tr><tr><td width="2" height="1"></td><td width="100%" height="1" style="background:threedhighlight"></td><td width="2" height="1"></td></tr></table></td></tr><tr><td colspan="5" height="3"></td></tr>';
  }
  menuContent += '</table></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedshadow" colspan="3"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threeddarkshadow" colspan="5"></td></tr></table>';

  menuPopup = window.createPopup();
  menuPopup.document.body.innerHTML = menuContent;
 }

 function showMenu(){
  menuXPos = event.clientX + menuOffset;
  menuYPos = event.clientY + menuOffset;

  menuXIncrement = menuWidth / menuSpeed;
  menuYIncrement = menuHeight / menuSpeed;

  menuTimer = setTimeout("openMenu(0,0)", menuDelay);

  return false;
 }


 function openMenu(height, width){
  iHeight = height;
  iWidth = width;

  menuPopup.show(menuXPos, menuYPos, iWidth, iHeight, document.body);

  if(iHeight < menuHeight)
   menuTimer = setTimeout("openMenu(iHeight + menuYIncrement, iWidth + menuXIncrement)", 1);
  else
   clearTimeout(menuTimer);
 }


 if(isIe) document.oncontextmenu = showMenu;


//DESACTIVAR SELECCION
/*function disableselect(e){
//	return false
}

function reEnable(){
	return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar)
{
	document.onmousedown=disableselect
	document.onclick=reEnable
}*/