var OBOXORIGIN = 0;

function XBOXRESIZE()
{
	OBOXORIGIN = $('.LOCATE').parent().height();

	$('.LOCATE').mouseover
	(
		function()
		{
			$('.LOCATE').css
			(
				{
					'width':'1000px',
					'z-index':'10000',
					'position':'absolute',
					'right':'0',
					'top':'0'
				}
			);

			VARBOXHIGH = $('.LOCATE').height();

			$('.LOCATE').parent().css
			(
				{
					'position':'relative',
					'height':VARBOXHIGH
				}
			);
		}
	)
	.mouseout
	(
		function()
		{
			$('.LOCATE').css
			(
				{
					'position':'relative',
					'width':'240px'
				}
			);

			$('.LOCATE').parent().css
			(
				{
					'position':'relative',
					'height':OBOXORIGIN
				}
			);
		}
	);
}

function XPHOFOUNDR(OXXXXXXXXX)
{
	OXXXXXXXXX.src = "images/blank.jpg";
	OXXXXXXXXX.onerror = "";
	return true;
}

function XODOMETERS()
{
	$('#OMETER').parent().hide();

var	OXXXXXXXXX = $('#OMETER').text();
	OEXXXXXXXX = OXXXXXXXXX.split('');

	$('#HEADER').empty().append('<div class="OMETER"></div>');

	for (var i=0;i<OEXXXXXXXX.length;i++)
	{
		if ( i<6 )
		{
			$('.OMETER').append('<img src="images/METER'+OEXXXXXXXX[i]+'.jpg" />');

		}
		else
		{
			$('.OMETER').append('<img src="images/METEX'+OEXXXXXXXX[i]+'.jpg" />');

		}

	}

}

$(document).ready
(
	function()
	{
		//XVEORESIZE();
		XBOXRESIZE();
		XODOMETERS();
	}
);



