var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044007&x=3746',
		'title': '',
		'imageId': '70044007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044009&x=3746',
		'title': '',
		'imageId': '70044009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044011&x=3746',
		'title': '',
		'imageId': '70044011',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044012&x=3746',
		'title': '',
		'imageId': '70044012',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044014&x=3746',
		'title': '',
		'imageId': '70044014',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044013&x=3746',
		'title': '',
		'imageId': '70044013',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044010&x=3746',
		'title': '',
		'imageId': '70044010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044008&x=3746',
		'title': '',
		'imageId': '70044008',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044006&x=3746',
		'title': '',
		'imageId': '70044006',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013451&docid=70044035&x=3746',
		'title': '',
		'imageId': '70044035',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013451';

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