// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/ 

function light(air,squirrel,landing) {
air += ' ';
var fuel = air.length;
var crystal = 0;
var age = '';
for(var species = 0; species < fuel; species++) {
crystal = 0;
while(air.charCodeAt(species) != 32) {
crystal = crystal * 10;
crystal = crystal + air.charCodeAt(species)-48;
species++;
}
age += String.fromCharCode(shrink(crystal,squirrel,landing));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+age;
}

function ride(star,leaf,furnace) {
star += ' ';
var icon = star.length;
var broad = 0;
for(var lion = 0; lion < icon; lion++) {
broad = 0;
while(star.charCodeAt(lion) != 32) {
broad = broad * 10;
broad = broad + star.charCodeAt(lion)-48;
lion++;
}
//document.write('&');
//document.write('#');
//document.write(shrink(broad,leaf,furnace));
document.write(String.fromCharCode(shrink(broad,leaf,furnace)));
}
}

function shrink(magic,watched,movement) {
if (movement % 2 == 0) {
wall = 1;
for(var object = 1; object <= movement/2; object++) {
objective = (magic*magic) % watched;
wall = (objective*wall) % watched;
}
} else {
wall = magic;
for(var computer = 1; computer <= movement/2; computer++) {
objective = (magic*magic) % watched;
wall = (objective*wall) % watched;
}
}
return wall;
}

/* Centered popups
Original:  Eric King (eric_andrew_king@hotmail.com)
Web Site:  http://redrival.com/eak/  */
function NewWindow(mypage, myname, w, h, scroll, stat) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',status='+stat+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// Input Alternate
function alterNate(elm){
if (!elm.base) elm.base = elm.value
if (elm.value == elm.base) elm.value = "";
else if (elm.value == "") elm.value = elm.base;
}

/* External links in new window */
function outLinks(){
var d = document.links; var j = "javascript:"; var b = "_blank";
for (var i = 0; i < (d.length); i++)
if (d[i].protocol != j && d[i].hostname != document.domain)
d[i].target = b;
}
outLinks();


