/*
* Scrolling words in list up and down.
*
* NOTE!!!
* This file is in UTF-8 encoding and when included in the html should be specified.
*
* Copyright Slovored.com (c) 2009
*/

function scrollWords(dictionary, word, direction) {
var req = "/search/scrollwords?isUTF8=true";
req += "&dictionary=" + encodeURIComponent(dictionary);
req += "&word=" + encodeURIComponent(word);
req += "&direction=" + encodeURIComponent(direction);
jx.load(req, replaceList);
}

function replaceList(data) {
if (data != "") {
document.getElementById("wordsList").innerHTML = data;
}
}

