	var theOpacity = 0;
	var theIncrement = 1;
	
	if (navigator.userAgent.toLowerCase().indexOf("ie") == -1)
	theIncrement = .01;
	
	
	function pulsateButton(ButtonID)
	
	{
		theOpacity += theIncrement;
   
		myFilter = "Alpha(opacity="+theOpacity+")";
		
		if (navigator.userAgent.toLowerCase().indexOf("ie") != -1) {
			document.getElementById(ButtonID).style.filter = myFilter;
			
			if((theOpacity % 100) == 0)
				theIncrement *= -1;
		}
			
			
		else {
			if(theOpacity > 1)
				theIncrement *= -1; theOpacity =1 
				
			if(theOpacity < 0.2)
				theIncrement *= -1; theOpacity=0.2
		
			document.getElementById(ButtonID).style.MozOpacity = theOpacity;
		}
		

		setTimeout("pulsateButton('"+ButtonID+"')", 20);
	}
	
	
	function checkflash()

	{

		if ((navigator.appName == "Microsoft Internet Explorer" &&
		navigator.appVersion.indexOf("Mac") == -1 &&
		navigator.appVersion.indexOf("3.1") == -1) ||
		(navigator.plugins && navigator.plugins["Shockwave Flash"]) || 
		navigator.plugins["Shockwave Flash 2.0"])
			window.location='bfflash.html';
			
		else
			window.location='blackthorn.html';
	}



	
	var deg=0;
	var deg2rad = Math.PI * 2 / 360;

	function IEWait(divishereid)
	
	{
		
		
	var divishere = document.getElementById(divishereid);
	if (divishere.style.display == 'none')	return;
	deg += 2;
	
	if (deg > 359)
		deg = 0;
		var rad = deg * deg2rad;
		var costheta = Math.cos(rad);
		var sintheta = Math.sin(rad);
	
	
		var cosx = Math.abs(Math.sin(rad*2)) * 7.55
		
		if (divishereid == 'loopspin1') 
		{		
		divishere.style.marginTop = 283 - cosx;
		divishere.style.marginLeft = 48 - cosx;
		}
		
		else if (divishereid == 'loopspin2') 
		{
		divishere.style.marginTop = 271 - cosx;
		divishere.style.marginLeft = 530 - cosx;
		}
		
		else if (divishereid == 'loopspin3') 
		{
		divishere.style.marginTop = 130 - cosx;
		divishere.style.marginLeft = 340 - cosx;
		}
		
		divishere.filters.item(0).M11 = costheta;
		divishere.filters.item(0).M12 = -sintheta;
		divishere.filters.item(0).M21 = sintheta;
		divishere.filters.item(0).M22 = costheta;

		setTimeout('IEWait(\''+divishereid+'\')',100);

	}

	
	function BTWait()
	
	{
 
		if (isIE)
		IEWait();
	}