/* -*- mode: c; tab-width: 2; c-tab-always-indent: t; c-basic-offset: 2; comment-column: 0 -*- */
jQuery.ajaxSetup({ 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} })

var $j = jQuery.noConflict(), $ = function(x){return document.getElementById(x);};
document.documentElement.className += ' js';
/* Add "hover" class to elements on with class name "hvr" in IE6 */
/*@cc_on
@if (@_jscript_version < 5.7)
(function(){
  var rx = /^hvr(?:\s|$)|\shvr(?:\s|$)/;
	function onMouseHover() {
		var e = event;
		for (var el = e.srcElement; el; el = el.parentNode){
			if (!rx.test(el.className))
				continue;
			if (e.type == 'mouseover')
				el.className += ' hover';
			else
				el.className = el.className.replace(/^hover(?:\s|$)|\shover(?:\s|$)/, ' ');
		}
	}

	document.attachEvent('onmouseout', onMouseHover);
	document.attachEvent('onmouseover', onMouseHover);
})();
@end @*/

var Boone = {
  Page: {}
}

$j(function(){
  if ('init' in Boone.Page)
    Boone.Page.init();
});

$j('a.print').live('click', function(e){
	e.preventDefault();
	var win = window.open(this.href, 'print_page', 'width=800,height=600,resizable=yes,scrollbars=yes');
	win.onload = function(){
		this.print();
		win = win.onload = null;
		this.close();
	}
});


$j('span.show-info').live('click', function(e){
	$j(this.parentNode).addClass('info-shown');
	$j(this.parentNode.hash).slideDown('fast');
	return false;
});

$j('span.hide-info').live('click', function(e){
	$j(this.parentNode).removeClass('info-shown');
	$j(this.parentNode.hash).slideUp('fast');
	return false;
});
