	$(document).ready(function() {
		$('#banner').css({backgroundPosition: '960px 256px'});
		bannercycle();
		
		$('.slideshow').cycle({
			fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		});
	});
	
	function bannercycle(){
		var delay = 6000;
		setTimeout('one()',delay);
		setTimeout('two()',delay*2+1000);
		setTimeout('three()',delay*3+1000);
		setTimeout('four()',delay*4+1000);
		setTimeout('bannercycle()',delay*4+2000);
	}
	
	function one(){ // moves to two
		$("#banner").animate({backgroundPosition: '960px 768px'}, 1000, 'swing');
		$("#bannerlink").click(function(){opencontact()});
	}
	
	function two(){ //moves to three
		$("#banner").animate({backgroundPosition: '1920px 768px'}, 1000, 'swing');
		$("#bannerlink").click(function(){window.location = "http://www.border7.com/portfolio/"});
	}
	
	function three(){ //moves to four
		$("#banner").animate({backgroundPosition: '1920px 256px'}, 1000, 'swing');
		$("#bannerlink").click(function(){window.location = "http://www.border7.com/services/"});
	}
	
	function four(){ // resets
		$("#banner").animate({backgroundPosition: '960px 256px'}, 1000, 'swing');
	}

