﻿// setup namespace
var LF = LF || {};

// Functions applied on page load and on the inserted DOM in any XHR request,
// don't forget to scope the Selectors.
LF.onload = function () {
	var scope = scope || $(document);

	// link debugging
	$('a[href=LF_TEST]', scope).debug_links();
	
	// open popups
	$('a[rel=help]', scope).turnLightsDown();

	// global dom onready
	LF.global.domReadyLoad();
	
	if ($.browser.msie && $.browser.version < 7) {
		DD_belatedPNG.fix('img, h1, h2, h3, h4, h5, h6, ul, li, a, p, div, span, input, td, th, fieldset, label, dl, dd, dt');
	}
};

// global OnDOMReady()
$(document).ready(function () {
	LF.onload();
});
