/*
	NOSECONDMOUSE v.1.1b
	(c) Gabriel Suchowolski power[z]one / www.microbians.com / powerz@microbians.com
	Distributed under the terms of the GNU LGPL license (www.gnu.org)
	Available at http://www.microbians.com
*/

function NSclick(e) {
	if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) { 
		if (e.which == 3) {
			return false;
		}
	}
	if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=5) { 
    		if (e.button == 2 || e.button == 3) {
      			e.preventDefault();
			return false;
  		}
	}
}

if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) { 
	document.onmousedown=NSclick;
	document.captureEvents(Event.MOUSEDOWN);
}
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=5) { 
	document.onmouseup=NSclick;
}
if (navigator.appName=="Microsoft Internet Explorer") { 
	document.oncontextmenu = new Function("return false;")
}

//cambio de color página
function fColor1(){document.bgColor="#ffffff";}
function fColor2(){document.bgColor="#fdf0ce";}
function fColor3(){document.bgColor="#DCC152";}
function fColor4(){document.bgColor="#FE9366";}
function fColor5(){document.bgColor="#F0AC64";}
function fColor6(){document.bgColor="#82A9BD";}
function fColor7(){document.bgColor="#373737";}

//ventana
function winPop(url,ventana,ancho,alto,scroll) {
    var pX = (screen.width - ancho) / 2;
    var pY = (screen.height - alto) / 2;		
    var ventana = window.open(url,ventana,"width=" + ancho + ",height=" + alto + ",status=0,resizable=0,scrollbars="+ scroll +",location=0,toolbar=0,left=" + pX + ",top=" + pY + "");
}