var intEmpNumber = Math.floor(Math.random()*8);


var imHome,imHomeAlt,imWhy,imWhyAlt,imRepairs,imRepairsAlt,imContact,imContactAlt;

function preloadImages(obj)
{
	
	if (obj=="home")
	{
		imHome = new Image(132,66);
		imHome.src = "images/btn_home_at.gif";
		imHomeAlt = new Image(132,66);
		imHomeAlt.src = "images/btn_home_at_no.gif";
	} else
	{	
		imHome = new Image(132,66);
		imHome.src = "images/btn_home.gif";
		imHomeAlt = new Image(132,66);
		imHomeAlt.src = "images/btn_home_hover.gif";
	}
	
	if (obj=="why")
	{
		imWhy = new Image(240,66);
		imWhy.src = "images/btn_why_at.gif";
		imWhyAlt   = new Image(240,66);
		imWhyAlt.src   = "images/btn_why_at_no.gif";
	} else
	{	

		imWhy = new Image(240,66);
		imWhy.src = "images/btn_why.gif";
		imWhyAlt   = new Image(240,66);
		imWhyAlt.src   = "images/btn_why_hover.gif";
	}

	if (obj=="repairs")
	{
		imRepairs = new Image(240,66);
		imRepairs.src = "images/btn_repairs_at.gif";
		imRepairsAlt   = new Image(240,66);
		imRepairsAlt.src   = "images/btn_repairs_at_no.gif";
	} else
	{	

		imRepairs = new Image(240,66);
		imRepairs.src = "images/btn_repairs.gif";
		imRepairsAlt   = new Image(240,66);
		imRepairsAlt.src   = "images/btn_repairs_hover.gif";
	}

	if (obj=="contact")
	{
		imContact = new Image(160,80);
		imContact.src = "images/btn_contact_at.gif";
		imContactAlt   = new Image(160,80);
		imContactAlt.src   = "images/btn_contact_at_no.gif";
	} else
	{	
		imContact = new Image(160,80);
		imContact.src = "images/btn_contact.gif";
		imContactAlt   = new Image(160,80);
		imContactAlt.src   = "images/btn_contact_hover.gif";
	}
}

function PopWindow(url) {
	disp = window.open("","pop","height=440,width=560");
	content = '<html>';
	content += '<title>Curry&#146;s Inc. - Used Cars</title>';
	content += '</head>';
	content += '<body>';
	content += '<p align="center"><img src="' + url + '"></P>';
	content += '<h3 align="center"><a href="#" onClick="self.close()">Close Window</A></h3>';
	content += '</body></html>';
	disp.document.write(content);
}

