// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

	var TLB = {}

	TLB.onload = function(func){
		if(window.addEventListener){
			window.addEventListener('load', func, false);
		}else{
			window.attachEvent('onload', func)
		}
	};
	
	TLB.onLoad = TLB.onload;
	
	TLB.toggle = function(el, id){
		if($('#'+id)[0].style.display == 'none'){
			$('#'+id).show();
			el.innerHTML = 'LESS'
		}else{
			$('#'+id).hide();
			el.innerHTML = 'MORE'
		}
	}
