var colors = new Array(	"#7b7b7b", "#7b7b7b" , "#ffffff");

//	Set the basic color
var basicColor = "#F19B20";

//	Set the global vars to their initial state
var curColIdx = 0;
var curElem;

var	mousePosX = 0;
var mousePosY = 0;

//	Set the glow speed
var speed = 1;

//	Initialize glower scripts
function init()
{
	//	ie only :p

	if (!document.layers)
	{
		document.onmouseover = determine_tag;
		document.onmouseout = end_glow;
		check_state();
	}
}

//	Stop the glowing of a link
function end_glow()
{
	if (curElem)
	{
		//	Reset values
		curElem.style.color = basicColor;
		curColIdx = 0;
		curElem = false;
	}
}

//	Stop the glowing of a link
function start_glow(ev)
{
		// If element does not exist, return
		if (!curElem) return;
		ev = curElem;

		//	determine which color is being used
		tempCol = ev.style.color;
		if (tempCol == basicColor)
		{
			//	Reset colorindex
			curColIdx = 0;
		}
		if (!tempCol)
		{
			//	Color not yet set, set index to 0
			curColIdx = 0;
			tempCol = basicColor;
		}
		else
		{
			// 	Search current color
			itemN = colors.length;
			for (f = 0; f < itemN; f++)
			{
				if (colors[f] == tempCol)
				{
					//	Color found, update counter
					if (f >= (itemN-1))
					{
						// Jump to first color
						curColIdx = 0;
					}
					else
					{
						//	Increase color index with one
						curColIdx = f + 1;
					}

				} // end if: check for color

			}//	end if: search color

		}//	end if: initiate search

		//	set color
		ev.style.color = colors[curColIdx];

}

function determine_tag()
{
	ev = window.event.srcElement;
	mousePosX = window.event.offsetX;
	mousePosY = window.event.offsetY;

	tag = ev.tagName;

	//	Respond to anchor tags only
	if (tag == "A")
	{
		if (curElem)
		{
			curElem = false;
			return;
		}
		curElem = ev;
	}
	else
	{
		curElem = false;
	}
}

function check_state()
{
	if (curElem)
	{
		start_glow();
	}

		//	Object is selected, glow
	if (!curElem) end_glow();//	Object is not selected, do not glow


	//	Set timer
	window.setTimeout("check_state()", speed);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function noSpam(user,domain){
		locationstring = "mailto:" + user + "@" + domain;
		window.location = locationstring;
	}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
