/*var refreshMasonry = function ()
{
	$('#features .box').each(function(){
		$(this).css('position', 'absolute'); // correct masonry bug
	});
    
	$('#features').masonry(); // re-sort goods
}


$('#content').masonry({
	 columnWidth: 10, 
	 itemSelector: '.box'
});


$(window).resize(function() {
	//refreshMasonry();
	$('#content').masonry();
});

/*
$('#features ul li a').hover(function() {
	refreshMasonry();
});
*/


$('#features').isotope({
  // options
  itemSelector: '.box',
  
  masonry: {
  	columnWidth : 5
  },
  
  animationEngine: 'jquery',
  animationOptions: {
	duration: 250,
  	easing: 'linear',
  	queue: false
  },
  
  layoutMode: 'masonry',
  
});



if (navigator.userAgent.indexOf('iPhone') != -1) {
        addEventListener("load", function() {
                setTimeout(hideURLbar, 0);
        }, false);
}
function hideURLbar() {
        window.scrollTo(0, 1);
}
