$(document).ready(function(){
	
	$('#button1_b').mouseover(function(e){								
		$('#button1_a').fadeIn('fast');
	});		
	
	$('#button1_a').mouseleave(function(e){	
		$('#button1_a').hide();
	});	
	
	$('#button1_a').click(function(e){	
		 window.location = "/steklyannye-konstrukcii/view/id/155"; 
	});
	
	$('#button2_b').mouseover(function(e){								
		$('#button2_a').fadeIn('fast');
	});		
	
	$('#button2_a').mouseleave(function(e){	
		$('#button2_a').hide();
	});
	
	$('#button2_a').click(function(e){	
		 window.location = "/steklopakety/"; 
	});
	
	
	
	
	$('#button3_b').mouseover(function(e){								
		$('#button3_a').fadeIn('fast');
	});		
	
	$('#button3_a').mouseleave(function(e){	
		$('#button3_a').hide();
	});
	$('#button3_a').click(function(e){	
		 window.location = "/obrabotka-stekla/view/id/161"; 
	});
});



var message="Правый клик запрещен!";
///////////////////////////////////
      function clickIE4(){
      if (event.button==2){
      alert(message);
      return false;
      }
      }
function clickNS4(e){
      if (document.layers||document.getElementById&&!document.all){
      if (e.which==2||e.which==3){
      alert(message);
      return false;
      }
      }
      }
if (document.layers){
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown=clickNS4;
      }
      else if (document.all&&!document.getElementById){
      document.onmousedown=clickIE4;
      }
document.oncontextmenu=new Function("alert(message);return false")
