checkversion();
function changeSelection(selected, unselected)
{
	if(selected=='left')
	{
		document.getElementById('tab2right').src='images\\righttab4.JPG';
		document.getElementById('tab2left').src='images\\lefttab4.JPG';
		document.getElementById('tab1right').src='images\\righttab3.JPG';
		document.getElementById('tab1left').src='images\\lefttab3.JPG';
		document.getElementById('PERCENT50').className='tabSelected';
		document.getElementById('tab2').className='tabUnselected';		
		document.getElementById('tab2').style.background='#93BEE2';
		document.getElementById('tab3').style.background='#93BEE2';
		document.getElementById('tab1').style.background='#93BEE2';
		document.getElementById('PERCENT50').style.background='#D4D0C8';
		document.getElementById('tab6').style.background='#D4D0C8';
		document.getElementById('tab4').style.background='#D4D0C8';
	}
	else
	{
		document.getElementById('tab1right').src='images\\righttab4.JPG';
		document.getElementById('tab1left').src='images\\lefttab4.JPG';
		document.getElementById('tab2right').src='images\\righttab3.JPG';
		document.getElementById('tab2left').src='images\\lefttab3.JPG';
	 	document.getElementById('PERCENT50').className='tabUnselected';
		document.getElementById('tab2').className='tabSelected';
		document.getElementById('tab2').style.background='#D4D0C8';
		document.getElementById('tab3').style.background='#D4D0C8';
		document.getElementById('tab1').style.background='#D4D0C8';
		document.getElementById('PERCENT50').style.background='#9BBDE3';
		document.getElementById('tab6').style.background='#9BBDE3';
		document.getElementById('tab4').style.background='#9BBDE3';		
	}
}
function clearTheRest(startrow,startcol)
{
  if(startcol>1)
  {
    for(x=startcol;x<=8;x++)
    {
      var a;
      a = "tdcolors"+startrow+x;
      document.getElementById(a).background="";
      document.getElementById(a).onmouseover=""
      document.getElementById(a).onmouseout="";
    }
    var t;
    t=parseInt(startrow)+1;
    for(y=t;y<=8;y++)
    {
      for (w=1;w<=8;w++) 
      {
        var z;
        z = "tdcolors"+y+w;
        document.getElementById(z).background="";
        document.getElementById(z).onmouseover=""
        document.getElementById(z).onmouseout="";
      }
    }
  }
  else
  {
    for(y=startrow;y<=8;y++)
    {
      for (w=1;w<=8;w++) 
      {
        var z;
        z = "tdcolors"+y+w;
        document.getElementById(z).background="";
        document.getElementById(z).onmouseover=""
        document.getElementById(z).onmouseout="";
      }
    }
  }
}

function init()
{
  if (window.Event) 
  {  
    document.captureEvents(Event.MOUSEMOVE);
  }
  document.onmousemove = getXY;
}

function getXY(e) 
{
  x = (window.Event) ? e.pageX : event.clientX;
  y = (window.Event) ? e.pageY : event.clientY;
  var twidth=document.getElementById('tooltipBox').clientWidth;
  document.getElementById('toolTipBox').style.top  = y-44+document.body.scrollTop+"px";
  document.getElementById('toolTipBox').style.left= x-twidth-4+document.body.scrollLeft+"px";
}

function toolTip(text,me) 
{
  document.getElementById('toolTipBox').innerHTML=text;
  document.getElementById('toolTipBox').style.display="block";
  window.onscroll=updatePos;
  var obj=document.getElementById('toolTipBox'); 
  obj.style.filter="alpha(opacity='0')";  
  high1('toolTipBox');
}

function updatePos() 
{
  var ev=arguments[0]?arguments[0]:event;
  var posx=ev.clientX;
  var posy=ev.clientY;
  var twidth=posx-document.getElementById('tooltipBox').clientwidth;
  document.getElementById('toolTipBox').style.top  = posy-44;
  //document.getElementById('toolTipBox').style.left= posx+twidth+"px";
}

function high1(which2) 
{
  clearInterval(lowlighting1) 
  highlighting1=setInterval("highlightit1()",50)
} 

function low1(which2) 
{ 
  clearInterval(highlighting1) 
  theobject1=which2 
  lowlighting1=setInterval("lowlightit1()",50)
}

function lowlightit1() 
{ 
  if (document.getElementById('toolTipBox').filters&&document.getElementById('toolTipBox').filters.alpha.opacity>0) 
  {
    document.getElementById('toolTipBox').filters.alpha.opacity-=5
  }
  else if (window.lowlighting1) 
  {        
    clearInterval(lowlighting1) 
  }
} 

function highlightit1()
{
  if(document.getElementById('toolTipBox').filters && document.getElementById('toolTipBox').filters.alpha.opacity<100)
  {
    document.getElementById('toolTipBox').filters.alpha.opacity+=5 
  }      
  else if (window.highlighting1) 
  {
    clearInterval(highlighting1) 
  }
}

function getObj(str) 
{ 
  return(document.getElementById(str)); 
} 

function getObj(str) 
{ 
  return(document.getElementById(str)); 
}
function checkversion()
{
	if (navigator.appName.indexOf('Microsoft') != -1)
		{
			var a=1;
		//it's IE
		}
	else
	{
		alert("This site does not support your browser.  This site only supports Internet Explorer")
		window.location = "http://www.microsoft.com/downloads/details.aspx?FamilyID=9ae91ebe-3385-447c-8a30-081805b2f90b&displaylang=en"	
	}

}