// JavaScript Document
var sidebar_expanded = false;

function show_sidebar() {
	if (sidebar_expanded == false) {
		$("#bpiw_node_sidebar").show().addClass('active');
		sidebar_expanded = true;
	}
}

function hide_sidebar() {
	if (sidebar_expanded == true) {	
		$("#bpiw_node_sidebar").fadeOut(300).removeClass("active");
		sidebar_expanded = false;
	}
}

$(document).ready(function() {
 var t = false;

 $(".bpiw_node_sidebar_expand").click(function() {
		if (sidebar_expanded == false) {
			show_sidebar();
		}
		else {
			hide_sidebar();
		}
		return false;	
	});
 

 $("#copy_me").click(function() {
	 $("input[@id='edit-menu-title']").val($("input[@id='edit-title']").val());
	 return false;
 });
   
  $(".blupal_table tbody tr").mouseover(function () {
		if ($(this).attr("class")) {
			var row = $(this).attr("class");
			if ((row.indexOf('search') == -1) && (row.indexOf('control') == -1) && (row.indexOf('info') == -1) && (row.indexOf('no_hover') == -1)) {
				$(this).addClass('hover');
			}
		}
		else {
			$(this).addClass('hover');
		}
	});
  
  $(".blupal_table tbody tr").mouseout(function () {
		$(this).removeClass('hover');
	});  
});