var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69372875&x=527',
		'title': '',
		'imageId': '69372875',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69372878&x=527',
		'title': '',
		'imageId': '69372878',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69372876&x=527',
		'title': '',
		'imageId': '69372876',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69372880&x=527',
		'title': '',
		'imageId': '69372880',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69373586&x=527',
		'title': '',
		'imageId': '69373586',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69372882&x=527',
		'title': '',
		'imageId': '69372882',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69372879&x=527',
		'title': '',
		'imageId': '69372879',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69372877&x=527',
		'title': '',
		'imageId': '69372877',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69372881&x=527',
		'title': '',
		'imageId': '69372881',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008604&docid=69373587&x=527',
		'title': '',
		'imageId': '69373587',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008604';

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";
	})
}
