//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.');
	}
}


//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
}*/
