//= require <jquery>

// setup namespace
var BK = BK || {};

// debug non-implemented links
$.fn.debug_links = function() {
  return this.each(function() {
		$(this).click(function() {
			alert("Sorry, this link is not implemented yet.");
			return false;
		});
	});
};

// Functions applied on page load and on the inserted DOM in any XHR request,
// don't forget to scope the Selectors.
BK.onload = function () {
	var scope = scope || $(document);
	
	$('a[href=BK_TEST]', scope).debug_links();
};

// Functions only applied on DOM ready, includes BK.onload.
BK.load_once = function() {
	BK.onload();
	
};

// global OnDOMReady()
$(document).ready(function() {
	BK.load_once();
});

//write javascript.css link
var jsCss = document.createElement('link');
jsCss.rel = 'stylesheet';
jsCss.href = 'client/87/87140/css/javascript.css';
jsCss.type = 'text/css';
document.getElementsByTagName('head')[0].appendChild(jsCss);