function big_foto(w,h) {
var url='';
var win_name='big';
var features='menubar=no,scrollbars=yes,resizable=yes,top=50,left=100,width='+w+',height='+h;
window.open(url,win_name,features);
}

function LTrim( value ) {
var re = /\s*((\S+\s*)*)/;
return value.replace(re, "$1");
}
// Removes ending whitespaces
function RTrim( value ) {
var re = /((\s*\S+)*)\s*/;
return value.replace(re, "$1");
}
// Removes leading and ending whitespaces
function trim( value ) {
return LTrim(RTrim(value));
}


window.onload = function() {
//alert();

}



var id=0;
var i=0;
function show_() {
i=i+10;
document.getElementById('tabl').style.background='url(img/fon_top'+id1+'.jpg) no-repeat center '+i+'px';
if (i>20) {
tt1=clearTimeout(tt);
document.getElementById('tabl').style.background='url(img/fon_top'+id1+'.jpg) no-repeat center 29px';
alert(i);
}
}

function show(id) {
i=-120;
id1=id;
tt=setInterval("show_();",30);
}

function o_o(id) {
id_div=document.getElementById('mnu_'+id).style;
if (id_div.display=='none') id_div.display='block'; else id_div.display='none';
//alert(id_div.display);
}
