var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953332&x=5150',
		'title': '',
		'imageId': '69953332',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953393&x=5150',
		'title': '',
		'imageId': '69953393',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953402&x=5150',
		'title': '',
		'imageId': '69953402',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953382&x=5150',
		'title': '',
		'imageId': '69953382',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953383&x=5150',
		'title': '',
		'imageId': '69953383',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953335&x=5150',
		'title': '',
		'imageId': '69953335',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953338&x=5150',
		'title': '',
		'imageId': '69953338',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953341&x=5150',
		'title': '',
		'imageId': '69953341',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953379&x=5150',
		'title': '',
		'imageId': '69953379',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953396&x=5150',
		'title': '',
		'imageId': '69953396',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009732&docid=69953424&x=5150',
		'title': '',
		'imageId': '69953424',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009732';

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