
function doResize(){	

	/*
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	//alert(screenWidth)
	var thisBg;

	if (screenWidth < 1025)
	{
		thisBg = "_bg.jpg";
		//alert('1');
	}
	else if (screenWidth < 1290)
	{
		thisBg = "_bg2.jpg";
		//alert('2');
	}
	else if (screenWidth < 9000)
	{
		thisBg = "_bg3.jpg";
		//alert('3');
	}

	document.body.style.backgroundImage = "url('/images/"+thisBg+"')";
	return;
	*/
	//if browser supports window.innerWidth
	if (window.innerWidth){
		toolX = window.outerWidth - window.innerWidth;
		toolY = window.outerHeight - window.innerHeight;
	}	
	else if (document.all){//else if browser supports document.all (IE 4+)
		//resize it first just so we know :)
		top.window.resizeTo(990,700);
		toolX = 990 - document.body.clientWidth;
		toolY = 700 - document.body.clientHeight;
	}

	top.window.resizeTo((1024+toolX),(659+toolY)); //659
}
//doResize();

function clickThumbx(thisThumb)
{
	thumbSrc = thisThumb.src;
	thumbSrc = thumbSrc.split('/');
	thumbSrc = thumbSrc[thumbSrc.length-1];
	thumbSrc = thumbSrc.substring(0, thumbSrc.indexOf('_thumb')) + '.jpg';
	
}

function overThumb(thisThumb)
{
	thisThumb.style.margin = '0px';
	thisThumb.style.border = '3px solid #999999';
}

function outThumb(thisThumb)
{
	thisThumb.style.margin = '3px';
	thisThumb.style.border = '0px';
}

function showDiv(thisDiv)
{
	var divs = new Array("deposit","directions","service");
	
	for (i=0; i<divs.length; i++)
	{
		if (thisDiv == divs[i])
		{
			
		}
		else
		{
			document.getElementById(divs[i]).style.display="none";
		}
	}
	document.getElementById(thisDiv).style.display="block";
}

function showDirectionsDiv(thisDiv)
{
	var divs = new Array("directions0","directions1","directions2","directions3","directions4");
	
	for (i=0; i<divs.length; i++)
	{
		if (thisDiv != divs[i])
		{
			document.getElementById(divs[i]).style.display="none";
		}
	}
	document.getElementById(thisDiv).style.display="block";
}
