var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071295&x=511',
		'title': 'Aerial Front View',
		'imageId': '70071295',
		'alt' : 'Aerial Front View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071297&x=511',
		'title': '',
		'imageId': '70071297',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071266&x=511',
		'title': 'Front View',
		'imageId': '70071266',
		'alt' : 'Front View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071296&x=511',
		'title': 'Right-Side View',
		'imageId': '70071296',
		'alt' : 'Right-Side View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071308&x=511',
		'title': 'Aerial Right-Side View',
		'imageId': '70071308',
		'alt' : 'Aerial Right-Side View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071310&x=511',
		'title': 'Backside View',
		'imageId': '70071310',
		'alt' : 'Backside View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071311&x=511',
		'title': '',
		'imageId': '70071311',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071309&x=511',
		'title': 'Bottom View',
		'imageId': '70071309',
		'alt' : 'Bottom View',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4014750&docid=70071320&x=511',
		'title': '',
		'imageId': '70071320',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4014750';

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