d = document;
defaultText = "";

function changeTextTo( newHTML )
{
	if(	d.getElementById("changer")	)
	{
		d.getElementById("changer").innerHTML = newHTML;
	}
}

function setMouseOvers()
{	
	if(d.getElementById("compensation0"))
	{
		cache1 = new Image();
		cache1.src ="styles/accinet/images/types-of-compensation-1-mo.gif";
		
		cache2 = new Image();
		cache2.src ="styles/accinet/images/types-of-compensation-2-mo.gif";

		cache3 = new Image();
		cache3.src ="styles/accinet/images/types-of-compensation-3-mo.gif";
		
		defaultText = d.getElementById("compensation0").innerHTML;
		
		changeTextTo(defaultText);

		if( d.getElementById("compensation1") )
		{	
			elCompMan1 = d.getElementById("injury1");
			elCompMan1.onmouseover 	=	function(){
				this.style.backgroundImage  = "url(styles/accinet/images/types-of-compensation-1-mo.gif)"
				if(d.getElementById("injury1")){
					changeTextTo( d.getElementById("compensation1").innerHTML );
				}
				
			}
			elCompMan1.onmouseout	=	function(){
				this.style.backgroundImage  = "url(styles/accinet/images/types-of-compensation-1.gif)" 
				changeTextTo(defaultText);
			}
		}
		
		if( d.getElementById("compensation2") )
		{	
			elCompMan2 = d.getElementById("injury2");
			elCompMan2.onmouseover 	=	function(){
				this.style.backgroundImage  = "url(styles/accinet/images/types-of-compensation-2-mo.gif)" 
				if(d.getElementById("injury2")){
					changeTextTo( d.getElementById("compensation2").innerHTML );
				}
			}
			elCompMan2.onmouseout	=	function(){
				this.style.backgroundImage  = "url(styles/accinet/images/types-of-compensation-2.gif)" 
				changeTextTo(defaultText);
			}
		}
		
		if( d.getElementById("compensation3") )
		{
			elCompMan3 = d.getElementById("injury3");
			elCompMan3.onmouseover	=	function(){
				this.style.backgroundImage  = "url(styles/accinet/images/types-of-compensation-3-mo.gif)" 
				if(d.getElementById("injury3")){
					changeTextTo( d.getElementById("compensation3").innerHTML );
				}
			}
			elCompMan3.onmouseout	=	function(){
				this.style.backgroundImage  = "url(styles/accinet/images/types-of-compensation-3.gif)" 
				changeTextTo(defaultText);}
		}
	}
}

	function sortPanels()
	{

		if( navigator.userAgent.indexOf("MSIE")!= -1   )
		{

				
		}
		else
		{
				if(d.getElementById("ff")){
					d.getElementById("ff").className = "box-in-headerFF";
				}
				if(d.getElementById("main_page_image")){
					d.getElementById("main_page_image").style.top = "36px";
				}
		}
		
		if(d.getElementById("compensation_man") && d.getElementById("compensation_man").childNodes.length > 1)
		{
				if(d.getElementById("content_with_lhsbuts_and_box_big_blue"))
				{
					d.getElementById("content_with_lhsbuts_and_box_big_blue").style.display="block";
					
					var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
					if(!IE6)
					{
						d.getElementById("content_with_lhsbuts_and_box_big_blue").style.styleFloat = "right";
						d.getElementById("content_with_lhsbuts_and_box_big_blue").style.cssFloat = "right";
						d.getElementById("content_with_lhsbuts_and_box_big_blue").style.marginRight ="6px";
					}
//					d.getElementById("content_with_lhsbuts_and_box_big_blue").className = "f_right";
					
				}
				
				if(d.getElementById("panel_lhs"))
				{
					d.getElementById("panel_lhs").style.width="974px";
				}
		}


		if(d.getElementById("couple") && d.getElementById("coupledown"))
		{
				d.getElementById("coupledown").style.height = "88px";
				d.getElementById("coupledown").style.marginBottom = "20px";
		}
		
		if(d.getElementById("panel_rhs") && d.getElementById("panel_rhs").childNodes.length	> 1)
		{

			bottomCurve = document.createElement("DIV");
			bottomCurve.id = "panel_rhs_end";
			bottomCurve.innerHTML= "";
			
			rhside = d.getElementById("panel_rhs")
			rhside.appendChild(bottomCurve);
		}
		if(d.getElementById("couple"))
		{
			 if(d.getElementById("coupledown"))
			 {
				 d.getElementById("coupledown").style.backgroundColor ="#EDF0F7";
			 }							
		}

	}
	
	function doLoad()
	{

		sortPanels();
		setMouseOvers();
		
	}