<!--
	// johnny cison
	// www.cison.com
	// if you're swiping the code, please leave my name in it.

	var halves, wordsT, wordsB;
	var slideXT, slideXThome, slideXTrun, slideYT, slideYThome, slideYTrun;
	var slideXB, slideXBhome, slideXBrun, slideYB, slideYBhome, slideYBrun;
	var mouseX, mouseY, mouseXmax, mouseYmax, mouseXcenter, mouseYcenter, mouseD, mouseDmax, mouseC;

	mouseX=mouseY=mouseXmax=mouseYmax=mouseXcenter=mouseYcenter=mouseD=mouseDmax=mouseC=0;

	function slidesPrint()
	{
		halves=lyrics.split('|');
		wordsT=halves[0].split(' ');
		wordsB=halves[1].split(' ');

		for (i=0; i<wordsT.length; i++)
		{	document.write('<div id="slideT'+i+'" class="cssSlide">'+wordsT[i]+'</div>');	}
		for (i=0; i<wordsB.length; i++)
		{	document.write('<div id="slideB'+i+'" class="cssSlide">'+wordsB[i]+'</div>');	}
	}

	function slidesPosition()
	{
		var tempX;
		for (i=0; i<wordsT.length; i++)
		{
			tempX=(wordsT[i].length * 7)+20;
			slideXTrun[i]=slideXT[i]=Math.round(Math.random() * (mouseXmax-tempX)) + 10;
			slideYTrun[i]=slideYT[i]=Math.round(Math.random() * (mouseYmax-40))+10;
		}
		for (i=0; i<wordsB.length; i++)
		{
			tempX=(wordsB[i].length * 7)+20;
			slideXBrun[i]=slideXB[i]=Math.round(Math.random() * (mouseXmax-tempX)) + 10;
			slideYBrun[i]=slideYB[i]=Math.round(Math.random() * (mouseYmax-40))+10;
		}
	}

	function slidesInit()
	{
		if (document.getElementById)
		{
			mouseInit();
			document.onmousemove=mouseCapturePosition;

			mouseD=Math.sqrt(Math.pow(mouseX-mouseXcenter,2) + Math.pow(mouseY-mouseYcenter,2));
			mouseDmax=Math.sqrt(Math.pow(mouseXmax-mouseXcenter,2) + Math.pow(mouseYmax-mouseYcenter,2));

			slideXT=new Array(wordsT.length); slideXThome=new Array(wordsT.length); slideXTrun=new Array(wordsT.length);
			slideYT=new Array(wordsT.length); slideYTrun=new Array(wordsT.length);
			slideYThome=Math.round(mouseYmax/2)-9;
			slideXB=new Array(wordsB.length); slideXBhome=new Array(wordsB.length); slideXBrun=new Array(wordsB.length);
			slideYB=new Array(wordsB.length); slideYBrun=new Array(wordsB.length);
			slideYBhome=Math.round(mouseYmax/2)+5;

			var tempX=Math.round(halves[0].length/2);
			tempX=Math.round(mouseXmax/2)-(tempX*7);
			for (i=0; i<wordsT.length; i++)
			{
				slideXThome[i]=tempX;
				tempX += ((wordsT[i].length+1) * 7);
			}
			var tempX=Math.round(halves[1].length/2);
			tempX=Math.round(mouseXmax/2)-(tempX*7);
			for (i=0; i<wordsB.length; i++)
			{
				slideXBhome[i]=tempX;
				tempX += ((wordsB[i].length+1) * 7);
			}

			slidesPosition();

			for (i=0; i<wordsT.length; i++)
			{
				itemPtr=document.getElementById("slideT"+i);
				itemPtr.style.left=slideXT[i];
				itemPtr.style.top=slideYT[i];
				itemPtr.style.visibility='visible';
			}
			for (i=0; i<wordsB.length; i++)
			{
				itemPtr=document.getElementById("slideB"+i);
				itemPtr.style.left=slideXB[i];
				itemPtr.style.top=slideYB[i];
				itemPtr.style.visibility='visible';
			}

			setTimeout('slidesLoop()',60);
		}
	}

	function slidesLoop()
	{
		mouseD=Math.sqrt(Math.pow(mouseX-mouseXcenter,2) + Math.pow(mouseY-mouseYcenter,2));

		var temp=(mouseD/mouseDmax) - 0.07;
		if (temp > 1)
		{
			temp=1;
			mouseC=0;
		}
		else if (temp < 0)
		{
			temp=0;
			if (mouseC == 0)
			{	slidesPosition();	}
			mouseC=1;
		}
		else
		{	mouseC=0;	}

		for (i=0; i<wordsT.length; i++)
		{
			slideXT[i]=slideXThome[i] + Math.round((slideXTrun[i]-slideXThome[i])*temp);
			slideYT[i]=slideYThome + Math.round((slideYTrun[i]-slideYThome)*temp);

			itemPtr=document.getElementById("slideT"+i);
			itemPtr.style.left=slideXT[i];
			itemPtr.style.top=slideYT[i];
		}
		for (i=0; i<wordsB.length; i++)
		{
			slideXB[i]=slideXBhome[i] + Math.round((slideXBrun[i]-slideXBhome[i])*temp);
			slideYB[i]=slideYBhome + Math.round((slideYBrun[i]-slideYBhome)*temp);

			itemPtr=document.getElementById("slideB"+i);
			itemPtr.style.left=slideXB[i];
			itemPtr.style.top=slideYB[i];
		}

		setTimeout('slidesLoop()',40);
	}

	function mouseInit()
	{
		if (document.all)
		{
			mouseXmax=document.body.clientWidth + document.body.scrollLeft;
			mouseYmax=document.body.clientHeight + document.body.scrollTop;
		}
		else
		{
			mouseXmax=window.innerWidth + window.pageXOffset;
			mouseYmax=window.innerHeight + window.pageYOffset;
		}
		mouseXcenter=Math.round(mouseXmax/2);
		mouseYcenter=Math.round(mouseYmax/2);
	}

	function mouseCapturePosition(e)
	{
		if (document.all)
		{
			mouseX=window.event.x + document.body.scrollLeft;
			mouseY=window.event.y + document.body.scrollTop;
		}
		else
		{
			mouseX=e.pageX;
			mouseY=e.pageY;
		}
	}
//-->
