$(function(){
	//navigation
	var curSection = $.url.segment(0);
	$("#nav-"+curSection).addClass("active");
	
	if(curSection){
		var first = curSection.substr(0,1);
		first = first.toUpperCase();
		curSection = curSection.substr(1,curSection.length)
		document.title = first + curSection + " | Firerift.com";
	}
	
	$("a.watch-overview").click(function(){
		window.location = "#overviewvideo";
		$("div.front-play-btn").hide();
		$("#overview-video").show();
		return false;	
	});
	
});

frSuccess = function(){	
	$("div.screenshot-sm img").fullsize({iconOffset:3});
	$("div.entry img").fullsize();
	$("div.side-element.dynamic").each(function(){
		$("a:last", this).addClass("bottom");
	});
}
