var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762349&x=5327',
		'title': '',
		'imageId': '69762349',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762342&x=5327',
		'title': '',
		'imageId': '69762342',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762348&x=5327',
		'title': '',
		'imageId': '69762348',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762341&x=5327',
		'title': '',
		'imageId': '69762341',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762343&x=5327',
		'title': '',
		'imageId': '69762343',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762340&x=5327',
		'title': '',
		'imageId': '69762340',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762345&x=5327',
		'title': '',
		'imageId': '69762345',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762346&x=5327',
		'title': '',
		'imageId': '69762346',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762347&x=5327',
		'title': '',
		'imageId': '69762347',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4001958&docid=69762344&x=5327',
		'title': '',
		'imageId': '69762344',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4001958';

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