$(document).ready(function(){
	$(".noscripttb").removeClass().addClass("flexme");
	$("#togglebar").show();

	$("#myTable").tablesorter();
	$('.flexme').flexigrid({width:'auto',height:'auto',striped:false,resizable:false});


	$("#togglebar").click(function () {
		if($("#tdmenu").css("display")!="none"){
			$("#tdmenu").hide();
			$(this).css("background-image","url('/_component/menutoggle/allowleft1.png')");
		}else{
			$("#tdmenu").show();
			$(this).css("background-image","url('/_component/menutoggle/allowright1.png')");
		}
	});

	$("#togglebar").mouseover(function(){
		if($("#tdmenu").css("display") == "none"){
			$("#togglebar").css("background-image", "url('/_component/menutoggle/allowleft.png')");
		} else {
			$("#togglebar").css("background-image", "url('/_component/menutoggle/allowright.png')");
		}
	});

	$("#togglebar").mouseout(function(){
		if($("#tdmenu").css("display") == "none"){
			$("#togglebar").css("background-image", "url('/_component/menutoggle/allowleft1.png')");
		} else {
			$("#togglebar").css("background-image", "url('/_component/menutoggle/allowright1.png')");
		}
	});
});
