	<!-- YAHOO.utils -->
	YAHOO.namespace( 'utils');
	YAHOO.utils = new Object();
	YAHOO.utils.tree = new Object;
	YAHOO.utils.tree.tree;

	YAHOO.utils.tree.init = function() {
		YAHOO.utils.tree.tree = new YAHOO.widget.TreeView( "category_tree" );

		YAHOO.utils.tree.tree.onExpand = function( node ) {
			//alert( '/wp-content/themes/2yellows.template/set_category_state.php?name=' + escape( node.label ) + "&state=expand" );
			YAHOO.util.Connect.asyncRequest( 'GET', '/wp-content/themes/2yellows.template/set_category_state.php?name=' + escape( node.label ) + "&state=expand", callback, null );
		}

		YAHOO.utils.tree.tree.onCollapse = function ( node ) {
			YAHOO.util.Connect.asyncRequest( 'GET', '/wp-content/themes/2yellows.template/set_category_state.php?name=' + escape( node.label ) + "&state=collapse", callback, null );
		}
	}

	var callback = {
			timeout: 50000
	};

	YAHOO.utils.bookSearch = new Object();
	YAHOO.utils.bookSearch.search = function() {
		var text = document.getElementById( 'book_search' );
		var book_box = document.getElementById( 'li30' );
		if( !book_box ) {
			alert( "wrong!" );
		}
		if( book_box ) {
			var shown = YAHOO.util.Dom.getElementsByClassName( 'inspire_shown', 'div', book_box );
			if( shown[0] ) {
				var isbn = YAHOO.util.Dom.getElementsByClassName( 'book_isbn', 'div', shown[0] );
		
				if( text.value != '' && isbn[0] ) {
					window.open( "http://www.amazon.com/gp/reader/" + isbn[0].innerHTML + "/ref=sib_dp_srch_pop/102-0423855-4220922?v=search-inside&keywords=" + text.value );
				}
			}
		}
	}
