// JavaScript Document
	/*
	$(function() {
		$("table")
			.tablesorter({widthFixed: true, widgets: ['zebra']})
			.tablesorterPager({container: $("#pager")});
	});
	*/
var first = '1';
$(document).ready(function() 
{	
	$('table').each(function()
	{
		$(this).tablesorter({widthFixed: true, debug: false, sortList: [[0,0]] });
		/*
		Standaard sorteren op vacature title A-z
		Bij sorteren zien of het A-z of z-A is
		Bij sorteren zien welke kolom gesorteerd is
		*/
		
		//$.tablesorter.defaults.sortList = [[0,0]]; 
		$('tr').each(function()
		{	
			$(this).mouseenter(function()
			{
				if ($(this).attr('picture-id') != undefined) 
				{
					$(this).addClass('row_highlight');
					$("#vacature_image").append("<img src='"+$(this).attr('picture-src')+"' class='hidden' id='img"+$(this).attr('picture-id')+"'>");
					$("#img"+$(this).attr('picture-id')).fadeIn('slow');
				}
			});
	
			$(this).mouseleave(function()
			{
				if ($(this).attr('picture-id') != undefined) 
				{				
					$("#img"+$(this).attr('picture-id')).hide('slow');
					$("#img"+$(this).attr('picture-id')).remove();	
					$(this).removeClass('row_highlight');
				}
			});			
		});
	});
	
	/*
	$("#row_56959").addClass('row_highlight');
	$("#vacature_image").append("<img src='"+$("#row_56959").attr('picture-src')+"' class='hidden' id='img"+$("#row_56959").attr('picture-id')+"'>");
	$("#img"+$("#row_56959").attr('picture-id')).fadeIn('slow');
	*/

});