// JavaScript Document

$(document).ready(function(){
	topNav.init();			
});


topNav = {

	init: function() {	
	

		var cookieExists = getCookie("stcNav");
	
		if (cookieExists != 1) {
			setNavCookie();
		} 
		else {
			$('#topNav').addClass("cookied");
		}
		
	
		function setNavCookie() {
			
			setCookie("stcNav",1,1) // sets the cookie to prevent this from happening again before 1 day
			
			t = setInterval(function(){
				
				$('#topNav').animate({
					left: '400'
				 }, 300);
				
				
				clearInterval(t);
			},2000);
					
		}
	
	}
	//e:init
}
//e:topNav







