/*********************************************************
 function:		element_onresize
 
 description:	reduce the width of the element 
				by 1 percentage point 
				for every 80 pixel client width
				
				for elements over 633px wide 
				there is no resizing
				
				* key client widths *
		
				800x600		211px
				1024x768	405px
				1280x1024	633px
		
				refer to style 'landingtextarea' which 
				defaults to 97% (IE), 95% (Firefox)
			
**********************************************************/
function element_onresize(obj)
{
	try
	{
		var isFirefox = (navigator.product == 'Gecko');
		var width = parseInt(obj.clientWidth);
		var newWidth = isFirefox ? 95 : 97;
		var reducePct = 0;
		
		if (width <= 633)
		{
			reducePct = parseInt((633 - width) / 80);
			newWidth = (newWidth - reducePct);
		}
		
		obj.style.width = newWidth.toString() + "%";
	}
	catch (e) {} // suppress 
	
	return true;
}