// JavaScript Document

function pdf_preview(ref, src, loc){
	hs.registerOverlay({
		html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
		position: 'top right',
		fade: 2 // fading the semi-transparent overlay looks bad in IE
	});
	hs.Expander.prototype.onImageClick = function (sender) {
		//return false;
	}
	hs.restoreCursor = null;
	hs.lang = {restoreTitle: "", fullExpandTitle: "Expand this graphic"};

	return hs.expand(ref, {wrapperClassName: 'borderless', src: src});
}

function highlight_preview_icon(ref){
	ref.src = "/Assets/PDF-Previewer/preview-icon-sm-mouseover.gif";
}

function restore_preview_icon(ref){
	ref.src = "/Assets/PDF-Previewer/preview-icon-sm.gif";
}
