<commit_before>/*
	Lightbox JS: Fullsize Image Overlays 
	by <NAME> - http://www.huddletogether.com

	For more information on this script, visit:
	http://huddletogether.com/projects/lightbox/

	Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
	(basically, do anything you want, just leave my name and link)
	
	Table of Contents
	-----------------
	Configuration
	
	Functions
	- getPageScroll()
	- getPageSize()
	- pause()
	- getKey()
	- listenKey()
	- showLightbox()
	- hideLightbox()
	- initLightbox()
	- addLoadEvent()
	
	Function Calls
	- addLoadEvent(initLightbox)

*/



//
// Configuration
//

var initSubTextPath=location.pathname.indexOf("gallery");
var startPath=location.pathname.substring(0,initSubTextPath);
var imagesPath=startPath+"Skins/Piyo/Images/";

// If you would like to use a custom loading image or close button reference them in the next two lines.
var loadingImage = imagesPath+'loading.gif';		
var closeButton = imagesPath+'close.gif';		
var overlayImage = imagesPath+'overlay.png';





//
// getPageScroll()
// Returns array with x,y page scroll values.
// Core code from - quirksmode.org
//
function getPageScroll(){

	var yScroll;
<commit_msg>Attempting to make lightbox.js more general for any skin to use.<commit_after>/*
	Lightbox JS: Fullsize Image Overlays 
	by <NAME> - http://www.huddletogether.com

	For more information on this script, visit:
	http://huddletogether.com/projects/lightbox/

	Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
	(basically, do anything you want, just leave my name and link)
	
	Table of Contents
	-----------------
	Configuration
	
	Functions
	- getPageScroll()
	- getPageSize()
	- pause()
	- getKey()
	- listenKey()
	- showLightbox()
	- hideLightbox()
	- initLightbox()
	- addLoadEvent()
	
	Function Calls
	- addLoadEvent(initLightbox)

*/



//
// Configuration
//

var imagesPath = '/Subtext.Web' /* needs to be removed for prod */

if(location.pathname.indexOf(imagesPath) < 0)
{
	imagesPath = '';
}

// If you would like to use a custom loading image or close button reference them in the next two lines.
var loadingImage = imagesPath + '/images/loading.gif';		
var closeButton = imagesPath + '/images/close.gif';
var overlayImage = imagesPath + '/images/overlay.png';

//
// getPageScroll()
// Returns array with x,y page scroll values.
// Core code from - quirksmode.org
//
function getPageScroll(){

	var yScroll;

{'fraction_non_alphanumeric': 0.12819488817891375, 'fraction_numerical': 0.003993610223642172, 'mean_word_length': 3.489247311827957, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5147043', 'n_tokens_mistral': 816, 'n_tokens_neox': 771, 'n_words': 231}