function initCallback (current, total) {
	var url;
	var self = this;
	for(var i = 0; i < total; i++) {
		url = i === 0 ? '/img/nav-slide-front-on.png' : '/img/nav-slide-front.png';
		$('#slidenavigation > ul').append('<li><img src="' + url + '" alt=""></li>');
	}
	$('#slidenavigation > ul > li > img').each(function(index, value) {
		$(this).click(function() {
			$(self).jslide('goto', index);
		});
	});
}

function initCallbackSub (current, total) {
	var url;
	var self = this;
	for(var i = 0; i < total; i++) {
		url = i === 0 ? '/img/nav-slide-front-on.png' : '/img/nav-slide-front.png';
		$('#slidenavigation > ul').append('<li><img src="' + url + '" alt=""></li>');
	}
	$('#slidenavigation > ul > li > img').each(function(index, value) {
		$(this).click(function() {
			$(self).jslide('goto', index);
		});
	});
}

function callbackSub (current, total) {
	var url;
	$('#slidecount > img').each(function(index, value) {
		url = index === current ? '/img/nav-slide-front-on.png' : '/img/nav-slide-front.png';
		this.src = url;
	});
	
	if(display = total < 2) {
		$('#topimagenav').hide();
	}
}

function rotateCallback (current, total) {
	var url;
	/*$('#slideName').html('<a href="' + slideinfo[current].link + '">' + slideinfo[current].name + '</a>');
	$('#slideDesc').text(slideinfo[current].description);
	if(!jQuery.browser.msie || (jQuery.browser.msie && $.browser.version > 8)) {
		$('#slidedescription').css('display','none').fadeIn('slow');
	}*/
	
	$('#slidenavigation > ul > li > img').each(function(index, value) {
		url = index === current ? '/img/nav-slide-front-on.png' : '/img/nav-slide-front.png';
		this.src = url;
	});
}
