		$(document).ready(function(){
			
			$(document).bind('reveal.facebox', function() { show_video(); } )

			$('a.video-facebox').bind('click', function(){
				$.facebox('&nbsp;');
				return false;
			});

			// last
			$("#leftmenu ul li a:last").addClass('last');
			
			// cufon
			Cufon.replace('#leftmenu ul li a span', { fontFamily: 'Gill Sans MT' });
			Cufon.replace('h5', { fontFamily: 'Myriad Pro' });
			Cufon.replace('#site_content h1, .j_acc_title', { fontFamily: 'Myriad Pro' });
			
			// backlink
			$(".backlink").bind('click', function(){
				history.go(-1);
				return false;
			});
			
			// last col
			$("UL.gallery_list:nth-child(3n)").addClass('last_col');
			
			
			$("UL.j_acc LI.item:first").addClass('expanded');
			
			// acc
			$("DIV#site_content UL.j_acc LI.item A.j_acc_title").bind('click', function(){
				
				this_index = $($("DIV#site_content UL.j_acc LI.item A.j_acc_title")).index(this);
				
				$("DIV#site_content UL.j_acc LI.item.expanded DIV.li_content").animate({
					height: "0px"	
				}, 500, function(){
					
					// remove class
					$("DIV#site_content UL.j_acc LI.item.expanded").removeClass('expanded');
					
					// expand
					new_height = 0;
					$("DIV#site_content UL.j_acc LI.item").eq(this_index).addClass('expanded');
					
					$("DIV#site_content UL.j_acc LI.item:eq("+this_index+") DIV.li_content").css('height', 'auto');
					new_height = $("DIV#site_content UL.j_acc LI.item:eq("+this_index+") DIV.li_content").height();
					
					$("DIV#site_content UL.j_acc LI.item:eq("+this_index+") DIV.li_content")
					.css('height', '0px')
					.animate({
						height: new_height + "px"	
					});
					
				});
				return false;	
			});
			
		});
