var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67850223&x=2718',
		'title': '',
		'imageId': '67850223',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67850219&x=2718',
		'title': '',
		'imageId': '67850219',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67850221&x=2718',
		'title': '',
		'imageId': '67850221',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67850222&x=2718',
		'title': '',
		'imageId': '67850222',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67850220&x=2718',
		'title': '',
		'imageId': '67850220',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67850218&x=2718',
		'title': '',
		'imageId': '67850218',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67943678&x=2718',
		'title': '',
		'imageId': '67943678',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67943679&x=2718',
		'title': '',
		'imageId': '67943679',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67943680&x=2718',
		'title': '',
		'imageId': '67943680',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3887399&docid=67943677&x=2718',
		'title': '',
		'imageId': '67943677',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3887399';

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