var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70095366&x=2014',
		'title': '',
		'imageId': '70095366',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70095372&x=2014',
		'title': '',
		'imageId': '70095372',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70095375&x=2014',
		'title': '',
		'imageId': '70095375',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70095381&x=2014',
		'title': '',
		'imageId': '70095381',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70095384&x=2014',
		'title': '',
		'imageId': '70095384',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70095391&x=2014',
		'title': '',
		'imageId': '70095391',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70095461&x=2014',
		'title': '',
		'imageId': '70095461',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70097128&x=2014',
		'title': '',
		'imageId': '70097128',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70097140&x=2014',
		'title': '',
		'imageId': '70097140',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4015479&docid=70097148&x=2014',
		'title': '',
		'imageId': '70097148',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4015479';

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