var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751890&x=823',
		'title': 'Quantity of pieces',
		'imageId': '69751890',
		'alt' : 'Quantity of pieces',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751891&x=823',
		'title': '',
		'imageId': '69751891',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751892&x=823',
		'title': '',
		'imageId': '69751892',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751893&x=823',
		'title': '',
		'imageId': '69751893',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751894&x=823',
		'title': '',
		'imageId': '69751894',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751895&x=823',
		'title': '',
		'imageId': '69751895',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751902&x=823',
		'title': '',
		'imageId': '69751902',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751914&x=823',
		'title': '',
		'imageId': '69751914',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751919&x=823',
		'title': '',
		'imageId': '69751919',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751922&x=823',
		'title': '',
		'imageId': '69751922',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001659&docid=69751927&x=823',
		'title': '',
		'imageId': '69751927',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4001659';

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