function GetWinWidth()
{
	var myWidth = 0, myHeight = 0;
	
	if ( typeof(window.innerWidth) == 'number' )
	{
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}
	else if ( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight) )
	{
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	}
	else if ( document.body && (document.body.clientWidth || document.body.clientHeight) )
	{
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	
	//window.alert('Width = ' + myWidth + ' and height = ' + myHeight);
	
	return myWidth;
}

var o_animated;
function BodyLoaded()
{
	if ( window.s_title != null && window.s_title != "" )
		document.title = window.s_title;
	
	window.status = "www.amav.com";
	
	// start animation
	try
	{
		o_animated = document.getElementById(s_animated);
		if ( o_animated != null )
		{
			// start (750, 0)
			// middle (0, 50)
			// end (250, 100)
			
			o_animated = new Animation(o_animated, 1, 4000, "high", ChangeSrc);
			o_animated.moveTo(g_margin, 50);
			o_animated.addCommand("moveTo(g_margin + n_outcome_left, 150)");
		}
	}
	catch (e)
	{
	}
}


function ChangeSrc()
{
	imgAnimated.style.display = "none";
	imgAnimated2.style.display = "block";
	o_animated.endFunction = null;
}

function SetButtonStyle(element, b_over)
{
	if(b_over == 1)
		element.className = "BUTTON BTN_MOUSE_OVER";
	else
		element.className = "BUTTON BTN_MOUSE_OUT";
}

function ToggleHeaderLinkClass(o_element)
{
	if ( o_element.className == "HEADER_LINK_OFF" )
		o_element.className = "HEADER_LINK_ON";
	else
		o_element.className = "HEADER_LINK_OFF";
}

