var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234947&x=4240',
		'title': '',
		'imageId': '69234947',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234949&x=4240',
		'title': '',
		'imageId': '69234949',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234952&x=4240',
		'title': '',
		'imageId': '69234952',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234953&x=4240',
		'title': '',
		'imageId': '69234953',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234951&x=4240',
		'title': '',
		'imageId': '69234951',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234946&x=4240',
		'title': '',
		'imageId': '69234946',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234955&x=4240',
		'title': '',
		'imageId': '69234955',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234954&x=4240',
		'title': '',
		'imageId': '69234954',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234948&x=4240',
		'title': '',
		'imageId': '69234948',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234950&x=4240',
		'title': '',
		'imageId': '69234950',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978953&docid=69234956&x=4240',
		'title': '',
		'imageId': '69234956',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3978953';

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