var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238238&x=851',
		'title': '',
		'imageId': '67238238',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238239&x=851',
		'title': '',
		'imageId': '67238239',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238237&x=851',
		'title': '',
		'imageId': '67238237',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238241&x=851',
		'title': '',
		'imageId': '67238241',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238247&x=851',
		'title': '',
		'imageId': '67238247',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238240&x=851',
		'title': '',
		'imageId': '67238240',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238253&x=851',
		'title': '',
		'imageId': '67238253',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238242&x=851',
		'title': '',
		'imageId': '67238242',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238249&x=851',
		'title': '',
		'imageId': '67238249',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3893749&docid=67238258&x=851',
		'title': '',
		'imageId': '67238258',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3893749';

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