var DISABLE_IMAGE_PRELOAD = false;

var noCanvas = FS.isIE || FS.isSafari2 || (false && FS.isFirefox && !FS.isMac) || FS.isFirefox20010;
var canvas = !noCanvas;

var pageSetCount = 0;

var pageTitle = "Anteater Cycling";

var requiredImageURLs = [
FS.isIE6?"images/spacer.gif":"images/burst.png",
"images/headerwhite."+(FS.isIE6?"gif":"png"),
"images/spacer.gif",
"images/leftpageglow."+(FS.isIE6?"png":"png"),
"images/rightpageglow."+(FS.isIE6?"png":"png"),
"images/leftpageglowtile."+(FS.isIE6?"jpg":"png"),
"images/rightpageglowtile."+(FS.isIE6?"jpg":"png"),
"images/pagegrey.jpg",
FS.isIE6?"images/spacer.gif":"images/swoosh.png",
FS.isIE6?"images/spacer.gif":"images/hider.png",
"images/navrow."+(FS.isIE6?"gif":"png"),	//10
FS.isIE6?"images/spacer.gif":"images/navmask.png",
"images/navspotlight."+(FS.isIE6?"gif":"png"),
FS.isIE6?"images/spacer.gif":"images/swooshblurry.png",
FS.isIE6?"images/spacer.gif":"images/copyright.png",
// 
// 
// 
// "images/sponsors/medtronic.png",
// "images/sponsors/bikereligion.png",
// "images/sponsors/sierrapacific.png",
// "images/sponsors/gerling.png",
// "images/sponsors/ocw.png",
// "images/sponsors/khs.png",
// "images/sponsors/campusrec.png",
// "images/sponsors/pedros.png",
// "images/sponsors/sigmasport.png",
// "images/sponsors/clifbar.png"



"images/spacer.gif"
];
var requiredImages = [];
var requiredImageCompletions = [];












var numberPages = 10;
var navBounds = [
117,
157,
246,
296,
349,
407,
475,
519,
559,
621,
685
];
var currentNavPage = -1;
var imminentNavPage = -1;
var navNames = ["Home", "Information", "Events", "Routes", "Members", "Sponsors", "Media", "Links", "Listserve", "Contact"];






























function init() {
	FSHost.simpleAttach();
		
	document.title = pageTitle;
	
	pullAndStorePageContents();
	grabDesiredPageFromURL();
	
	document.body.style.cssText = "margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; background:black; color:#999999; font-family:lucida grande, arial; font-size:12px;";
	document.body.innerHTML = "<table width=100% height=80% cellpadding=0 border=0 cellspacing=0><tr><td align=center valign=center id=loadingCell>Loading</td></tr></table>";
	window.loadCell = document.getElementById("loadingCell");
	
	loadRequiredImages();
	
	window.downer = ImageLoader.create({name:"Image Downloader",numThreads:2,delay:0}).start();
}

function resized(hard) {		//a hard resize forces all related trackers to their target positions and renders them
	var contentHeight = pageContents.offsetHeight;
	var desired = Math.max(contentHeight+270,FS.windowHeight());
	setPageHeight(desired);
	setPageLeft(Math.max(-48,Math.round(FS.windowWidth()/2-448)));
}
FSHost.resizeFun.addFun(function(){resized(true);});




function pullAndStorePageContents() {
	window.content = [];
	var i=0;
	while((thisPage=document.getElementById("page"+i))!=null) {
		content[i] = thisPage.innerHTML;
		content[i] = content[i].split(" pendingsrc=").join(" src=");
		i++;
	}
}

function grabDesiredPageFromURL() {
	currentNavPage = desiredPageFromURL();
}

function desiredPageFromURL() {
	var l = window.location.toString();
	var poundSpot = l.indexOf("#");
	window.windowURL = l.substring(0,poundSpot);
	if(poundSpot == -1) {
		return 0;
	} else {
		var pStr = l.substring(poundSpot,l.length);
		var p = parseInt(pStr.substring(pStr.indexOf("=")+1,pStr.length),10);
		if(p+" yum food"=="NaN yum food") p=0;
		return FS.bound(p,0,numberPages);
	}
}

