function preLdImg(oHref) 
{
	if (typeof(oHref) != 'string')
	{ 
	  return; 
	}
	
	if (window.imgLdAr)
	{ 
	  for (var x = 2; x < window.imgLdAr.length; x++)
	  { 
	    imgLdAr[x].onerror = null; 
	    imgLdAr[x].onload = null; 
	  } 
	}
	
	window.imgLdAr = new Array(); 	
	window.imgCount = 0;
	window.hasLoadedImg = new Array();
	
	for(var x = 2; x < arguments.length; x++)
	{
		if (typeof(arguments[x]) != 'string' || !document.images) 
		{ 
		  self.location.href = oHref; 
		}
		
		imgLdAr[x] = new Image();
		imgLdAr[x].onload = new Function('if (hasLoadedImg[imgLdAr[' + x + '].src]) { return; } hasLoadedImg[imgLdAr[' + x + '].src] = true; window.imgCount++; ' + (arguments[1] ? (arguments[1] + '( window.imgCount / ' + (arguments.length - 2) + ' );') : '') +	"if (imgCount == " + (arguments.length - 2) + ") { self.location.href = '" + oHref + "'; }");
		imgLdAr[x].onerror = new Function("for(var x = 2; x < window.imgLdAr.length;x++){ imgLdAr[x].onerror=null; imgLdAr[x].onload=null; } if (window.confirm('Pre-load error:\\n\\nThe following image failed to load:\\n'+this.src+'\\n\\nDo you want to jump to the next page without pre-loading images?')) { self.location.href = '" + oHref + "'; }");
		imgLdAr[x].src = arguments[x];

		if (imgLdAr[x].complete) 
		{ 
		  imgLdAr[x].onload(); 
		}
	}
}

function DelayedRedirect(strURL, lngSeconds)
{
  window.setTimeout("Redirect('" + strURL + "')", lngSeconds);
}

function Redirect(strURL)
{
  window.location = strURL;
}

function DelayedBack(lngSeconds)
{
  window.setTimeout("Back()", lngSeconds);
}

function Back()
{
  history.back();
}
