$(document).ready(function () {
    $("#main").find("a.link-out").each(function (i, e) {
        $(this).attr("target", "_blank");
    });
	$.localScroll({
		target:     '#home', // could be a selector or a jQuery object too.
		queue:      true,
		duration:   600,
		hash:       true,
		onBefore:   function(e, anchor, $target) {
			// The 'this' is the settings object, can be modified
		},
		onAfter:    function(anchor, settings) {
			// The 'this' contains the scrolled element (#content)
		}
	});
    $("ul.portfolios").each(function () {
        $(this).find("a").lightBox();
        $(this).find("li:nth-child(5n)").each(function () {
            $(this).addClass("last");
        });
    });
});
