var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894142&x=453',
		'title': '',
		'imageId': '69894142',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894145&x=453',
		'title': '',
		'imageId': '69894145',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894149&x=453',
		'title': '',
		'imageId': '69894149',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894146&x=453',
		'title': '',
		'imageId': '69894146',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894150&x=453',
		'title': '',
		'imageId': '69894150',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894143&x=453',
		'title': '',
		'imageId': '69894143',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894148&x=453',
		'title': '',
		'imageId': '69894148',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894141&x=453',
		'title': '',
		'imageId': '69894141',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894144&x=453',
		'title': '',
		'imageId': '69894144',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4007465&docid=69894147&x=453',
		'title': '',
		'imageId': '69894147',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4007465';

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