var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888004&x=929',
		'title': '',
		'imageId': '66888004',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888005&x=929',
		'title': '',
		'imageId': '66888005',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888006&x=929',
		'title': '',
		'imageId': '66888006',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888007&x=929',
		'title': '',
		'imageId': '66888007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888008&x=929',
		'title': '',
		'imageId': '66888008',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888009&x=929',
		'title': '',
		'imageId': '66888009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888010&x=929',
		'title': '',
		'imageId': '66888010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888011&x=929',
		'title': '',
		'imageId': '66888011',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888012&x=929',
		'title': '',
		'imageId': '66888012',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880431&docid=66888013&x=929',
		'title': '',
		'imageId': '66888013',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3880431';

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