Файл: gamele.ru/js/castle_v01.js
Строк: 24
<?php
function overviewShowLevel(){
labels=overviewGetLabels();
for(var i=0,len=labels.length;i<len;i++){
var label=labels[i];
if(!label)continue;
label.css('display','inline')
}
}
function overviewHideLevel(){
labels=overviewGetLabels();
for(var i=0,len=labels.length;i<len;i++){
var label=labels[i];
if(!label)continue;
label.hide()
}
}
function overviewGetLabels(){
labels=[];
labels.push($("#l_main"));
labels.push($("#l_place"));
labels.push($("#l_wood"));
labels.push($("#l_stone"));
labels.push($("#l_iron"));
labels.push($("#l_statue"));
labels.push($("#l_wall"));
labels.push($("#l_farm"));
labels.push($("#l_hide"));
labels.push($("#l_storage"));
labels.push($("#l_market"));
labels.push($("#l_barracks"));
labels.push($("#l_stable"));
labels.push($("#l_garage"));
labels.push($("#l_church"));
labels.push($("#l_church_f"));
labels.push($("#l_snob"));
labels.push($("#l_smith"));
return labels
}
?>