		
		var timer2, timer;
		
		$(document).ready(function(){
		
			$('#about_work, #guestForm').scrollFollow({
				offset: 30,
				container: 'outer',
				relativeTo: 'top'
			});
 		
			$('#menu-link').mouseover(function(){
				$('ul#menu-box').show();
				$(this).css({ "border":"none", "width": "46px"});
			})
			 
			$('ul#menu-box > li, #menu-link').mouseout(function(){
				timer =  setTimeout(function() { 
					$('ul#menu-box').hide(); 
					$('#menu-link').css({ "border-right":"1px solid #000000", "width":"45px"});
				}, 500); 
			}).mouseover(function(){
				clearTimeout( timer );
			})
			
			$(document).click(function() {
				clearTimeout( timer );
				$('ul#menu-box').hide(); 
				$('#menu-link').css({ "border-right":"1px solid #000000", "width":"45px"});
			})
			
			$('#comentForm').submit(function(){
				var data;
				
				data = $(this).serialize()

				$.facebox('<iframe src="/recaptcha.php?comment_true=1&'+data+'" height="235" width="400" scrolling="no" frameborder="0"></iframe>')
				return false;
			})
			
			$('#guestForm').submit(function(){
				var data;
				
				data = $(this).serialize()

				$.facebox('<iframe src="/recaptcha.php?'+data+'" height="235" width="400" scrolling="no" frameborder="0"></iframe>')
				return false;
			}) 
			
			$('#contact_form').ajaxForm({
				dataType:  'json',
				beforeSubmit:  function(){
					$('#errors').hide()
					$('#loader').show();
				},
				success: function(text){
					if(text.suc != "1"){
						$('#loader').hide();
						$('#errors').empty().show().append(text.text);
					}else{
						$('#loader').hide();
						$('#errors').hide().empty();
						$('#sent_suc').show();
						setTimeout(function(){ window.location.reload() }, 1000); 
					}
				}
			})
		});
		
		var timer2;
		
		showWInfo = function(wid){
			clearTimeout( timer2 );
			$('.winfo').hide();
			$('#winfo_'+wid).fadeIn('fast');
		}
		
		hideWInfo = function(wid){
			timer2 =  setTimeout(function() { $('#winfo_'+wid).fadeOut('fast'); }, 5000);
		}

		