var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888374&x=916',
		'title': '',
		'imageId': '66888374',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888375&x=916',
		'title': '',
		'imageId': '66888375',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888367&x=916',
		'title': '',
		'imageId': '66888367',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888368&x=916',
		'title': '',
		'imageId': '66888368',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888369&x=916',
		'title': '',
		'imageId': '66888369',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888370&x=916',
		'title': '',
		'imageId': '66888370',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888366&x=916',
		'title': '',
		'imageId': '66888366',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888372&x=916',
		'title': '',
		'imageId': '66888372',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888371&x=916',
		'title': '',
		'imageId': '66888371',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880465&docid=66888373&x=916',
		'title': '',
		'imageId': '66888373',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3880465';

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