var is_open_gorod_list=0;
var is_open_service_list=0;

$(document).ready(init);



function init()
{
	


	//alert('2');

			

					
			$('#slideshow1').serialScroll({
				items:'li',
				prev:'#prev3',
				next:'#next3',
				offset:0, //when scrolling to photo, stop 230 before reaching it (from the left)
				start:0, //as we are centering it, start at the 2nd
				duration:500,
				//interval:6000,
				force:true,
				auto:false,//
				stop:false,
				lock:false,
				cycle:true, //don't pull back once you reach the end
				jump: false //click on the images to scroll to them
			});
			
			
/*			$('#slideshow3').serialScroll({
				items:'b',
				prev:'#prev4',
				next:'#next4',
				offset:0, //when scrolling to photo, stop 230 before reaching it (from the left)
				start:1, //as we are centering it, start at the 2nd
				duration:1200,
				force:true,
				interval:6000,
				stop:true,
				lock:false,
				axis:'y',
				exclude:1,
				currentvar:'.currentvar2',
				totalvar:'.totalvar2',
				cycle:true, //don't pull back once you reach the end
				easing:'linear', //use this easing equation for a funny effect
				jump: true //click on the images to scroll to them
			});	
*/			
			
			
			var $news = $('#slideshow3 ul');//we'll re use it a lot, so better save it to a var.
			$news.serialScroll({
				prev:'#prev4',
				next:'#next4',				
				items:'b',
				duration:1000,
				force:false,
				axis:'y',
				easing:'easeOutQuart',
				interval:0, 
				step:1
			});			
			
			
			$.fn.colorbox.settings.bgOpacity = "0.3";
			$("a.inlinereg").colorbox({width:"50%", inline:true, href:"#inlinereg_div"});

						


	



}


function rollover(obj)
{
	if(!$(obj).hasClass('selected_f'))	
	{
		$(obj).addClass('selected_f');
		//$(obj).children('b').show();
	}
	else
	{
		$(obj).removeClass('selected_f');
		//$(obj).children('b').hide();
	}
	return false;
}


