/*------------- goo works logo -------------*/
window.onerror=null;
NS = (document.layers) ? 1:0
IE = (document.all) ? 1:0
gecko = (document.getElementById) ? 1:0
	loaded=0;
	layerstart = "";
	layerleft = "";
	layertop = "";
	layerstyle = ""; 
if (NS) {
	layerstart = "document.";
	layerleft = ".left";
	layertop = ".top";
	layerstyle = "";  }
if (gecko || IE){
	layerstart = "document.getElementById('";
	layerleft = ".left";
	layertop = ".top";
	layerstyle = "').style"; }
if (IE && !gecko){
	layerstart = "document.all.";
	layerleft = ".left";
	layertop = ".top";
	layerstyle = ".style"; }

// end error trapping
if (NS) {
	window.captureEvents(Event.MOUSEMOVE);
	window.onMouseMove = MoveHandler; }
if (gecko || IE){
	document.onmousemove=MoveHandler; }
gotthere = 0;
count = 0;
questtop = -13;
questleft2 = -70; //goo img w
Ypos2 = 72;
Xpos2 = 72;

function MoveHandler(e) {
if (loaded) {
if (NS || IE || gecko) {
  Xpos2 = (IE)?event.x:e.pageX
  Ypos2 = (IE)?event.y:e.pageY
Xorigin = Xpos2;
Yorigin = Ypos2; 
if (Ypos2 > windowHeight/2) {
if (Xpos2 > windowWidth/2) { direction = 1;} 
else { direction = -1;} }
else {
if (Xpos2 > windowWidth/2) { direction = -1;} 
else { direction = 1;} }
}}}

amountup=32; //goo img h

function startthedots() {
loaded=1;
if (IE) {
windowWidth=document.body.clientWidth;
windowHeight=document.body.clientHeight; }
  else if (NS || gecko) {
windowWidth = window.innerWidth;
windowHeight = window.innerHeight;  }
  markMe();
  eval(layerstart+"what"+layerstyle+layertop+" = windowHeight-amountup");
  eval(layerstart+"what"+layerstyle+".visibility = 'visible'");
Xorigin = 204;
Yorigin = 147; 
}
//spin();}
//run(); }

	OrbitSize = 200;
count=1; delay=100; direction = -1;
Count = new Array ( 0, .63, 1.26, 1.89, 2.52, 3.15, 3.78, 4.41, 5.04, 5.67 );
Xpoint = new Array ( 0, .63, 1.26, 1.89, 2.52, 3.15, 3.78, 4.41, 5.04, 5.67 );
Ypoint = new Array ( 0, .63, 1.26, 1.89, 2.52, 3.15, 3.78, 4.41, 5.04, 5.67 );
	speed = -0.06;
if (gecko) { speed = speed*3; }
	offset = 1;

goforit=1;


function question0() {
if (goforit) { goforit=0; question1(); }}

function question1() {
questleft2++;questleft2++;questleft2++;
if (gecko) { questleft2++;questleft2++;questleft2++; }
if (questleft2 <= 0) { 
eval(layerstart+"what"+layerstyle+layerleft+" = questleft2"); 
setTimeout('question1()', 10); }
else { setTimeout('question2()',1000);}
}

function question2() {
questleft2--;questleft2--;questleft2--;
if (questleft2 >= -70) { 
eval(layerstart+"what"+layerstyle+layerleft+" = questleft2"); 
setTimeout('question2()', 10); }
if (questleft2 == -70) { goforit=1; } }

mark = 150; // milliseconds
navDOM = window.innerHeight; // Nav DOM flag

function markMe() {
 window.onresize=setup;
 markID = setInterval ("setup()",mark);
 }

	dotsoff=0;
function setup() {
pagescroll=navDOM?pageYOffset:document.body.scrollTop
  eval(layerstart+"what"+layerstyle+layertop+" = windowHeight-amountup+pagescroll");
  if (!NS) { dotsoff = pagescroll; }
}
