var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883403&x=4627',
		'title': '',
		'imageId': '69883403',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883406&x=4627',
		'title': '',
		'imageId': '69883406',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883398&x=4627',
		'title': '',
		'imageId': '69883398',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883401&x=4627',
		'title': '',
		'imageId': '69883401',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883402&x=4627',
		'title': '',
		'imageId': '69883402',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883400&x=4627',
		'title': '',
		'imageId': '69883400',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883407&x=4627',
		'title': '',
		'imageId': '69883407',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883404&x=4627',
		'title': '',
		'imageId': '69883404',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883405&x=4627',
		'title': '',
		'imageId': '69883405',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883399&x=4627',
		'title': '',
		'imageId': '69883399',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007165&docid=69883397&x=4627',
		'title': '',
		'imageId': '69883397',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4007165';

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