var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7398949&x=922',
		'title': '',
		'imageId': '7398949',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399045&x=922',
		'title': '',
		'imageId': '7399045',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399061&x=922',
		'title': '',
		'imageId': '7399061',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399083&x=922',
		'title': '',
		'imageId': '7399083',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399086&x=922',
		'title': '',
		'imageId': '7399086',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399149&x=922',
		'title': '',
		'imageId': '7399149',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399174&x=922',
		'title': '',
		'imageId': '7399174',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399183&x=922',
		'title': '',
		'imageId': '7399183',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399264&x=922',
		'title': '',
		'imageId': '7399264',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924501&docid=7399272&x=922',
		'title': '',
		'imageId': '7399272',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #924501';

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