	function include( filename ) {
	    var js = document.createElement('script');
	    js.setAttribute('type', 'text/javascript');
	    js.setAttribute('src', filename);
	    js.setAttribute('defer', 'defer');
	    document.getElementsByTagName('HEAD')[0].appendChild(js);
	    var cur_file = {};
	    cur_file[window.location.href] = 1;
	    if (!window.php_js) window.php_js = {};
	    if (!window.php_js.includes) window.php_js.includes = cur_file;
	    if (!window.php_js.includes[filename]) {
	        window.php_js.includes[filename] = 1;
	    } else {
	        window.php_js.includes[filename]++;
	    }
	    return window.php_js.includes[filename];
	}


function but_shadow_on(id) {
	document.getElementById('l_shad_'+id).style.background = '#e7ecf0';
}
function but_shadow_off(id) {
	document.getElementById('l_shad_'+id).style.background = '#222222';
}
function show_span(id) {
	document.getElementById(id).style.display = 'Block';
	document.getElementById('i_'+id).style.display = 'none';
}

function hide_span(id) {
	document.getElementById(id).style.display = 'none';
	document.getElementById('i_'+id).style.display = 'Block';
}

function dop_image(id) {
	document.getElementById('big_image').style.backgroundImage = 'url(/img_fgfhbfdgdhhth/index.php?big&i='+id+'&r_images)';

}

function zoom_image(id) {

	include('/?<?=time()?>&zoom_img='+id);
}

function hide_zoom() {

	document.getElementById('zoom').style.display = 'none';
}


