$(document).ready(function() {

	$(".zoomLnk").lightBox({
		imageLoading: "http://www.kubanpost.ru/all/lightbox-ico-loading.gif",
		imageBtnClose: "http://www.kubanpost.ru/all/lightbox-btn-close.gif",
		imageBtnPrev: "http://www.kubanpost.ru/all/lightbox-btn-prev.gif",
		imageBtnNext: "http://www.kubanpost.ru/all/lightbox-btn-next.gif",
		imageBlank: "http://www.kubanpost.ru/all/lightbox-blank.gif"
	});

	$(".zoomIn").lightBox({
		imageLoading: "http://www.kubanpost.ru/all/lightbox-ico-loading.gif",
		imageBtnClose: "http://www.kubanpost.ru/all/lightbox-btn-close.gif",
		imageBtnPrev: "http://www.kubanpost.ru/all/lightbox-btn-prev.gif",
		imageBtnNext: "http://www.kubanpost.ru/all/lightbox-btn-next.gif",
		imageBlank: "http://www.kubanpost.ru/all/lightbox-blank.gif"
	});
	
	});

function ChangeYear() {
    var obj = document.getElementById("arhiv");
    myindex = obj.year.selectedIndex;
    myindex = obj.year.options[myindex].value;
 
    var mSelect = document.getElementById("mSelect");
    var mmSelect = document.getElementById("mmSelect");
    var nn = mSelect.options.length;
 
    for (i=nn; i >= 0; i--) {
        mSelect.remove(i);
    } 
 
    var nn = yaer[myindex].length; 
 
  
   for(i=0;i<nn;i++){ 
       var oOption = document.createElement("OPTION");
       
       var n = yaer[myindex][i];
       oOption.value = yaer[myindex][i];
       oOption.text = mounth[n];
       mSelect.options.add(oOption);
}
 
}
 
function viewPic(url, title) {
    if (url == '') return false;
    width = 300;
    height = 100;
    window_top = (screen.height - height) / 2;
    window_left = (screen.width - width) / 2;
    win = window.open(url, 'image', 'width='+width+', height='+height+', top='+window_top+', left='+window_left+', toolbar=0, statusbar=0, location=0, scrollbars=no, resizable=0');
    win.document.open();
    win.document.write('<html><head><title>'+title+'</title>');
    win.document.write('<' + 'script language="Javascript"> ');
    win.document.write('function body_on_load() {window.document.getElementById("text").innerHTML = ""; document.getElementById("photo").style.display = "block"; window.resizeTo((document.images.photo.width+10),(document.images.photo.height+29)); window.moveTo((screen.width-document.images.photo.width)/2, (screen.height-document.images.photo.height)/2); window.focus(); }</'+'script>');
    win.document.write('</head><body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0 onload="body_on_load()">');
    win.document.write('<span id="text"><br><center>Идет загрузка изображения...</center></span><a href="javascript:window.close();"><img id="photo" src="'+url+'" style="display:none" border="0"></a>');
    win.document.write('</body></html>');
    win.document.close();    
}
 
function viewURL(url, width, height, scroll) {
    if (url == '')   return false;
    if (width == null) width = 640;
    if (height == null) height = 480;
 
    if (scroll == null) scroll = 0;
    win = window.open(url, '', 'width='+width+', height='+height+', toolbar=0, statusbar=0, location=0, scrollbars='+scroll+', resizable=0');
    win.moveTo((screen.width-width)/2, (screen.height-height)/2);
}
 

