var w=200;
var del=5400; //time before panel starts to slide
var s=2000; //time for panel to slide in from left

$(document).ready(
	function(){


	if($.cookie('aniView') == "1") {
		$("#lefts").css({'marginLeft': '-975px'})
	} else {
		rStart(); r();r();u();r();d();r();r();u();r();u();r();r();d();r();r();d();r();r();r();u();r();
		rSlide();
	}
});


function l() {
	$("#box").animate({left: '-=65'},0).delay(w);
}

function rStart() {
	$("#box").animate({left: '+=65'},0).delay(1000);
}

function r() {
	$("#box").animate({left: '+=65'},0).delay(w);
}

function u() {
	$("#box").animate({top: '-=65'},0).delay(w);
}

function d() {
	$("#box").animate({top: '+=65'},0).delay(w);
}

function rSlide() {
	$("#lefts").delay(del).animate({marginLeft: '-975'},s)
	$.cookie('aniView', '1')
}

