//var statusbar = 'www.buenosenlaces.com -  Colección de enlaces de calidad revisados permanentemente';function barra(){window.status = statusbar;timerID=setTimeout("barra()", 1);}

function e(url) { 
	link = window.open(url,"Link","toolbar=1,location=1,directories=0,status=0,menubar=1,scrollbars=yes,resizable=1,width=790,height=600,left=0,top=20"); 
	link.focus();
}



function nomenu()
{	event.no = true
	event.yes = false;
	return false;}

function nomouseright(right)
{	if (window.mouse)
	{		if (right.which == 1 || right.which == 2)
			return false;	}
	else
		if (event.button == 1 || event.button == 2)
		{	event.no = true
			event.yes = false;
			return false;	}}


function right(derecho) {



if (navigator.appName == 'Netscape' && 

(e.which == 3 || e.which == 2))

return false;

else if (navigator.appName == 'Microsoft Internet Explorer' && 

(event.button == 2 || event.button == 3)) {

window.external.AddFavorite('http://www.segulab.com', 'Enciclopedia on-line de prevención de riesgos laborales');

return false;

}

return true;

}

document.onmousedown=right;

if (document.layers) window.captureEvents(Event.MOUSEDOWN);

window.onmousedown=right;



function a(url) { 
	link = window.open(url,"Link","toolbar=1,location=1,directories=0,status=0,menubar=1,scrollbars=yes,resizable=1,width=790,height=600,left=0,top=20"); 
	link.focus();
}
function nomenu()
{	event.no = true
	event.yes = false;
	return false;}

function nomouseright(right)
{	if (window.mouse)
	{		if (right.which == 1 || right.which == 2)
			return false;	}
	else
		if (event.button == 1 || event.button == 2)
		{	event.no = true
			event.yes = false;
			return false;	}}



function makepage(src)
{
  // We break the closing script tag in half to prevent
  // the HTML parser from seeing it as a part of
  // the *main* page.

  return "<html>\n" +
    "<head>\n" +
    "<title>Temporary Printing Window</title>\n" +
    "<script>\n" +
    "function step1() {\n" +
    //"  window.print();\n" +
    "  setTimeout('step11()', 1);\n" +
    
    "}\n" +
    "function step11() {\n" +
    "  window.print();\n" +
    "  setTimeout('step2()', 5000);\n" +
    "}\n" +
    "function step2() {\n" +
    //"  window.print();\n" +
    "  window.close();\n" +
    "}\n" +
    "</scr" + "ipt>\n" +
    "</head>\n" +
    "<body onLoad='step1()'>\n" +
    "<img src='" + src + "'/>\n" +
    
    "</body>\n" +
    "</html>\n";
    
}

function printme(evt)
{
  if (!evt) {
    // Old IE
    evt = window.event;
  }    
  var image = evt.target;
  if (!image) {
    // Old IE
    image = window.event.srcElement;
  }
  src = image.src;
  link = "about:blank";
  var pw = window.open(link, "_new");
  pw.document.open();
  pw.document.write(makepage(src));
  //pw.window.print();
  pw.document.close();
}


function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

document.oncontextmenu = function(){return false} 

