$(function(){$(".container").masonry({columnWidth:320,gutterWidth:20,isAnimated:true,isFitWidth:true,itemSelector:".brick"})});$("<select />").appendTo("#nav-main");$("<option />",{selected:"selected",value:"",text:"Navigation..."}).appendTo("nav select");$("nav a").each(function(){var a=$(this);$("<option />",{value:a.attr("href"),text:a.text()}).appendTo("nav select")});$("nav select").change(function(){window.location=$(this).find("option:selected").val()});
(function() {
    var po = document.createElement('script'); 
	po.type = 'text/javascript'; 
	po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
  
function plusone_vote( obj ) {
	_gaq.push(['_trackEvent','plusone',obj.state]);
    }
	
// Cycle config
$(function() {
    $('#featured-posts .slider').cycle({
		fx:					'fade',
        timeout:  			7000,
        pause:	  			1,
		slideResize: 		true,
        containerResize:	false,
        width: 				'100%',
		fit: 				1,
        pager:   			'#nav-pager',
        pagerAnchorBuilder: function(idx, slide) { 
        	// return selector string for existing anchor 
        	return '#nav-pager li:eq(' + idx + ') a'; 
        }
    });    
});

$(function() {
	img_height = $('.featured-banner').height();
	$(".featured-banner").css(top, img_height);
});
