Cufon.replace('h1, h2, h3, p');		
			
            $(function() {
				$('.window').css('width', $(window).width());
				$('.window').css('height', $(window).height());	
				$('body').css('width', ($(window).width()*3)+51);			
				
                $('a.hor').bind('click',function(event){
                    var $anchor = $(this);
                    $('html, body').stop().animate({
                        scrollLeft: $($anchor.attr('href')).offset().left
                    }, 1000,'easeInOutExpo');
                    event.preventDefault();
                });
				$('a.ver').bind('click',function(event){
                    var $anchor = $(this);
                    $('html, body').stop().animate({
                        scrollTop: $($anchor.attr('href')).offset().top
                    }, 1000,'easeInOutExpo');
                    event.preventDefault();
                });		
				$('a.diag').bind('click',function(event){
                    var $anchor = $(this);
                    $('html, body').stop().animate({
                        scrollTop: $($anchor.attr('href')).offset().top, scrollLeft: $($anchor.attr('href')).offset().left
                    }, 1000,'easeInOutExpo');
                    event.preventDefault();
                });						
				
				$('html, body').stop().animate({
					scrollTop: $('#home').offset().top, scrollLeft: $('#home').offset().left
				}, 20);
				
				
				
				//Partial Sliding (Only show some of background)
				$('.boxgrid.peek').hover(function(){
					$(".cover", this).stop().animate({top:'170px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
				});
			
				//Caption Sliding (Partially Hidden to Visible)
				$('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
				});
				
				Shadowbox.init();
				
            });
			
			
			