function watchBack() {
	if(widthTracker.goingDownForNewPage==true) return;
	var desired = desiredPageFromURL();
	if(desired!=currentNavPage) setPageTo(desired);
}

function everyFrameStuff() {

}

function loadRequiredImages() {
	window.holder = document.createElement("div");
	holder.style.cssText = "position:absolute; left:-10000px; top:-10000px; width:0px; height:0px; overflow:hidden; visibility:hidden;";
	document.body.appendChild(holder);
	window.numberLoaded = 0;
	for(var i=0; i<requiredImageURLs.length; i++) {
		requiredImageCompletions[i] = false;
		var p = document.createElement('img');
		holder.appendChild(p);
		p.ind = i;
		p.src = requiredImageURLs[i];
		var ponload=function() {
			requiredImageCompletions[this.ind] = true;
			requiredImages[this.ind] = this;
			if(allTrue(requiredImageCompletions)) FS.setTimeout(initWithRequiredImages,50);
			numberLoaded++;
			loadCell.innerHTML = "Loading: "+Math.round(numberLoaded/requiredImageURLs.length*100)+"%";
			this.onload=function() {};
		};
		if(FS.isIE || FS.isOpera || DISABLE_IMAGE_PRELOAD) ponload.apply(p);
		else p.onload = ponload;
	}
}

var initDone = false;
function initWithRequiredImages() {
	if(initDone==true) return;
	initDone = true;
	var debug = false;
	var d = debug;
	blowAwayBody();
	if(d)alert('body gone');
	setUpPageWrapper();
	if(d)alert('page wrapper up');
	setUpBurst();
	if(d)alert('burst up');
	setUpHeaderWhite();
	if(d)alert('header white up');
	setUpDropGlow();
	if(d)alert("drop glow up");
	setUpSwoosh();
	if(d)alert('swoosh up');
	setUpSponsorsTicker();
	if(d)alert('sponsors row up');
	setUpNavBar();
	if(d)alert('nav bar ready!');
	setUpCopyright();
	if(d)alert('copyright notice up');
	
	setUpWidthTracker();
	
	forceSetPageTo(currentNavPage);
	populatePageContents(currentNavPage);
	
	FS.setInterval(watchBack,100,{name:"Back Button Watcher"});
	FS.setInterval(resized,1000,{name:"Resize Runner"});
	
	FS.setInterval(everyFrameStuff,0,{name:"Random Every-frame junk"});
	
	// if(FS.isIE!=true) doFunStuff();
}

function blowAwayBody() {
	document.body.innerHTML = "";
}

function setUpPageWrapper() {
	window.pageBox = document.createElement("div");
	pageBox.style.cssText = "width:896px; position:absolute; left:-10000px; top:0px; z-index:1; height:100%;";
	document.body.appendChild(pageBox);
	
	window.pageContentsBox = document.createElement("div");
	pageContentsBox.style.cssText = "width:0px; position:absolute; left:48px; top:0px; z-index:1; overflow:hidden; height:100%; background:url(images/pagegrey.jpg) repeat-x #121212;";
	pageBox.appendChild(pageContentsBox);
	
	window.pageContents = document.createElement("div");
	pageContents.style.cssText = "width:750px; position:absolute; left:25px; top:255px; z-index:10;";
	pageContentsBox.appendChild(pageContents);
	
	
	window.bodyClipper = document.createElement("div");
	bodyClipper.style.cssText = "width:100%; position:absolute; left:0px; top:0px; height:200px; z-index:0; overflow:hidden;";
	document.body.appendChild(bodyClipper);

	window.clippedPageBox = document.createElement("div");
	clippedPageBox.style.cssText = "width:896px; position:absolute; left:-10000px; top:0px; z-index:1;";
	bodyClipper.appendChild(clippedPageBox);
}

function setUpBurst() {
	window.burst = requiredImages[0].cloneNode(true);
	burst.style.cssText = "position:absolute; left:-258px; top:-120px; z-index:10;"+(FS.isIE6?" display:none;":"");
	// FS.setOpacity(burst,0);
	// FS.setTimeout("FS.fade(burst,1,1,-1);",500);
	
	window.innerBurst = requiredImages[0].cloneNode(true);
	innerBurst.style.cssText = "position:absolute; left:-10000px; top:-120px; z-index:10;"+(FS.isIE6?" display:none;":"");
	// FS.setOpacity(innerBurst,0);
	// FS.setTimeout("FS.fade(innerBurst,1,1,-1);",500);
	
	clippedPageBox.appendChild(burst);
	pageContentsBox.appendChild(innerBurst);
}

