var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768880&x=502',
		'title': '',
		'imageId': '69768880',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768883&x=502',
		'title': '',
		'imageId': '69768883',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768887&x=502',
		'title': '',
		'imageId': '69768887',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768891&x=502',
		'title': '',
		'imageId': '69768891',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768893&x=502',
		'title': '',
		'imageId': '69768893',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768875&x=502',
		'title': '',
		'imageId': '69768875',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768876&x=502',
		'title': '',
		'imageId': '69768876',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768879&x=502',
		'title': '',
		'imageId': '69768879',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768878&x=502',
		'title': '',
		'imageId': '69768878',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4002226&docid=69768924&x=502',
		'title': '',
		'imageId': '69768924',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4002226';

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