
	 $(function() {
				
				var browser		= navigator.appName
var ver			= navigator.appVersion
var thestart	= parseFloat(ver.indexOf("MSIE"))+1 //This finds the start of the MS version string.
var brow_ver	= parseFloat(ver.substring(thestart+4,thestart+7)) //This cuts out the bit of string we need.

if ((browser=="Microsoft Internet Explorer") && (brow_ver < 9)) //By default the min. IE ver is set to 6. Change as desired.
	{
	window.location="http://www.go-smri.com/ie2.html"; //URL to redirect to.
	}
			
							$("#box1 div, #box2 div, #box3 div").animate({ opacity: 0 }, 0);

			
				$("#textBox").animate({ opacity:0 }, 0);
				$("#links li").animate({ opacity:0.3 }, 0);
				$("#mainBtns li").animate({ color:"#666"}, 0);
				
				$("#bgblack, #backArrow").css({"visibility":"hidden"});
				$("#bgblack").animate({ opacity:0 }, 0);
				$(".pageHold").css({"visibility":"hidden"});
		
		$(function() {
			$("#mainBtns li").hover( function() {
				$(this).stop().animate({ color:"#fff", backgroundColor:"#CC0000"}, 800, 'easeOutExpo');
				},
			function() {
				$(this).stop().animate({ color:"#666", backgroundColor:"#fff"}, 600, 'easeOutExpo');
				});
		
			});
			
		$(function() {
			$("#links li").hover( function() {
				$(this).stop().animate({ opacity: 1}, 800, 'easeOutExpo');
				},
			function() {
				$(this).stop().animate({opacity: 0.3}, 600, 'easeOutExpo');
				});
		
			});
		
		
		
		
		
		$(function() {
			$("#box1").hover( function() {
				$("#box1 p").stop().animate({ bottom:'-30px'}, 500, 'easeOutExpo');
				$("#box1 div").stop().animate({ opacity: 1 }, 500, 'easeOutExpo');
				},
			function() {
				$("#box1 p").stop().animate({ bottom:'-110px'}, 300, 'easeOutExpo');
				$("#box1 div").stop().animate({ opacity: 0 }, 500, 'easeOutExpo');
				});
		
			});
		
		$(function() {
			$("#box2").hover( function() {
				$("#box2 p").stop().animate({ bottom:'-30px'}, 500, 'easeOutExpo');
				$("#box2 div").stop().animate({ opacity: 1 }, 500, 'easeOutExpo');
				},
			function() {
				$("#box2 p").stop().animate({ bottom:'-110px'}, 300, 'easeOutExpo');
				$("#box2 div").stop().animate({ opacity: 0 }, 500, 'easeOutExpo');
				});
		
			});
		
		$(function() {
			$("#box3").hover( function() {
				$("#box3 p").stop().animate({ bottom:'-30px'}, 500, 'easeOutExpo');
				$("#box3 div").stop().animate({ opacity: 1 }, 500, 'easeOutExpo');
				},
			function() {
				$("#box3 p").stop().animate({ bottom:'-110px'}, 300, 'easeOutExpo');
				$("#box3 div").stop().animate({ opacity: 0 }, 500, 'easeOutExpo');
				});
		
			});
		
		
		
		
		
		$(function() {
			$(".leftArrow, .rightArrow").hover( function() {
				$(this).stop().animate({ opacity: 0.6}, 800, 'easeOutExpo');
				},
			function() {
				$(this).stop().animate({opacity: 1}, 600, 'easeOutExpo');
				});
		
			});
		
		
		$(".btn, .contactLink").click( function() {
									$(".pageHold").css({"visibility":"hidden"});
									$(".pageHold div, .page").css({"visibility":"hidden"});
									$(".pageHold, .page").animate({ top:'-1200px' }, 600, 'easeOutExpo');

								  });
		
		
			$("#b2").click( function() {
									 
				$("#topBarContent").animate({ top:'40px' }, 800, 'easeOutExpo');
				$("#centerBar, #supersized").animate({ top:'300px' }, 800, 'easeOutExpo');
				$("#topBarHold").animate({ height:'300px' }, 800, 'easeOutExpo');
				$("#bgpattern, #mainContentHold").animate({ top:'750px' }, 800, 'easeOutExpo');
				$("#bgblack, #backArrow").css({"visibility":"visible"});
				$("#bgblack, #backArrow").animate({ opacity:0.8 }, 800);
			});
			
			
			$("#b3").click( function() {
				$("#topBarContent").animate({ top:'-640px' }, 800, 'easeOutExpo');
				$("#centerBar, #supersized").animate({ top:'300px' }, 800, 'easeOutExpo');
				$("#topBarHold").animate({ height:'300px' }, 800, 'easeOutExpo');
				$("#bgpattern, #mainContentHold").animate({ top:'750px' }, 800, 'easeOutExpo');
				$("#bgblack, #backArrow").css({"visibility":"visible"});
				$("#bgblack, #backArrow").animate({ opacity:0.8 }, 800);
			});
			
			
			$("#b4, .contactLink").click( function() {
				$("#topBarContent").animate({ top:'-340px' }, 800, 'easeOutExpo');
				$("#centerBar, #supersized").animate({ top:'300px' }, 800, 'easeOutExpo');
				$("#topBarHold").animate({ height:'300px' }, 800, 'easeOutExpo');
				$("#bgpattern, #mainContentHold").animate({ top:'750px' }, 800, 'easeOutExpo');
				$("#bgblack, #backArrow").css({"visibility":"visible"});
				$("#bgblack, #backArrow").animate({ opacity:0.8 }, 800);
			});
		
		
			
			$("#backArrow, #b1, #bgblack").click( function() {
				$("#topBarContent").animate({ top:'0' }, 600, 'easeOutExpo');
				$("#centerBar, #supersized").animate({ top:'50px' }, 600, 'easeOutExpo');
				$("#topBarHold").animate({ height:'50px' }, 600, 'easeOutExpo');
				$("#bgpattern, #mainContentHold").animate({ top:'490px' }, 600, 'easeOutExpo');
				$("#bgblack, #backArrow").css({"visibility":"hidden"});
				$("#bgblack, #backArrow").animate({ opacity:0 }, 600);
									$(".pageHold").css({"visibility":"hidden"});
									$(".pageHold div, .page").css({"visibility":"hidden"});
									$(".pageHold, .page").animate({ top:'-1200px' }, 600, 'easeOutExpo');
			});
			
		$(function() {
					$("#backArrow").hover( function() {
					$(this).stop().animate({ opacity: 0.3}, 800, 'easeOutExpo');
				},
				function() {
					$(this).stop().animate({opacity: 1}, 600, 'easeOutExpo');
						});
		
			});		
		
			
			
			$(".box").click( function() {
					$(".pageHold").css({"visibility":"visible"});
					$(".pageHold").animate({ top:'50px' }, 600, 'easeOutExpo');
					$(".page").animate({ top:'80px' }, 600, 'easeOutExpo');
				$("#bgblack").css({"visibility":"visible"});
				$("#bgblack").animate({ opacity:0.8 }, 800, 'easeOutExpo');
				 $("html, body").animate({ scrollTop: 0 }, 700, 'easeOutExpo');
				});	
			
			$("#box1").click( function() {
				$("#p1").css({"visibility":"visible"});
				$("#p2, #p3").css({"visibility":"hidden"});
									   });

			$("#box2, #smriservicesLink").click( function() {
				$("#p1, #p3").css({"visibility":"hidden"});
				$("#p2").css({"visibility":"visible"});
				 $("html, body").animate({ scrollTop: 0 }, 700, 'easeOutExpo');
									   });


			$("#box3").click( function() {
				$("#p1, #p2").css({"visibility":"hidden"});
				$("#p3").css({"visibility":"visible"});
									   });

		
			
		$("#pageRight").click( function() {	
				$("#p1").css({"visibility":"hidden"});
				$("#p2").css({"visibility":"visible"});
					
		});
		
		$("#pageLeft").click( function() {	
				$("#p2").css({"visibility":"hidden"});
				$("#p1").css({"visibility":"visible"});
					
		});
		
		
		
		
		
	$(function() {
			$("#btnS1").click( function() {
					$("#servicesHold").animate({ left:'-800px' }, 600, 'easeOutExpo');
									   });
			});	
	
	
	$(function() {
			$(".services li").hover( function() {
					$(this).stop().animate({ opacity: 0.3}, 800, 'easeOutExpo');
									 },
				function() {
					$(this).stop().animate({opacity: 1}, 600, 'easeOutExpo');
						});
		
			});		
		
		
		
	});	

