var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943718&x=344',
		'title': '',
		'imageId': '69943718',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943730&x=344',
		'title': '',
		'imageId': '69943730',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943727&x=344',
		'title': '',
		'imageId': '69943727',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943715&x=344',
		'title': '',
		'imageId': '69943715',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943722&x=344',
		'title': '',
		'imageId': '69943722',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943714&x=344',
		'title': '',
		'imageId': '69943714',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943717&x=344',
		'title': '',
		'imageId': '69943717',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943719&x=344',
		'title': '',
		'imageId': '69943719',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943716&x=344',
		'title': '',
		'imageId': '69943716',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009324&docid=69943731&x=344',
		'title': '',
		'imageId': '69943731',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009324';

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