/*
 * WheatGrass 1.0.1
 *
 * By Nick Ficano (Nick@Ficano.net)
 * Copyright (c) 2009 Nick Ficano
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
$(document).ready(function()
 {
	$.tablesorter.defaults.widgets = ['zebra'];
	
	$("table").tablesorter(
	{
		sortList: [[1, 0], [0, 0]],
		headers: 
		{
			4: 
			{
				sorter: false
			}
		}
	});

	$(".sharable").click(function()
	{
		var url 	= $(this).attr('id').substring(4);
		var file 	= $('#lnk_' + url).attr('href');
		var txtVal 	= $('#txtSelf').val();

		$('#clipboard > .textBox').val(txtVal + escape(file));
		tb_show('Copy to Clipboard', '#TB_inline?height=40&width=500&inlineId=clipboard');
	});

	$("input").bind("focus click",function()
	{
		this.select();
	});
});
