/// <reference path="C:\projects\_jQuery\jquery-vsdoc.js"/>
$(document).ready(function () {
	if (typeof OneWeb.Admin === "undefined") {
		//do stuff only when NOT logged in to OW
		$('.slideshow').cycle({
			fx: 'fade',
			timeout: 6000,
			next: '#ss_next',
			prev: '#ss_prev'
		});
		$('.f_slideshow').cycle({
			fx: 'fade',
			timeout: 0,
			next: '#f_next',
			prev: '#f_prev',
			after: onAfter
		});
		//featured project slideshow
		$(".featured").colorbox({ width: "560px", height: "570px", iframe: true });
		//$(".featured").colorbox();
	} else {
		//do stuff when LOGGED IN to OW
		$("div").removeClass("public");
	}
	//do stuff wether logged in to OW or not
	$(".ow_mainNavSub ul").append('<li class="last">&nbsp;</li>');
	//settings for feature slideshow
	function onAfter(curr, next, opts) {
		var title = $(this).attr("alt");
		var caption = title + ' <em>(image ' + (opts.currSlide + 1) + ' of ' + opts.slideCount  + ')</em>';
		$('#caption').html(caption);
	}
});
//typekit init
try { Typekit.load(); } catch (e) { }