function setUpHeaderWhite() {
	window.headerWhite = requiredImages[1].cloneNode(true);
	headerWhite.style.cssText = "position:absolute; left:100px; top:20px; z-index:10;";
	// FS.setOpacity(headerWhite,0);
	// FS.fade(headerWhite,1,1,-1);
	pageBox.appendChild(headerWhite);
}

function setUpDropGlow() {
	window.leftDropGlow = document.createElement('div');
	leftDropGlow.style.cssText = "position:absolute; left:-10000px; top:120px; z-index:100; width:48px; height:0px; overflow:hidden;";
	window.rightDropGlow = document.createElement('div');
	rightDropGlow.style.cssText = "position:absolute; left:-10000px; top:120px; z-index:100; width:48px; height:0px; overflow:hidden;";
	
	if(FS.isIE6==false) {
		window.leftDropGlowTop = requiredImages[3].cloneNode(true);
		leftDropGlowTop.style.cssText="position:absolute; left:0px; top:0px; z-index:100;";
		window.rightDropGlowTop = requiredImages[4].cloneNode(true);
		rightDropGlowTop.style.cssText="position:absolute; left:0px; top:0px; z-index:100;";
	} else {
		window.leftDropGlowTop = document.createElement('div');
		leftDropGlowTop.style.cssText="position:absolute; left:0px; top:0px; z-index:100; width:48px; height:248px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+requiredImageURLs[3]+"', sizingMethod='image');";
		window.rightDropGlowTop = document.createElement('div');
		rightDropGlowTop.style.cssText="position:absolute; left:0px; top:0px; z-index:100; width:48px; height:248px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+requiredImageURLs[4]+"', sizingMethod='image');";
	}
	
	window.leftDropGlowTile = document.createElement('div');
	leftDropGlowTile.style.cssText = "position:absolute; left:0px; top:248px; width:48px; height:100px; background:url("+requiredImageURLs[5]+")";
	window.rightDropGlowTile = document.createElement('div');
	rightDropGlowTile.style.cssText = "position:absolute; left:0px; top:248px; width:48px; height:100px; background:url("+requiredImageURLs[6]+")";

	leftDropGlow.appendChild(leftDropGlowTop);
	leftDropGlow.appendChild(leftDropGlowTile);	
	rightDropGlow.appendChild(rightDropGlowTop);
	rightDropGlow.appendChild(rightDropGlowTile);
	
	pageBox.appendChild(leftDropGlow);
	pageBox.appendChild(rightDropGlow);
}

function setUpSwoosh() {
	if(FS.isIE6) return;
	
	window.swoosh = requiredImages[8].cloneNode(true);
	swoosh.style.cssText = "position:absolute; left:-94px; top:25px; z-index:1;";
	clippedPageBox.appendChild(swoosh);
	
	window.innerSwoosh = requiredImages[13].cloneNode(true);
	innerSwoosh.style.cssText = "position:absolute; left:-177px; top:0px; z-index:1;";
	pageContentsBox.appendChild(innerSwoosh);
}

function setUpSponsorsTicker() {
	window.sponsorsTicker = SponsorsTicker.create({
		row: SponsorsRow.create({
				infos: sponsorInfos
			}),
		b: {x:-10000,X:-10000+800,y:165,Y:200},
		zIndex:10
	});
	pageContentsBox.appendChild(sponsorsTicker.container);
}

