function echo(text){//1.5 Функция вывода на экран
	if ($('#echo_div_object').size()==0){
		$('body').append('<div id="echo_div_object"><div id="echo_div_object_clear">c</div><div id="echo_div_object_close">x</div><div id="echo_div_object_i">'+text+'</div></div>');		
		$('#echo_div_object').css({overflow:'hidden',color:'#888888',fontFamily:'currier',fontSize:'13px',background:'#000000',bottom:100,opacity:0.85, zIndex:100000000,position:'fixed',height:300,width:270,left:0,border:'1px solid #000'});
		$('#echo_div_object_i').css({overflow:'auto',padding:10, position:'absolute',height:250,width:250,top:30});
		$('#echo_div_object_close').css({cursor:'pointer',background:'rgba(0,0,0,0.5)',textAlign:'center',fontSize:'11px',top:5, right:5,  zIndex:2,position:'absolute',height:16,width:16,border:'1px solid #666'}).click(function(){
			var $o=$('#echo_div_object');
			if (!$o.attr('closed') || $o.attr('closed')==0){
				$o.attr('closed',1).attr('dw',$o.width()).attr('dh',$o.height()).animate({'height':27},'fast').animate({'width':54},'fast');
			}else
				$o.animate({'height':$o.attr('dh')},'fast').animate({'width':$o.attr('dw')},'fast').attr('closed',0); 
		});
		
		$('#echo_div_object_clear').css({cursor:'pointer',background:'rgba(0,0,0,0.5)',textAlign:'center',fontSize:'11px',top:5, left:5,  zIndex:2,position:'absolute',height:16,width:16,border:'1px solid #666'}).click(function(){
			$('#echo_div_object_i').html('');
		});
		
	}else{
		var ec=$('#echo_div_object_i')
		ec.html($('#echo_div_object_i').html()+text+'<hr style="margin:2px 0px; background-color:#111;">').scrollTop(ec.attr("scrollHeight"));
	}
}


$(function(){
//	alert('123');
 	var slider=new multi_items_slider({
		items:$('.slider_item'),
		arrow_left:$('.slider_arr_l'),
		arrow_right:$('.slider_arr_r'),
		move_speed:'slow',
		auto_width_on_window_resize:1,
		remPosition:false,
		automation:{enabled:true, delay:0,interval:5000},
		animateCallback:function(o){
			var dot=$('[baner="'+o.screen_number+'"]');
			dot.parent().parent().find('DIV').removeClass('active');
			dot.addClass('active');
		}	
	});
	
	$('.switchers .switcher').each(function(i){
	
		$(this).click(function(){
			slider.move_to(i);
			$(this).parent().parent().find('DIV').removeClass('active');
			$(this).addClass('active');
		}).attr('baner',i);
	});

	
});


   
 $(function(){
	$('[href]').click(function(){
		if (this.tagName!='A')		
		location=$(this).attr('href');
	});
 } )
 
 function moveBG(){
//	alert(1/$(window).width()*1300000);
	var min=2*$(window).width()/100;
	var w=$('.content').parent().width();
	$('.content').css({backgroundPosition:(w*0.7)+20+'px 120px'}) 
 }
 
  $(function(){
		moveBG();
  } )
  
 $(window).resize(function(){moveBG();});
