var d = document;var wordsMoveInt;var divsNum = 0;function startupSearchWordsList (){createNewWord ();wordsMoveInt = setInterval("updateSearchWordsList()", 50);}function updateSearchWordsList (){var createNewWordFlag = true;var arrayDivs = d.getElementById("searchWords").childNodes;for (var i=0; i<arrayDivs.length; i++){if (arrayDivs.item(i).nodeName != undefined && arrayDivs.item(i).nodeName == "DIV") {var topPosition = parseInt(arrayDivs.item(i).style.top.replace("/px/g", ""));if ( 55 <= topPosition && topPosition <= 75){var curOpacity = 100 - (topPosition - 55)/2*10;if (curOpacity == 0) curOpacity = 8;changeOpacity (d.getElementById(arrayDivs.item(i).id), curOpacity);d.getElementById(arrayDivs.item(i).id).style.top = (topPosition-1)+"px";}else if (20 <= topPosition && topPosition < 55){changeOpacity (d.getElementById(arrayDivs.item(i).id), 100);d.getElementById(arrayDivs.item(i).id).style.top = (topPosition-1)+"px";}else if (-20 < topPosition && topPosition < 20){if (topPosition < 0) var curOpacity = 0;else var curOpacity = (topPosition)/2*10;changeOpacity (d.getElementById(arrayDivs.item(i).id), curOpacity);d.getElementById(arrayDivs.item(i).id).style.top = (topPosition-1)+"px";}else{d.getElementById(arrayDivs.item(i).id).parentNode.removeChild(d.getElementById(arrayDivs.item(i).id));}if (topPosition >= 55) createNewWordFlag = false;}}if (createNewWordFlag) createNewWord (); }function createNewWord (){arrayWords.sort(sortRand); var randomWord = arrayWords[0]; var newWordDiv = document.createElement("div");newWordDiv.className = "searchWordsDiv";newWordDiv.setAttribute("id", "searchWordsDiv_"+divsNum);newWordDiv.innerHTML = randomWord;d.getElementById("searchWords").appendChild(newWordDiv);newWordDiv.style.top = "75px";newWordDiv.style.left = "0px";divsNum++;}function changeOpacity (elem, nOpacity){var opacityProperty = getOpacityProperty();if (opacityProperty=='filter') {var oAlpha = elem.filters['DXImageTransform.Microsoft.alpha'] || elem.filters.alpha; if (oAlpha) oAlpha.opacity = nOpacity;else elem.style.filter += 'progid:DXImageTransform.Microsoft.Alpha(opacity='+nOpacity+')'; }else elem.style[opacityProperty] = nOpacity/100;}function showTab (num){d.getElementById("tabHeader"+num).className = "activeTab";d.getElementById("tabHeader"+num).onclick = function () {};d.getElementById("tabContent"+num).className = "tabsDivActive";for (var i=1; i<=3; i++){if (i != num){d.getElementById("tabHeader"+i).className = "inactiveTab";(function(i) { d.getElementById("tabHeader"+i).onclick = function () {showTab (i)} } ) (i);d.getElementById("tabContent"+i).className = "inactiveTabDiv";}}}function showAnswer (num){d.getElementById("answer"+num).className = "activeFaqAnswer";(function(num) { d.getElementById("question"+num).onclick = function () {hideAnswer (num)} } ) (num);}function hideAnswer (num){d.getElementById("answer"+num).className = "inactiveFaqAnswer";(function(num) { d.getElementById("question"+num).onclick = function () {showAnswer (num)} } ) (num);} function sortRand() {return Math.random() > 0.5 ? 1 : -1;}function setCellBg (n){d.getElementById("indexCell_"+n).style.background = "url(/images/bg_index.gif) no-repeat top left";d.getElementById("indexCell_"+n+"_img").innerHTML = '<img src="/images/index_ico'+n+'_gray.gif">';d.getElementById("indexCellHidden_"+n).style.display = (document.all) ? "block" : "table-row";d.getElementById("indexCell_"+n).onclick = function () {clearCellBg (n)};}function clearCellBg (n) {d.getElementById("indexCell_"+n).style.background = "none";d.getElementById("indexCell_"+n+"_img").innerHTML = '<img src="/images/index_ico'+n+'_white.gif">';d.getElementById("indexCellHidden_"+n).style.display = "none";d.getElementById("indexCell_"+n).onclick = function () {setCellBg (n)};} function aboutShowSubCat(id) {if (d.getElementById(id) != undefined) {if (d.getElementById(id).className == "aboutInnerDiv hiddenObject") {d.getElementById(id).className = "aboutInnerDiv visibleObject"} else{d.getElementById(id).className = "aboutInnerDiv hiddenObject";}}}
