var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238873&x=392',
		'title': '',
		'imageId': '70238873',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238874&x=392',
		'title': '',
		'imageId': '70238874',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238875&x=392',
		'title': '',
		'imageId': '70238875',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238876&x=392',
		'title': '',
		'imageId': '70238876',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238878&x=392',
		'title': '',
		'imageId': '70238878',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238879&x=392',
		'title': '',
		'imageId': '70238879',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238880&x=392',
		'title': '',
		'imageId': '70238880',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238881&x=392',
		'title': '',
		'imageId': '70238881',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238884&x=392',
		'title': '',
		'imageId': '70238884',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020283&docid=70238885&x=392',
		'title': '',
		'imageId': '70238885',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4020283';

document.body.style.overflow = "hidden";
var closeElement = document.querySelector("#lightbox #close");
var closeLoadingElement = document.querySelector("#lightbox #closeLoading");

if (closeElement) {
	closeElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}

if (closeLoadingElement) {
	closeLoadingElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}