function setUpNavBar() {
	window.navBar = document.createElement('div');
	navBar.style.cssText = "position:absolute; left:0px; top:200px; width:800px; height:50px; z-index:10;";
	
	window.navRow = requiredImages[10].cloneNode(true);
	navRow.style.cssText = "position:absolute; left:115px; top:15px; z-index:3;";
		
	window.navMask = requiredImages[11].cloneNode(true);
	navMask.style.cssText = "position:absolute; left:-450px; top:10px; z-index:4;"+(FS.isIE6?" display:none;":"");
	
	window.navSpotlight = requiredImages[12].cloneNode(true);
	navSpotlight.style.cssText = "position:absolute; left:334px; top:18px; z-index:1;"+(FS.isIE6?" display:none;":"");
	
	window.navOverMask = requiredImages[11].cloneNode(true);
	navOverMask.style.cssText = "position:absolute; left:-450px; top:10px; z-index:5;"+(FS.isIE6?" display:none;":"");
	
	window.navOverSpotlight = requiredImages[12].cloneNode(true);
	navOverSpotlight.style.cssText = "position:absolute; left:334px; top:18px; z-index:2;";
	
	window.navBarMouseSucker = document.createElement('div');
	navBarMouseSucker.style.cssText = "position:absolute; left:0px; top:0px; width:100%; height:100%; z-index:6; cursor:pointer;";
	
	if(FS.isIE) {
		navBarMouseSucker.style.background="blue";
		navBarMouseSucker.style.filter = "alpha(opacity=0)";
	}
	navBar.appendChild(navRow);
	navBar.appendChild(navMask);
	navBar.appendChild(navSpotlight);
	navBar.appendChild(navOverMask);
	navBar.appendChild(navOverSpotlight);
	navBar.appendChild(navBarMouseSucker);
	pageContentsBox.appendChild(navBar);
	setUpNavBarMouseTriggers();
}

function setUpCopyright() {
	window.copyright = requiredImages[14].cloneNode(true);
	copyright.style.cssText = "position:absolute; top:0px; right:0px; z-index:1000;"+(FS.isIE6?" display:none;":"");
	FS.setOpacity(copyright,0.5);
	copyright.onmouseover = function() {FS.fade(this,1);};
	copyright.onmouseout = function() {FS.fade(this,0.5);};
	document.body.appendChild(copyright);
}

function populatePageContents(i) {
	pageSetCount++;
	if(typeof window["page"+currentNavPage+"cleanup"] == 'function') window["page"+currentNavPage+"cleanup"]();
	pageContents.innerHTML = content[i];
	if(typeof window["page"+i+"init"] == 'function') window["page"+i+"init"]();
	currentNavPage = i;
	var newWindowLoc = windowURL+"#page="+i;
	if(window.location.toString()!=newWindowLoc) window.location = newWindowLoc;
	document.title = pageTitle + " - " + navNames[i];
	resized();
}
















function setUpWidthTracker() {
	window.widthTracker = FS.Tracker.create({
		f: [
			{s:0,c:0,t:0,min:0,max:1600,sp:18,a:-1,headStart:4},
			{s:0,c:0,t:0,min:0,max:1600,sp:18,a:-1,headStart:4},
			{s:0,c:0,t:0,min:0,max:1600,sp:18,a:-1,headStart:4}
		],
		goingDownForNewPage: false,
		reachedZeroForNewPage: false,
		lastUsedWidth: -1,
		init: function() {
			arguments.callee.base.call(this);
			this.w = this.f[0];
			this.x = this.f[1];
			this.y = this.f[2];
		},
		render: function(){
			this.x.t = this.w.c;
			this.y.t = this.x.c;
			var w = Math.round(this.y.c);
			
			if(w!=this.lastUsedWidth) {
				setPageWidth(w);
				this.lastUsedWidth = w;
			}
			
			if(this.goingDownForNewPage==true) this.speedAdjust = 2;
			else this.speedAdjust = 1;
			
			if(this.goingDownForNewPage == true && w==0) {
				this.reachedZeroForNewPage = true;
				FS.setTimeout("if(widthTracker.w.t==0) {widthTracker.goingDownForNewPage = false; populatePageContents(imminentNavPage);} widthTracker.w.t = 800;",100);
			}
		},
		onFrame: function() {
			if(FS.isIE6 && Math.round(this.y.c) != this.lastUsedWidth && window.sponsorsTicker) sponsorsTicker.tracker.paused = true;
			else if(window.sponsorsTicker) sponsorsTicker.tracker.paused = false;
		},
		name: "Page Width"
	}).start();
	FS.setTimeout("widthTracker.w.t = 800",500);
}

