
/************************************************************************************************/
rbGalleryMax= 9;
rbGalleryIdx= Math.floor(Math.random()*rbGalleryMax)+1;
function rbGallery(xxx){
	if (xxx=='next'){rbGalleryIdx=rbGalleryIdx+1;} else { rbGalleryIdx=rbGalleryIdx-1; }
	if (rbGalleryIdx < 1 ) { rbGalleryIdx = rbGalleryMax; }
	if (rbGalleryIdx > rbGalleryMax) { rbGalleryIdx = 1; }
	document.getElementById('rbPreviewImg').src = '/images/city/rynok'+rbGalleryIdx+'.jpg';
	document.getElementById('rbPreview').href = document.getElementById('rbPreviewImg').src;
}
function rbGalleryMore(xxx) {
	rbGalleryW=window.open(xxx,'rbGalleryW',''); 
}
$(document).ready(function(){
/*
	for ( var i = 1; i < rbGalleryMax+1; i++ ) {
		html_append = html_append + '<a href="/images/city/rynok'+i+'.jpg" class="lightbox2" >33333333333333333333333333333</a>';
	}
	// $('body').append('<div style="visibility:hidden;height:1px">'+html_append +'</div>');

	$('body').append(html_append );
	*/
	
	settingslightBox = {
//	fixedNavigation:true,
	imageLoading:'/images/lightbox_uk/loading.gif',		
	imageBtnPrev:'/images/lightbox_uk/prev.gif',
	imageBtnNext:'/images/lightbox_uk/next.gif',
	imageBtnClose:'/images/lightbox_uk/close.gif',		
	imageBlank:'/images/lightbox_uk/blank.gif',	
	txtImage:'²ëþñòðàö³ÿ',
	txtOf:'ç'	
	}
	$('a.lightbox').lightBox(settingslightBox);
	$('a.lightbox2').lightBox(settingslightBox);
});
