Cufon.replace('h2,h6,#menu a',{fontFamily:'nkim',hover:true});

Core={
	box:$('<div id="box"><div></div></div>').appendTo(document.body),
	scroll:$('html,body').bind('DOMMouseScroll mousewheel',function(t){Core.scroll.stop()}),
	click:function(){
		var pos=$('#page-'+this.href.replace(/\/$/g,'').split('/').pop()).offset();
		pos?Core.scroll.animate({scrollTop:pos.top-100},{duration:700}):window.open(this.href);
		return false;
	},
	gcal:function(el){
		Core.box.show().css((el=$(this)).offset()).children().first().html(el.find('p').html());
		return false;
	}
}


$('div.masonry').masonry({columnWidth:10});
$('html').click(function(e){$.contains(Core.box[0],e.target)||Core.box.hide()});
$('div.row').delegate('a','click',Core.click).find('ol').delegate('a','click',Core.gcal);

var _gaq =_gaq||[],ga=document.createElement('script');
_gaq.push(['_setAccount', 'UA-2741865-28']);_gaq.push(['_trackPageview']);
ga.type='text/javascript';ga.async=true;
ga.src=('https:'== document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';
$('head').append(ga);
