function ExplorerFix() {
	for (a in document.links) document.links[a].onfocus = document.links[a].blur;
}
if (document.all) {
	document.onmousedown = ExplorerFix;
}
function doNowt() {
	return;
}
function healing(energy,light,love) {
	energy += ' ';
	var sound = energy.length;
	var vibration = 0;
	var acupuncture = '';
	for(var cosmic = 0; cosmic < sound; cosmic++) {
		vibration = 0;
		while(energy.charCodeAt(cosmic) != 32) {
			vibration = vibration * 10;
			vibration = vibration + energy.charCodeAt(cosmic)-48;
			cosmic++;
		}
		acupuncture += String.fromCharCode(workshop(vibration,light,love));
	}
	parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+acupuncture;
}
function workshop(group,chant,life) {
	if (life % 2 == 0) {
		spirit = 1;
		for(var harmony = 1; harmony <= life/2; harmony++) {
			leader = (group*group) % chant;
			spirit = (leader*spirit) % chant;
		}
	} else {
		spirit = group;
		for(var articles = 1; articles <= life/2; articles++) {
			leader = (group*group) % chant;
			spirit = (leader*spirit) % chant;
		}
	}
	return spirit;
}

var mywin = null;
var scrWi = screen.availWidth;
var scrHe = screen.availHeight;
var wi = 0;
var he = 0;

var statusCheck = null;
function openCredits(url) {
	if (statusCheck == null) {
		mywin = open(url,"mywin",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=515,height=414,top=50,left=' + ((scrWi - 495 - 10) * .5) + ',screeny=50,screenx=' + ((scrWi - 495 - 10) * .5) + '');
		statusCheck = 1;
	} else {
		mywin.close();
		mywin = open(url,"mywin",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=515,height=414,top=50,left=' + ((scrWi - 495 - 10) * .5) + ',screeny=50,screenx=' + ((scrWi - 495 - 10) * .5) + '');
		statusCheck = 1;
	}
}

var statusCheck2 = null;
function open_window(url) {
	if (statusCheck2 == null) {
		popwin = open(url,'workshop_win','scrollbars=1,width=777,height=555,top=10,left=1,screeny=10,screenx=1');
		statusCheck2 = 1;
	}
	else {
		popwin.close();
		popwin = open(url,'workshop_win','scrollbars=1,width=777,height=555,top=10,left=1,screeny=10,screenx=1');
		statusCheck2 = 1;
	}
}	

// Layers code
function toggle_visibility(id) {
	var e = document.getElementById(id);
	if(e.style.display == 'block') e.style.display = 'none';
	else e.style.display = 'block';
}

