var old_id;
var arrX=Array('','15','125','240','378', '530', '665');
$(document).ready(function() {
			$("#hmenu > li > a").click(
			
				function()
				{
					
					

					if(this.id!=old_id)
					{
						//alert(this.id+" / "+old_id);
						$(":not(#h_"+this.id+")div[id*='h_']").hide('slide');
						$("#h_"+this.id).show('slide');
						$("#hmenu > li > a").removeClass("active");
						$("li > #"+this.id).addClass("active");
						
						$("#hcursor").animate({left:+arrX[this.id]+'px'},'slide');
						old_id=this.id;
					}
				}
			);
			
			$("a.iframe").fancybox({
				'width'				: 820,
				'height'			: '90%',
				'autoScale'     	: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});


			$(".zooms").fancybox(
			{
				'overlayOpacity':'0.7',
				'overlayColor':'#000',
				'autoScale':false,
				'centerOnScroll':false,
				'titlePosition':'over'
			});

			$("input[name=subscribe_period]").click(
		
			function()
			{
				var idElement=$(this).attr('id');
				$(".subscribe_price > li").hide();
				
				$("#"+idElement+"_itog").show();
			}
		);
		
		$(".itog_li").click(
		
			function()
			{
				var idElementLi=$(this).attr('id');
				$("#"+idElementLi+"_detail").toggle();
			}
		);
		$(".itog").show();
		$(".def").show();

			
		});
		
