function showLayer(thislayer){
  var srcElement = event.srcElement;
  var xPos = parseInt(srcElement.offsetLeft);
  var yPos = parseInt(srcElement.offsetTop);

  thislayer.style.left = xPos+100;
  thislayer.style.top = yPos;
};

function hideLayer(thislayer){
  if(event.toElement != thislayer &&
     thislayer.contains(event.toElement) == false)
  {
		thislayer.style.left = -200
		thislayer.style.top = -1000
	}
};

function document_onmouseover()
{
   var srcElement = event.srcElement;
   if (srcElement.tagName == "TD" && typeof(srcElement.RollOver) != "undefined")
   {
      srcElement.style.color = "#e7e7f2";
      srcElement.style.backgroundColor = "#638F79";
   }
}

function document_onmouseout()
{
   var srcElement = event.srcElement;
   if (srcElement.tagName == "TD" && typeof(srcElement.RollOver) != "undefined")
      {
         srcElement.style.color = "#638F79";
         srcElement.style.backgroundColor = "#E9EDCD";
      }
}

function goPage(src)
{
   window.location.href = src;
}

function navigate_on()
{
   var srcElement = event.srcElement;
      srcElement.style.color = "yellow";
}

function navigate_out()
{
   var srcElement = event.srcElement;
         srcElement.style.color = "darkblue";
}


var currentImg=1;
var numOfImg=2;

function window_onLoad()
{
  setTimeout("switchImage()",500);
}


function window_onLoad2()
{
  PopupWindow = window.open("promotion.htm","Promotion", "width=380,height=300,left=250, top=250, resizable=0,status=0,titlebar=0");
  setTimeout("switchImage()",500);
  PopupWindow.focus();
}

function switchImage()
{
	//currentImg++;
	//document.switchImg.src="image\\special" + currentImg + ".gif";
	//if (currentImg==numOfImg)
	//{
	//	currentImg=0;
	//	setTimeout("switchImage()",500);
	//}
	//else
	//{
	//	setTimeout("switchImage()",500);
	//}
}


function showDetails(myURL)
{
	detailsWindow = window.open(myURL,"Photo","width=500,height=530,resizable,scrollbars,top");
	detailsWindow.focus();
	return false;
}
function bookmark()
{
	if ( document.all )window.external.AddFavorite(document.location, "Allstate Container Sales & Leasing");
} 

function OpenPopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=475,height=500,left = 0,top = 0');");
}


function Unload_popup(){
  popup_div.style.left = -2000
}


document.onmouseover = document_onmouseover;
document.onmouseout = document_onmouseout;