function openwin(){
	window.open("http://www.myrunescapemoney.com/cheapest.htm","displayWindow","toolbar=no,width=500,height=350,directories=no,status=no,scrollbars=yes,resize=no,menubar=no");
}
window.onload=function(){
	var _obj = document.getElementsByTagName("A");
	for(i=0;i<_obj.length;i++){
		_obj[i].onfocus=function(){
			this.blur();
		}
	}
	var _input = document.getElementsByTagName("INPUT");
	for(i=0;i<_input.length;i++){
		_name = _input[i].getAttribute("TYPE").toLowerCase();
		if(_name=="text"||_name=="password"){
			_input[i].className = "c1";
			_input[i].onfocus=function(){
				this.className = "c0";
			};
			_input[i].onblur=function(){
				this.className = "c1";
			};
		}
	}
	if(document.getElementById("p1")){
		setVariables();
		checkLocation();
	}
}
function JM_cc(ob){
	var obj=document.getElementById(ob); if (obj) { 
	obj.select();js=obj.createTextRange();js.execCommand("Copy");}
}
function setVariables() {
	imgwidth=80;
	imgheight=80;
	if (navigator.appName == "Netscape") {
		horz=".left";
		vert=".top";
		docStyle="document.";
		styleDoc="";
		innerW="window.innerWidth";
		innerH="window.innerHeight";
		offsetX="window.pageXOffset";
		offsetY="window.pageYOffset";
	} else {
		horz=".pixelLeft";
		vert=".pixelTop";
		docStyle="";
		styleDoc=".style";
		innerW="document.body.clientWidth";
		innerH="document.body.clientHeight";
		offsetX="document.body.scrollLeft";
		offsetY="document.body.scrollTop";
	}
}
function checkLocation() {
	objectXY="p1";
	var availableX=eval(innerW);
	var availableY=eval(innerH);
	var currentX=eval(offsetX);
	var currentY=eval(offsetY);
	x=availableX-(imgwidth+20)+currentX;
	y=availableY-(imgheight+20)+currentY;
	evalMove();
	setTimeout("checkLocation()",100);
}
function evalMove() {
	eval("document.getElementById('" + objectXY + "')" + styleDoc + horz + "=" + x);
	eval("document.getElementById('" + objectXY + "')" + styleDoc + vert + "=" + y);
}