var j;
var img_count;
var flag_click=0;
var flag_over=0;
var anketa=new Array();
var src_h,src_cur,vector;
//var base_url='http://mio.webmysite.ru/';

var base_url_1='http://';
//var base_url_2='miotest.ru.swteh.ru/';
var base_url_2='cafemio.ru/';
var base_url=base_url_1+base_url_2;//console.log(base_url);

$(function(){
m_img_black=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img0=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img100=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img00=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img1=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img2=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img3=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img4=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img5=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img6=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img7=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img8=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
m_img9=[new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];

m_src_black=['/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/black.jpg'];
m_src0=['/fotos/index/1-1.jpg','/fotos/index/1-2.jpg','/fotos/index/1-3.jpg','/fotos/index/1-4.jpg','/fotos/index/2-1.jpg','/fotos/index/2-2.jpg','/fotos/index/2-3.jpg','/fotos/index/2-4.jpg','/fotos/index/3-1.jpg','/fotos/index/3-2.jpg','/fotos/index/3-3.jpg','/fotos/index/3-4.jpg'];
m_src100=['/fotos/index/1-1.jpg','/fotos/index/1-2.jpg','/fotos/index/1-3.jpg','/fotos/index/1-4.jpg','/fotos/index/2-1.jpg','/fotos/index/2-2.jpg','/fotos/index/2-3.jpg','/fotos/index/2-4.jpg','/fotos/index/3-1.jpg','/fotos/index/3-2.jpg','/fotos/index/3-3.jpg','/fotos/index/3-4.jpg'];
m_src00=['/fotos/index/a1-1.jpg','/fotos/index/a1-2.jpg','/fotos/index/a1-3.jpg','/fotos/index/a1-4.jpg','/fotos/index/a2-1.jpg','/fotos/index/a2-2.jpg','/fotos/index/a2-3.jpg','/fotos/index/a2-4.jpg','/fotos/index/a3-1.jpg','/fotos/index/a3-2.jpg','/fotos/index/a3-3.jpg','/fotos/index/a3-4.jpg'];
m_src1=['/fotos/black.jpg','/fotos/black.jpg','/fotos/mio1/1-3.jpg','/fotos/mio1/1-4.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/mio1/2-3.jpg','/fotos/mio1/2-4.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/mio1/3-3.jpg','/fotos/mio1/3-4.jpg'];
m_src2=['/fotos/black.jpg','/fotos/dj/1-2.jpg','/fotos/dj/1-3.jpg','/fotos/dj/1-4.jpg','/fotos/black.jpg','/fotos/dj/2-2.jpg','/fotos/dj/2-3.jpg','/fotos/dj/2-4.jpg','/fotos/black.jpg','/fotos/dj/3-2.jpg','/fotos/dj/3-3.jpg','/fotos/dj/3-4.jpg'];
m_src3=['/fotos/black.jpg','/fotos/cafe/1-2.jpg','/fotos/cafe/1-3.jpg','/fotos/cafe/1-4.jpg','/fotos/black.jpg','/fotos/cafe/2-2.jpg','/fotos/cafe/2-3.jpg','/fotos/cafe/2-4.jpg','/fotos/black.jpg','/fotos/cafe/3-2.jpg','/fotos/cafe/3-3.jpg','/fotos/cafe/3-4.jpg'];
m_src4=['/fotos/black.jpg','/fotos/akcii/1-2.jpg','/fotos/akcii/1-3.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/akcii/2-2.jpg','/fotos/akcii/2-3.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/akcii/3-2.jpg','/fotos/akcii/3-3.jpg','/fotos/black.jpg'];
m_src5=['/fotos/black.jpg','/fotos/afisha/1-2.jpg','/fotos/afisha/1-3.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/afisha/2-2.jpg','/fotos/afisha/2-3.jpg','/fotos/black.jpg','/fotos/black.jpg','/fotos/afisha/3-2.jpg','/fotos/afisha/3-3.jpg','/fotos/black.jpg'];
m_src7=['/fotos/otsiv/1-1.jpg','/fotos/otsiv/1-2.jpg','/fotos/otsiv/1-3.jpg','/fotos/otsiv/1-4.jpg','/fotos/otsiv/2-1.jpg','/fotos/otsiv/2-2.jpg','/fotos/otsiv/2-3.jpg','/fotos/otsiv/2-4.jpg','/fotos/otsiv/3-1.jpg','/fotos/otsiv/3-2.jpg','/fotos/otsiv/3-3.jpg','/fotos/otsiv/3-4.jpg'];
m_src8=['/fotos/black.jpg','/fotos/contact/1-2.jpg','/fotos/contact/1-3.jpg','/fotos/contact/1-4.jpg','/fotos/black.jpg','/fotos/contact/2-2.jpg','/fotos/contact/2-3.jpg','/fotos/contact/2-4.jpg','/fotos/black.jpg','/fotos/contact/3-2.jpg','/fotos/contact/3-3.jpg','/fotos/contact/3-4.jpg'];
m_src9=['/fotos/map/1-1.jpg','/fotos/map/1-2.jpg','/fotos/map/1-3.jpg','/fotos/map/1-4.jpg','/fotos/map/2-1.jpg','/fotos/map/2-2.jpg','/fotos/map/2-3.jpg','/fotos/map/2-4.jpg','/fotos/map/3-1.jpg','/fotos/map/3-2.jpg','/fotos/map/3-3.jpg','/fotos/map/3-4.jpg'];

n=0;
function f_onload(){
	if(++n==12){
		$('#preload').hide();
			foto_load();
			if(location.href==base_url+'#mio'){$('#menu1').click();}
			else if(location.href==base_url+'#dj'){$('#menu2').click();}
			else if(location.href==base_url+'#cafe'){$('#menu3').click();}
			else if(location.href==base_url+'#akcii'){$('#menu4').click();}
			else if(location.href==base_url+'#afisha'){$('#menu5').click();}
			else if(location.href==base_url+'#foto'){$('#menu6').click();}
			else if(location.href==base_url+'#otsiv'){$('#menu7').click();}
			else if(location.href==base_url+'#contact'){$('#menu8').click();}
			else if(location.href==base_url+'#map'){$('#menu9').click();}
	}
}
for(i=0;i<12;i++){
	m_img_black[i].src=m_src_black[i];
	m_img0[i].src=m_src0[i];
	m_img100[i].src=m_src100[i];
	m_img00[i].src=m_src00[i];
	m_img1[i].src=m_src1[i];
	m_img2[i].src=m_src2[i];
	m_img3[i].src=m_src3[i];
	m_img4[i].src=m_src4[i];
	m_img5[i].src=m_src5[i];
	m_img6[i].src=m_src6[i];
	m_img7[i].src=m_src7[i];
	m_img8[i].src=m_src8[i];
	m_img9[i].src=m_src9[i];
}
	for(i=0;i<12;i++){
		m_img0[i].onload=f_onload;
	}
function foto_load(){
	for(i=0;i<12;i++){
		$('.foto1:eq('+i+')').html(m_img_black[i]);
		$('.insert:eq('+i+')').html(m_img0[i]);
	}
	$('.insert').css({'left':'240px'});
	for(i=0;i<12;i++){
		foto_animate_2();
	}
}
function foto_animate_1(name_array){
	for(i=0;i<12;i++){
		$('.insert:eq('+i+')').html(name_array[i]);
	}
	$('.insert').css({'left':'240px'});$('.insert').queue('fx',[]);
}
function foto_animate_2(){
		$('.insert:eq('+i+')').delay(i*200).animate({'left':'0px'},200,'linear',function(){
			ins_src=$(this).parent().find('.insert img').attr('src');
			$(this).parent().find('.foto1 img').attr({'src':ins_src});
		});
}
$('.menu,#logo').click(function(){
	if($(this).attr('id')=='logo'){delete_class_active_leftbar();}
	$('#afisha_block,#akcii_block,#mio_block,#dj_block,#cafe_block,#otsiv_block,#contact_block,#map_block,#foto_block,#akcii_foto_m,#fotki_foto_m,#foto_fon,#history_fon,#afisha_fon,#afisha_foto_m').remove();
});
$('#logo').click(function(){
	document.title='сайт мио';
	$('.line').hide();$('.set1').show();
	flag_over=0;
	foto_animate_1(m_img100);
	for(i=0;i<12;i++){
		foto_animate_2();
	}	
});	
$('#menu1').click(function(){
	$('.line').hide();$('.set2').show();
	delete_class_active(this,2);$(this).addClass('mio_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img1);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu1_action();
});
$('#menu2').click(function(){
	$('.line').hide();$('.set1').show();
	delete_class_active(this,2);$(this).addClass('dj_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img2);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu2_action();
});
$('#menu3').click(function(){
	$('.line').hide();$('.set3').show();
	delete_class_active(this,2);$(this).addClass('cafe_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img3);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu3_action();
});
$('#menu4').click(function(){
	$('.line').hide();$('.set13').show();
	delete_class_active(this,2);$(this).addClass('akcii_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img4);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu4_action();
});
$('#menu5').click(function(){
	delete_class_active(this,2);$(this).addClass('afisha_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img5);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu5_action();
});
$('#menu6').click(function(){
	//$('.line').hide();$('.set3').show();//.set1
	delete_class_active(this,2);$(this).addClass('foto_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img6);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu6_action();	
});
$('#menu7').click(function(){
	$('.line').hide();$('.set7').show();
	delete_class_active(this,2);$(this).addClass('otsiv_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img7);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu7_action();
});
$('#menu8').click(function(){
	$('.line').hide();$('.set3').show();
	delete_class_active(this,2);$(this).addClass('contact_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img8);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu8_action();
});
$('#menu9').click(function(){
	$('.line').hide();$('.set8').show();
	delete_class_active(this,2);$(this).addClass('map_active');$(this).parent().css({'background-image':'url(/images/bullit_active.png)'});
	flag_over=1;
	foto_animate_1(m_img9);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	menu9_action();
});
$('#cell_1-1').bind({
mouseover:function(){
	if(flag_over==0){
		$(this).find('.foto1').css({'zIndex':'1'});
		src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a1-1.jpg'});
	}	
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img5);	
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	flag_over=1;
	$('#menu5').addClass('afisha_active');$('#menu5').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu5_action();
	}
}
});
$('#cell_1-2').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	$(this).parent().find('#cell_3-2 .foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a1-2.jpg'});
	src_h2=$(this).parent().find('#cell_3-2 .foto1 img').attr('src');src_cur2=$(this).parent().find('#cell_3-2 .foto1 img').attr({'src':'/fotos/index/a3-2.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).parent().find('#cell_3-2 .foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	$(this).parent().find('#cell_3-2 .foto1 img').attr({'src':src_h2});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).parent().find('#cell_3-2 .foto1').css({'zIndex':'0'});
	foto_animate_1(m_img4);
	for(i=0;i<12;i++){
		if(i==1){$(this).find('.foto1 img').attr({'src':'/fotos/akcii/1-2.jpg'});continue;}
		if(i==9){$(this).parent().find('#cell_3-2 .foto1 img').attr({'src':'/fotos/akcii/3-2.jpg'});continue;}
		foto_animate_2();
	}
	flag_over=1;
	$('#menu4').addClass('akcii_active');$('#menu4').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu4_action();
	}
}
});
$('#cell_1-3').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a1-3.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	$('.line').hide();$('.set2').show();
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img1);
	for(i=0;i<12;i++){
		if(i==2){$(this).find('.foto1 img').attr({'src':'/fotos/mio1/1-3.jpg'});continue;}
		foto_animate_2();
	}
	flag_over=1;
	$('#menu1').addClass('mio_active');$('#menu1').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu1_action();
	}
}
});
$('#cell_1-4').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a1-4.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img6);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	flag_over=1;
	$('#menu6').addClass('foto_active');$('#menu6').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu6_action();
	}
}
});
$('#cell_2-1').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a2-1.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img5);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	flag_over=1;
	$('#menu5').addClass('afisha_active');$('#menu5').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu5_action();
	}
}
});
$('#cell_2-2').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a2-2.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img2);
	for(i=0;i<12;i++){
		if(i==5){$(this).find('.foto1 img').attr({'src':'/fotos/dj/2-2.jpg'});continue;}
		foto_animate_2();
	}
	flag_over=1;
	$('#menu2').addClass('dj_active');$('#menu2').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu2_action();
	}
}
});
$('#cell_2-3').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a2-3.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img3);
	for(i=0;i<12;i++){
		if(i==6){$(this).find('.foto1 img').attr({'src':'/fotos/cafe/2-3.jpg'});continue;}
		foto_animate_2();
	}
	flag_over=1;
	$('#menu3').addClass('cafe_active');$('#menu3').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu3_action();
	}
}
});
$('#cell_2-4').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a2-4.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img7);
	for(i=0;i<12;i++){
		if(i==7){$(this).find('.foto1 img').attr({'src':'/fotos/otsiv/2-4.jpg'});continue;}
		foto_animate_2();
	}
	flag_over=1;
	$('#menu7').addClass('otsiv_active');$('#menu7').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu7_action();
	}
}
});
$('#cell_3-1').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a3-1.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img5);
	for(i=0;i<12;i++){
		foto_animate_2();
	}
	flag_over=1;
	$('#menu5').addClass('afisha_active');$('#menu5').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu5_action();	
	}
}
});
$('#cell_3-2').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	$(this).parent().find('#cell_1-2 .foto1').css({'zIndex':'1'});	
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a3-2.jpg'});
	src_h2=$(this).parent().find('#cell_1-2 .foto1 img').attr('src');src_cur2=$(this).parent().find('#cell_1-2 .foto1 img').attr({'src':'/fotos/index/a1-2.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).parent().find('#cell_1-2 .foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	$(this).parent().find('#cell_1-2 .foto1 img').attr({'src':src_h2});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).parent().find('#cell_1-2 .foto1').css({'zIndex':'0'});
	foto_animate_1(m_img4);
	for(i=0;i<12;i++){
		if(i==9){$(this).find('.foto1 img').attr({'src':'/fotos/akcii/3-2.jpg'});continue;}
		if(i==1){$(this).parent().find('#cell_1-2 .foto1 img').attr({'src':'/fotos/akcii/1-2.jpg'});continue;}
		foto_animate_2();
	}
	flag_over=1;
	$('#menu4').addClass('akcii_active');$('#menu4').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu4_action();
	}
}
});
$('#cell_3-3').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a3-3.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img8);
	for(i=0;i<12;i++){
		if(i==10){$(this).find('.foto1 img').attr({'src':'/fotos/contact/3-3.jpg'});continue;}
		foto_animate_2();
	}
	flag_over=1;
	$('#menu8').addClass('contact_active');$('#menu8').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu8_action();
	}
}
});
$('#cell_3-4').bind({
mouseover:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'1'});
	src_h=$(this).find('.foto1 img').attr('src');src_cur=$(this).find('.foto1 img').attr({'src':'/fotos/index/a3-4.jpg'});
	}
},
mouseout:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	$(this).find('.foto1 img').attr({'src':src_h});
	}
},
click:function(){
	if(flag_over==0){
	$(this).find('.foto1').css({'zIndex':'0'});
	foto_animate_1(m_img9);
	for(i=0;i<12;i++){
		if(i==11){$(this).find('.foto1 img').attr({'src':'/fotos/map/3-4.jpg'});continue;}
		foto_animate_2();
	}
	flag_over=1;
	$('#menu9').addClass('map_active');$('#menu9').parent().css({'background-image':'url(/images/bullit_active.png)'});
	menu9_action();
	}
}
});
})
