$(document).ready(function(){
    $('#top_search').submit(function(){
	var k = $('#t_keyword').val();
	if (k != '')
	{
	    document.location.href = basePATH + 'arama?k=' + k;
	}
	return false;
    });
    $('#artist .right .images a').click(function(){
	var new_img = $(this).children('img').attr('alt');
	var new_desc = $(this).attr('rel');
	$('#artist .right .image').html('<img src="'+new_img+'" alt="" />');
	$('#artist .right .desc').html(new_desc);
	return false;
    });
    //$('#arts .right .content').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
    $('#presentation .content, #arts .right .content, #workshops .right .content, #artist .left .desc, #mapbar #sideBar').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
    $('#map_search').submit(function(){
	var k = $('#map_keyword').val();
	if (k != '')
	{
	    document.location.href = basePATH + 'harita?k=' + k;
	}
	return false;
    });
    $('#map_keyword').keypress(function(e){
	if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
	    var k = $('#map_keyword').val();
	    if (k != '')
	    {
		document.location.href = basePATH + 'harita?k=' + k;
	    }
	    return false;
	}
    });
});
