$(document).ready(function() { 

    // $("#table").tablesorter(); 

    $("div.sales_list_thumbs_more img").click(function() {
        var thumbcontainer = $(this).parent();
        var big_image = $(thumbcontainer).siblings("img");
        var chosenImageUrl = $(this).attr('src').replace(/t.jpg/,'.jpg');
        $(big_image).attr('src', chosenImageUrl);
    });
});

/* For flv_player
var player;

function playerReady(obj) {
	var id = obj['id'];
	var version = obj['version'];
	var client = obj['client'];
	//alert('the videoplayer '+id+' has been instantiated');
	player = document.getElementById('ply');
        playerInit();
};
*/

// need to better way to know when full video has downloaded

/*
function playerInit(){
	if (player){
		player.sendEvent('PLAY',true);
                setTimeout("pauseIt()",100);
                function pauseIt() {
 		      player.sendEvent('PLAY',false);
                }
	}
}

function pauseIt() {
    player.sendEvent('PLAY',false);
}
*/