var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603312&x=408',
		'title': '',
		'imageId': '2603312',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603321&x=408',
		'title': '',
		'imageId': '2603321',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603330&x=408',
		'title': '',
		'imageId': '2603330',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603335&x=408',
		'title': '',
		'imageId': '2603335',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603432&x=408',
		'title': '',
		'imageId': '2603432',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603441&x=408',
		'title': '',
		'imageId': '2603441',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603450&x=408',
		'title': '',
		'imageId': '2603450',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603294&x=408',
		'title': '',
		'imageId': '2603294',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603297&x=408',
		'title': '',
		'imageId': '2603297',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=476494&docid=2603301&x=408',
		'title': '',
		'imageId': '2603301',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #476494';

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