
	
	function show_menu(id){
		if(document.getElementById('menu_select_sub_'+id).style.display=='block'){
			document.getElementById('menu_select_sub_'+id).style.display='none';
		} else {
			document.getElementById('menu_select_sub_'+id).style.display='block';
		}
	}
	
	/*function show_sub(id){
		document.getElementById('menu_select_sub_'+id).style.display='block';
	}
	function hide_sub(id){
		document.getElementById('menu_select_sub_'+id).style.display='none';
	}
	
		function show_sub_sub(id){
		document.getElementById('menu_select_sub_sub_'+id).style.display='block';
   		}
		function hide_sub_sub(id){
		document.getElementById('menu_select_sub_sub_'+id).style.display='none';
		}
	*/
	
	jQuery(function() {
	    jQuery('#spets_item_img_1').cycle({ 
			fx:    'fade', 
		    timeout: 4000,
			after:   onAfter1
		 });
	});
		jQuery(function() {
	    jQuery('#gard_img_1').cycle({ 
			fx:    'fade', 
		    timeout: 4000,
			after:   onAfter1
		 });
	});
	
	
	jQuery(function() {
	    jQuery('#spets_item_img_2').cycle({ 
			fx:    'fade', 
		    timeout: 5000,
			after:   onAfter2
		 });
	});
	jQuery(function() {
	    jQuery('#gard_img_2').cycle({ 
			fx:    'fade', 
		    timeout: 5000,
			after:   onAfter2
		 });
	});
	jQuery(function() {
	    jQuery('#spets_item_img_3').cycle({ 
			fx:    'fade', 
		    timeout: 6000,
			after:   onAfter3
		 });
	});
	jQuery(function() {
	    jQuery('#spets_item_img_4').cycle({ 
			fx:    'fade', 
		    timeout: 7000,
			after:   onAfter4
		 });
	});
	
	function onAfter1() {
jQuery('#spets_item_txt1').html('Модель: '+this.alt+' <br />Фабрика: <a href='+this.lowsrc+'> '+this.title+'</a>');
		jQuery('#spets_zoom_on1').attr("href", this.name);
	}
	function onAfter2() {
jQuery('#spets_item_txt2').html('Модель: '+this.alt+' <br />Фабрика: <a href='+this.lowsrc+'> '+this.title+'</a>');
		jQuery('#spets_zoom_on2').attr("href", this.name);
	}
	function onAfter3() {
jQuery('#spets_item_txt3').html('Модель: '+this.alt+' <br />Фабрика: <a href='+this.lowsrc+'> '+this.title+'</a>');
	    jQuery('#spets_zoom_on3').attr("href", this.name);
	}
	function onAfter4() {
jQuery('#spets_item_txt4').html('Модель: '+this.alt+' <br />Фабрика: <a href='+this.lowsrc+'> '+this.title+'</a>');
	    jQuery('#spets_zoom_on4').attr("href", this.name);
	}

	
	
	var left_count = 0;
	function left_top(){
		if(((document.getElementById('inner_center_left_images1').offsetHeight-396) - left_count) >0){
			left_count = left_count + 136;
			document.getElementById('inner_center_left_images1').style.top = '-'+left_count+'px';
		}	
	}
	function left_down(){
		if(left_count > 0){
			left_count = left_count - 136;
			document.getElementById('inner_center_left_images1').style.top = '-'+left_count+'px';
		}	
	}

	var right_count = 0;
	function right_top(){
		if(((document.getElementById('inner_center_right_images1').offsetHeight-396) - right_count) >0){
			right_count = right_count + 123;
			document.getElementById('inner_center_right_images1').style.top = '-'+right_count+'px';
		}	
	}
	function right_down(){
		if(right_count > 0){
			right_count = right_count - 123;
			document.getElementById('inner_center_right_images1').style.top = '-'+right_count+'px';
		}	
	}

	
	
	function change_img(src){
		document.getElementById('img_big').src=src;
	}
	
$(function() {$('#photo').lightBox();});$(function() {$('#photo1').lightBox();});$(function() {$('#photo2').lightBox();});$(function() {$('#photo3').lightBox();});$(function() {$('#photo4').lightBox();});$(function() {$('#photo5').lightBox();});$(function() {$('#photo6').lightBox();});$(function() {$('#photo7').lightBox();});$(function() {$('#photo8').lightBox();});$(function() {$('#photo9').lightBox();});$(function() {$('#photo10').lightBox();});$(function() {$('#photo11').lightBox();});$(function() {	$('#photo12').lightBox();});$(function() {$('#photo13').lightBox();});$(function() {$('#photo14').lightBox();});$(function() {$('#photo15').lightBox();});$(function() {$('#photo16').lightBox();});$(function() {$('#photo17').lightBox();});$(function() {$('#photo18').lightBox();});$(function() {$('#photo19').lightBox();});$(function() {$('#photo20').lightBox();});$(function() {$('#photo21').lightBox();});$(function() {$('#photo22').lightBox();});$(function() {$('#photo23').lightBox();});$(function() {$('#photo24').lightBox();
});
$(function() {
	$('#photo25').lightBox();
});