function setUpNavBarMouseTriggers() {
	var spotlightRange = 530;
	var sMin = 400-spotlightRange/2;
	var sMax = 400+spotlightRange/2-15;	//hack, can't just go off center, will specify both ends later.
	window.navSpotlightTracker = FS.Tracker.create({
		f: [
			{s:0,t:0,sp:10,a:-1},
			{s:0,t:0,sp:3, a:-1},
			{s:0,t:0,sp:4, a:-1},
			{s:0,t:0,sp:50,a:-1},
			{s:0,t:0,sp:16,a:-1},
			{s:0,t:0,sp:50,a:-1}
		],
		init: function() {
			arguments.callee.base.call(this);
			this.x  = postinit = this.f[0];
			this.y  = postinit = this.f[1];
			this.z  = postinit = this.f[2];
			this.ox = postinit = this.f[3];
			this.oy = postinit = this.f[4];
			this.oz = postinit = this.f[5];
		},
		render: function() {
			this.y.t = this.x.c;
			this.z.t = this.y.c;
			centerSpotlightAt(this.z.c);
			
			this.oy.t = this.ox.c;
			this.oz.t = this.oy.c;
			centerOverSpotlightAt(this.oz.c);
		},
		name: "Nav Bar's Spotlight Tracker"
	}).start();

	
	navBarMouseSucker.onmousemove = function(e) {
		if (!e) e = window.event;
		xx = e["clientX"];
		yy = e["clientY"];
		if(!(xx&&yy)) return;

		if(window.navPositionResetter!=null) {
			window.navPositionResetter.terminate();
			window.navPositionResetter=null;
		}

		xx-=getPosition(navBar,1);

		var theNavSpot = getNavIndexForMouseX(xx);
		if(theNavSpot==-1 || theNavSpot==currentNavPage) this.style.cursor="";
		else this.style.cursor="pointer";
		if(theNavSpot==-1) return;
		pointOverSpotlightAt(theNavSpot);
	};
	
	navBarMouseSucker.onmousedown = function(e) {
		if (!e) e = window.event;
		xx = e["clientX"];
		yy = e["clientY"];
		if(!(xx&&yy)) return;
		
		xx-=getPosition(navBar,1);
		
		var theNavSpot = getNavIndexForMouseX(xx);
		if(theNavSpot==-1) return;
		setPageTo(theNavSpot);
	};
	
	navBarMouseSucker.onmouseout = function(e) {
		if(window.navPositionResetter!=null) {
			window.navPositionResetter.terminate();
			window.navPositionResetter=null;
		}
		window.navPositionResetter = FS.setTimeout("pointOverSpotlightAt(currentNavPage);",500);
		this.style.cursor="pointer";
	};
}

function pointSpotlightAt(i) {
	navSpotlightTracker.x.t = Math.round((navBounds[i] + navBounds[i+1])/2);;
}
function centerSpotlightAt(x) {
	x = Math.round(x);
	navSpotlight.style.left = x-65+"px";
	navMask.style.left = x-850+"px";
}

function pointOverSpotlightAt(i) {
	navSpotlightTracker.ox.t = Math.round((navBounds[i] + navBounds[i+1])/2);;
}
function centerOverSpotlightAt(x) {
	x = Math.round(x);
	navOverSpotlight.style.left = x-65+"px";
	navOverMask.style.left = x-850+"px";
}

function getNavIndexForMouseX(x) {
	for(var i=0; i<navBounds.length-1; i++)
		if(x<navBounds[i+1] && x>=navBounds[i]) return i;
	return -1;
}












function setPageHeight(h) {
	h = Math.round(h);
	pageBox.style.height = h+"px";
	pageContentsBox.style.height = h+"px";
	clippedPageBox.style.height = h+"px";
	bodyClipper.style.height = h+"px";
	
	var dropGlowTileHeight = Math.max(0,h-368);
	leftDropGlowTile.style.height = dropGlowTileHeight+"px";
	rightDropGlowTile.style.height = dropGlowTileHeight+"px";
	var dropGlowHeight = Math.max(0,h-120);
	leftDropGlow.style.height=dropGlowHeight+"px";
	rightDropGlow.style.height=dropGlowHeight+"px";
}

