  $(document).ready(function() {

	$.getJSON('website.asp', '', processResponse);
	
	function processResponse(data) {
		var rightDelay;
		var bottomDelay;
		var bottomBG;

		bottomBG ="url(../vsImages/PageFooter/";
		bottomBG += data.bottomBG;
		bottomBG += ")";
		$('#KeyLink').css('background-image',bottomBG);

		rightDelay=data.rightDelay;	
		bottomDelay=data.bottomDelay;	

		rightDelay=rightDelay*1000;	
		bottomDelay=bottomDelay*1000;	

		$('#SponsorList').cycle({ 
		fx:    'fade', 
		timeout: rightDelay,
		next: '#rightNext',
		prev: '#rightPrev'
		});
	
		$('#LinkStack').cycle({ 
		fx:    'fade', 
		timeout: bottomDelay,
		next: '#bottomNext',
		prev: '#bottomPrev'
		});

		$('#StackTwo').show();
		$('#StackFour').show();
	}

	$('#bottomPrev').click(function() {
		$('#LinkStack').cycle('pause');
	});
	$('#bottomNext').click(function() {
		$('#LinkStack').cycle('pause');
	});

	$('#rightPrev').click(function() {
		$('#SponsorList').cycle('pause');
	});
	$('#rightNext').click(function() {
		$('#SponsorList').cycle('pause');
	});

	$('#bottomPrev').css('cursor','pointer');
	$('#bottomNext').css('cursor','pointer');

	$('#rightPrev').css('cursor','pointer');
	$('#rightNext').css('cursor','pointer');

});

