
<!-- Begin
Amount = 12; 
Ypos = new Array();
Xpos = new Array();
Speed = new Array();
rate = new Array();
grow = new Array();
Step = new Array();
Cstep = new Array();
nsSize = new Array();
Image0 = new Array();
var ns;
ns = (document.layers)?1:0;
//(document.layers) ? window.captureEvents(Event.MOUSEMOVE) : 0;
if(document.layers){
	window.captureEvents(Event.MOUSEMOVE);
}
//document.write(ScreenHeight(0) + "<br>")
function Mouse(evnt) {
	Ymouse=ScreenHeight(0);
	Xmouse= Math.random() * ScreenWidth(0);
}

function ScreenWidth(offset){
	return (ns) ? window.innerWidth + offset : document.body.offsetWidth + offset;
}

function ScreenHeight(offset){
	return (ns) ? window.innerHeight + offset: document.body.offsetHeight + offset;
}

function GetXPos(index){
	var inc = (ScreenWidth(0)-50) / (Amount-1);
	return index * inc;
}

//(ns) ? window.onMouseMove=Mouse : document.onmousemove=Mouse;
if (ns){
	window.onMouseMove=Mouse;
}

for (i = 0; i < Amount; i++) {
	Ypos[i] = Math.round(ScreenHeight(Math.random() * 200));
	//Ypos[i] = ScreenHeight(0);
	//document.write(i + "-" + + Ypos[i] + ", ");
	Xpos[i] = GetXPos(i);
	Speed[i] = Math.random()*6+1;
	if(navigator.platform.indexOf('Win') > -1){
		Speed[i] = Speed[i] * .4;
	}
	Cstep[i] = 0;
	Step[i] = Math.random()*0.1+0.05;
	grow[i] = 15;
	nsSize[i] = 53;
	rate[i] = Math.random()*0.5+0.1;
	Image0[i] = new Image();
}
	
Image0[0].src = "balloonred.gif";
Image0[1].src = "balloonpurple.gif";
Image0[2].src = "balloongreen.gif";
Image0[3].src = "balloonyellow.gif";
Image0[4].src = "balloongrape.gif";
Image0[5].src = "balloonpink.gif";
Image0[6].src = "balloonred.gif";
Image0[7].src = "balloonpurple.gif";
Image0[8].src = "balloongreen.gif";
Image0[9].src = "balloonyellow.gif";
Image0[10].src = "balloongrape.gif";
Image0[11].src = "balloonpink.gif";
//Image0[12].src = "balloonred.gif";
//Image0[13].src = "balloonpurple.gif";
//Image0[14].src = "balloongreen.gif";
//Image0[15].src = "balloonyellow.gif";
//Image0[16].src = "balloongrape.gif";
//Image0[17].src = "balloonpink.gif";
//Image0[18].src = "balloonred.gif";
//Image0[19].src = "balloonpurple.gif";
//Image0[20].src = "balloongreen.gif";
//Image0[21].src = "balloonyellow.gif";
//Image0[22].src = "balloongrape.gif";
//Image0[23].src = "balloonpink.gif";

if (ns) {
	for (i = 0; i < Amount; i++) {
		document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+Image0[i].src+" name='N' width="+nsSize[i]*.76+" height="+nsSize[i]+"></LAYER>");
	}
} else {
	document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
	for (i = 0; i < Amount; i++) {
		document.write('<img id="si" src="'+Image0[i].src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=60)">');
	}
	document.write('</div></div>');
}

function MouseBubbles() {
	var hscrll = (ns)?window.pageYOffset:document.body.scrollTop;
	var wscrll = (ns)?window.pageXOffset:document.body.scrollLeft;
	var j;
	
	for (i = 0; i < Amount; i++){
		j = i;
		sy = Speed[i] * Math.sin(270 * Math.PI / 180);
		sx = Speed[i] * Math.cos(Cstep[i] * 4);
		Ypos[i] += sy;
		Xpos[i] += sx; 
		if (Ypos[i] < -100) {
			Ypos[i] = Math.round(ScreenHeight(Math.random() * 200));
			Xpos[i] = Math.random() * ScreenWidth(0);
			Speed[i] = Math.random()*6+1;
			if(navigator.platform.indexOf('Win') > -1){
				Speed[i] = Speed[i] * .4;
			}
			grow[i] = 15;
			nsSize[i] = 53;
		}
		if (ns) {
			document.layers['sn'+i].left = Xpos[i] + wscrll;
			document.layers['sn'+i].top = Ypos[i] + hscrll;
		}	else {
			si[i].style.pixelLeft = Xpos[i] + wscrll;
			si[i].style.pixelTop = Ypos[i] + hscrll;
			si[i].style.width = grow[i]*.76;
			si[i].style.height = grow[i]; 
		}
		grow[i] += rate[i]; 
		if (grow[i] > 69){
			grow[i] = 69;
		}
		Cstep[i] += Step[i];
	}
	timeoutID = setTimeout('MouseBubbles()', 50);
}
MouseBubbles();

//  End -->