function setPageWidth(w) {
	w = Math.round(w);
	pageContentsBox.style.width = w+"px";
	var newLeft = Math.round(896/2-w/2);
	pageContentsBox.style.left = newLeft+"px";
	innerBurst.style.left = 0-(newLeft+258)+"px";
	if(window.innerSwoosh) innerSwoosh.style.left = -167+(48-newLeft)+"px";
	leftDropGlow.style.left = newLeft-48+"px";
	rightDropGlow.style.left = newLeft+w+"px";
	if(window.sponsorsTicker) sponsorsTicker.moveTo(80-newLeft,sponsorsTicker.b.y);
	navBar.style.left = 48-newLeft+"px";
	if(w<800) pageContents.style.left = 0-(newLeft-48)+25+"px";
	else pageContents.style.left = "25px";
}

function setPageLeft(l) {
	l = Math.round(l);
	clippedPageBox.style.left = l+"px";
	pageBox.style.left = l+"px";
}

function setSwooshTop(t) {
	t = Math.round(t);
	if(window.swoosh) swoosh.style.top = t+"px";
	if(window.innerSwoosh) innerSwoosh.style.top = t-25+"px";
}













function setPageTo(i) {
	if(i==currentNavPage) return;
	forceSetPageTo(i);
}

function forceSetPageTo(i) {
	widthTracker.goingDownForNewPage = true;
	widthTracker.w.t = 0;
	imminentNavPage = i;
  pointSpotlightAt(i);
	pointOverSpotlightAt(i);
}




















function allTrue(arr) {
	for(var i=0; i<arr.length; i++) {
		if(arr[i]==false) return false;
	}
	return true;
}

function allFalse(arr) {
	for(var i=0; i<arr.length; i++) {
		if(arr[i]==false) return false;
	}
	return true;
}

function fixIEImage(image) {
	var s = image.src;
	image.src="images/spacer.gif";
	image.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s+"' sizingMethod='image')";
}

function getPosition(elementToGet, left1Top2)  {
  if (left1Top2 == 1)
    this.position = elementToGet.offsetLeft;
  if (left1Top2 == 2)
    this.position = elementToGet.offsetTop;
  this.tempVar = elementToGet.offsetParent;
  while(this.tempVar!=null) {
    if (left1Top2 == 1)
      this.position += this.tempVar.offsetLeft;
    if (left1Top2 == 2)
      this.position += this.tempVar.offsetTop;
    this.tempVar = this.tempVar.offsetParent;
  }
  return this.position;
}





















function doFunStuff() {
	window.rip = document.createElement('img');
	rip.src = "images/fun/rip.png";
	rip.style.cssText = "position:absolute; left:0px; top:150px; z-index:100000;";
	// pageBox.appendChild(rip);
	window.rip2 = rip.cloneNode(true);
	rip2.style.left="450px"; rip2.style.top = "10px"; rip2.style.zIndex="11";
	FS.setOpacity(rip2,0);
	FS.setTimeout("FS.fade(rip2,1,.5)",2000);
	pageBox.appendChild(rip2);
	
	window.sign = document.createElement("img");
	sign.src="images/fun/sign.png";
	sign.style.cssText = "position:absolute; left:277px; bottom:0px; z-index:1000001;";
	FS.setOpacity(sign,0);
	FS.setTimeout("FS.fade(sign,1,1);",2000);
	pageBox.appendChild(sign);
	
	window.signGlow = document.createElement("img");
	signGlow.src="images/fun/signglow.png";
	signGlow.style.cssText = "position:absolute; left:277px; bottom:0px; z-index:1000000;";
	FS.setOpacity(signGlow,0);
	FS.setTimeout("FS.fade(signGlow,1,1,0,{onFinish: oscillateSignGlow});",3000);
	pageBox.appendChild(signGlow);
	
	FS.setTimeout(killFun,5000);
}

function oscillateSignGlow() {
	window.oscillator = FS.setInterval(function() {
		var t = this.elapsedTime/30/2/Math.PI;
		FS.setOpacity(signGlow,(.75+.25*Math.cos(t)));
	},0,{name:"Sign Glow Oscillator"});
}

function killFun() {
	FS.fade(sign);
	FS.fade(signGlow);
	FS.fade(rip2);
	if(window.oscillator) oscillator.terminate();
	FS.setTimeout(removeFun,1000);
}

function removeFun() {
	rip2.parentNode.removeChild(rip2);
	sign.parentNode.removeChild(sign);
	signGlow.parentNode.removeChild(signGlow);
}