var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023728&x=2131',
		'title': '',
		'imageId': '70023728',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023736&x=2131',
		'title': '',
		'imageId': '70023736',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023742&x=2131',
		'title': '',
		'imageId': '70023742',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023746&x=2131',
		'title': '',
		'imageId': '70023746',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023749&x=2131',
		'title': '',
		'imageId': '70023749',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023752&x=2131',
		'title': '',
		'imageId': '70023752',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023756&x=2131',
		'title': '',
		'imageId': '70023756',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023759&x=2131',
		'title': '',
		'imageId': '70023759',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023762&x=2131',
		'title': '',
		'imageId': '70023762',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023765&x=2131',
		'title': '',
		'imageId': '70023765',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023776&x=2131',
		'title': '',
		'imageId': '70023776',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023787&x=2131',
		'title': '',
		'imageId': '70023787',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023790&x=2131',
		'title': '',
		'imageId': '70023790',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023793&x=2131',
		'title': '',
		'imageId': '70023793',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023796&x=2131',
		'title': '',
		'imageId': '70023796',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023802&x=2131',
		'title': '',
		'imageId': '70023802',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023805&x=2131',
		'title': '',
		'imageId': '70023805',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023808&x=2131',
		'title': '',
		'imageId': '70023808',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023811&x=2131',
		'title': '',
		'imageId': '70023811',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023816&x=2131',
		'title': '',
		'imageId': '70023816',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023823&x=2131',
		'title': '',
		'imageId': '70023823',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012789&docid=70023826&x=2131',
		'title': '',
		'imageId': '70023826',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012789';

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