var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586939&x=5910',
		'title': '',
		'imageId': '69586939',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586944&x=5910',
		'title': '',
		'imageId': '69586944',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586943&x=5910',
		'title': '',
		'imageId': '69586943',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586946&x=5910',
		'title': '',
		'imageId': '69586946',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586945&x=5910',
		'title': '',
		'imageId': '69586945',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586942&x=5910',
		'title': '',
		'imageId': '69586942',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586948&x=5910',
		'title': '',
		'imageId': '69586948',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586940&x=5910',
		'title': '',
		'imageId': '69586940',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586947&x=5910',
		'title': '',
		'imageId': '69586947',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586941&x=5910',
		'title': '',
		'imageId': '69586941',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3994234&docid=69586949&x=5910',
		'title': '',
		'imageId': '69586949',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3994234';

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