<!-- Begin

var x=y=o=null;
var startPOS =ynew =null;
var timerID;
var cCounter;

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

// image number or falling rate
if (ns6up) var no = 3;
else var no = 5; 
// the lower the number the faster the image moves
var speed = 20; 

var snow = new Array();
snow[0] = "images/01.gif"
snow[1] = "images/02.gif"
snow[2] = "images/03.gif"
snow[3] = "images/04.gif"
snow[4] = "images/05.gif"
snow[5] = "images/06.gif"
snow[6] = "images/07.gif"

var dx, xp, yp, mousePointerX = 0, mousePointerY = 0, tmpPointerX = 0;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 700, doc_height = 300;

 
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
j = 0;

for (i = 0; i < no; i++)
{
	dx[i] = 0;                        // set coordinate variables
	xp[i] = Math.random() * (doc_width - 150);  // set position variables
	yp[i] = Math.random() * doc_height;
	am[i] = Math.random() * 20;         // set amplitude variables
	stx[i] = 0.02 + Math.random() / 10; // set step variables
	sty[i] = 0.7 + Math.random();     // set step variables
	LayZindex = 50 + i;
	
	if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

function snowNS()  // Netscape main animation function
{
	for (i = 0; i < no; ++ i)
	{  // iterate for every dot

		yp[i] -= sty[i];

		if (yp[i] < -50)
		{
			xp[i] = Math.random() * (doc_width-am[i] - 30);
			yp[i] = doc_height;
			stx[i] = 0.02 + Math.random() / 10;
			sty[i] = 0.7 + Math.random();
			doc_width = 700;
			doc_height = 300;
		}

		if (mousePointerX > 0)
		{
			if ( mousePointerX < xp[i] ) xp[i] = xp[i] - 2;
			else  xp[i] = xp[i] + 2;
		}
		
		if (xp[i] < 150)
		{
			xp[i] = 150;
		}
		
		if (xp[i] > 700)
		{
			xp[i] = 700;
		}

		dx[i] += stx[i];
		document.layers["odot"+i].top = yp[i]+pageYOffset;
		document.layers["odot"+i].left = i%2 ? xp[i] + am[i]*Math.sin(dx[i]) : xp[i] + am[i]*Math.cos(dx[i]);
	}
	mousePointerX = 0;
	mousePointerY = 0;
	setTimeout("snowNS()", speed);
}

function snowIE_NS6() // IE main animation function
{  
	for (i = 0; i < no; ++ i) // iterate for every dot
	{  
		yp[i] -= sty[i];
		if (yp[i] < -50)
		{
				xp[i] = Math.random() * (doc_width-am[i] - 30);
				yp[i] = doc_height;
				stx[i] = 0.02 + Math.random() / 10;
				sty[i] = 0.7 + Math.random();
				doc_width = 700;
				doc_height = 300;
		}
		dx[i] += stx[i];
	
		if (mousePointerX > 0)
		{
			if ( mousePointerX < xp[i] ) xp[i] = xp[i] - 2;
			else  xp[i] = xp[i] + 2;
		}
		
		if (xp[i] < 150)
		{
			xp[i] = 150;
		}
		
		if (xp[i] > 700)
		{
			xp[i] = 700;
		}


		if (ie4up)
		{
			document.all["odot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
			document.all["odot"+i].style.pixelLeft = i%2 ? xp[i] + am[i]*Math.cos(dx[i]) : xp[i] + am[i]*Math.sin(dx[i]);
		}
		else if (ns6up)
		{
			document.getElementById("odot"+i).style.top = yp[i] + pageYOffset;
			document.getElementById("odot"+i).style.left = i%2 ? xp[i] + am[i]*Math.sin(dx[i]) : xp[i] + am[i]*Math.cos(dx[i]);
		}
	}

	mousePointerX = 0;
	mousePointerY = 0;
	setTimeout("snowIE_NS6()", speed);
}

if (ns4up)
{
	snowNS();
}
else if (ie4up||ns6up)
{
	snowIE_NS6(mousePointerX);
}
else
{
	document.write("<div id=\"ani\" style=\"position:absolute; left:610px; top:299px; width:50px; height:70px; z-index:6; visibility: visible;\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"left\" valign=\"top\"><img src=\"images/home_ani.gif\" alt=\"webtarget\" width=\"50\" height=\"70\"></td></tr></table></div>");
}


function move(e)
{
	if (document.all)
	{
		mousePointerX = window.event.clientX;
		mousePointerY = window.event.clientY;
	}
	else if (document.layers)
	{
		mousePointerX = e.pageX;
		mousePointerY = e.pageY;
	}
	return false;
}

// End -->
