<!--

function ImageFlyClass (MyObject) {
		this.MyObject = MyObject;
		<!-- Original:  Justin Arruda (JArruda@mindspring.com) -->
		<!-- Begin
		this.image = new Image(100,71);
		this.image.src = "img/card.gif";
		
		this.step = 2;
		this.delay = 100;
		this.height = 0;
		this.Hoffset = 0;
		this.Woffset = 0;
		this.yon = 0;
		this.xon = 0;
		this.pause = true;
		this.interval;
		this.xPos = 200;
		this.yPos = 50;

		if (navigator.appName == "Microsoft Internet Explorer") this.name = true;
		else this.name = true;

		if(this.name) this.yPos = document.body.clientHeight - 50;
		else this.yPos = window.innerHeight - 50;

		this.changePos = function() {
			if(this.name) {
			  width = document.body.clientWidth;
			  this.height = 155;
			  this.Hoffset = document.getElementById('div_img').offsetHeight;
			  this.Woffset = document.getElementById('div_img').offsetWidth;
			  document.getElementById('div_img').style.left = this.xPos + document.body.scrollLeft;
			  document.getElementById('div_img').style.top = this.yPos + document.body.scrollTop;
			}
			else {
			  width = window.innerWidth;
			  this.height = 155;
			  this.Hoffset = document.div_img.clip.height;
			  this.Woffset = document.div_img.clip.width;
			  document.div_img.pageY = this.yPos + window.pageYOffset;
			  document.div_img.pageX = this.xPos + window.pageXOffset;
			}
			if (this.yon) {
				this.yPos = this.yPos + this.step;
			}
			else {
				this.yPos = this.yPos - this.step;
			}
			if (this.yPos < 0) {
				this.yon = 1;
				this.yPos = 0;
			}
			if (this.yPos >= (this.height - this.Hoffset)) {
			   this.yon = 0;
			   this.yPos = (this.height - this.Hoffset);
			}
			if (this.xon) {
			   this.xPos = this.xPos + this.step;
			}
			else {
			   this.xPos = this.xPos - this.step;
			}
			if (this.xPos < 200) {
			   this.xon = 1;
			   this.xPos = 200;
			}
			if (this.xPos >= (width - this.Woffset)) {
			   this.xon = 0;
			   this.xPos = (width - this.Woffset);
			}
		}
		
		this.start = function() {
			if(this.name) {
			  document.getElementById('div_img').visibility = "invisible";
			  document.getElementById('div_img').style.left = this.xPos + document.body.scrollLeft;
			  document.getElementById('div_img').style.top = this.yPos + document.body.scrollTop;
			}
			else {
			  div_img.visibility = "invisible";
			  div_img.pageY = this.yPos + window.pageYOffset;
			  div_img.pageX = this.xPos + window.pageXOffset;
			}
			
		  document.andrea.src=this.image.src;
		  this.interval = setInterval(this.MyObject + '.changePos()',this.delay);
		}
		
		this.pauseResume = function() {
		  if(this.pause) {
			clearInterval(this.interval);
			this.pause = false;
		  }
		  else {
			this.interval = setInterval(this.MyObject + '.changePos()',this.delay);
			this.pause = true;
		  }
		}
}

function  bubblueClass (MyObject) {
		this.MyObject = MyObject;
		this.Image0 = new Image();
		this.Image0.src = "img/bubblue.gif";
		this.Amount = 20; 
		this.Ymouse = -50;
		this.Xmouse = -50;
		this.Ypos = new Array();
		this.Xpos = new Array();
		this.Speed = new Array();
		this.rate = new Array();
		this.grow = new Array();
		this.Step = new Array();
		this.Cstep = new Array();
		this.nsSize = new Array();
		this.ns = (document.layers)?1:0;

		
		for (i = 0; i < this.Amount ; i++) {
		  this.Ypos[i] = this.Ymouse;
		  this.Xpos[i] = this.Xmouse;
		  this.Speed[i] = Math.random()*4+1;
		  this.Cstep[i] = 0;
		  this.Step[i] = Math.random()*0.1+0.05;
		  this.grow[i] = 8;
		  this.nsSize[i] = Math.random()*15+5;
		  this.rate[i] = Math.random()*0.5+0.1;
		}
		
		if (this.ns) {
		  for (i = 0; i < this.Amount ; i++) {
			 document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+this.Image0.src+" name='N' width="+this.nsSize[i]+" height="+this.nsSize[i]+"></LAYER>");
		  }
		}
		else {
		  document.write('<div style="position:absolute;top:0px;left:0px;visibility:hide"><div style="position:relative">');
		  for (i = 0; i < this.Amount ; i++) {
			 document.write('<img id="si'+i+'" src="'+this.Image0.src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=90)">');
		  }
		  document.write('</div></div>');
		}
		
		this.MouseBubbles = function () {
			  var hscrll = (this.ns)?window.pageYOffset:document.body.scrollTop;
			  var wscrll = (this.ns)?window.pageXOffset:document.body.scrollLeft;
			
			  for (i = 0; i < this.Amount ; i++){
				sy = this.Speed[i] * Math.sin(270 * Math.PI / 180);
				sx = this.Speed[i] * Math.cos(this.Cstep[i] * 4);
				this.Ypos[i] += sy;
				this.Xpos[i] += sx; 
				
				if (this.Ypos[i] < -40) {
				  this.Ypos[i] = this.Ymouse;
				  this.Xpos[i] = this.Xmouse;
				  this.Speed[i] = Math.random() * 6 + 4;
				  this.grow[i] = 8;
				  this.nsSize[i] = Math.random() * 15 + 5;
				}
				if (this.ns) {
				  document.layers['sn'+i].left = this.Xpos[i] + wscrll;
				  document.layers['sn'+i].top = this.Ypos[i] + hscrll;
				}
				else {
				  xdiv = document.getElementById('si'+i);
				  xdiv.style.pixelLeft = this.Xpos[i] + wscrll;
				  xdiv.style.pixelTop = this.Ypos[i] + hscrll;
				  xdiv.style.width = this.grow[i];
				  xdiv.style.height = this.grow[i]; 
				}
				this.grow[i] += this.rate[i]; 
				this.Cstep[i] += this.Step[i];
			
				if (this.grow[i] > 24) this.grow[i] = 25;
			  }
			  
			  setTimeout(this.MyObject + '.MouseBubbles()', 50);
		}
}



//  End -->
