function showWebSite(webSiteNum) {
    for (var i = 1; i <= webSites; i++) {
        document.getElementById('webSitesContentV'+i).style.display = (( i == webSiteNum ) ? 'block' : 'none');
    }
}

function galery () {
	var galeryLisHeight = $(".galery_photo li").height();
	var galeryHeight = $(".galery_photo ul:first").height();
	var	galeryPaginator = $(".galeryPaginator span");
	var galeryCounter = 0;
	
	$(".goNext span").click(
		function() {
			var margin = $(".galery_photo ul:first").position().top;
			if ( (galeryLisHeight-margin) < galeryHeight ) {
				margin -= galeryLisHeight;
				$(".galery_photo ul:first").css({'top': margin});
				galeryPaginator.removeClass('here');
				galeryCounter += 1;
				galeryPaginator.eq(galeryCounter).addClass("here");
			} else {
				margin = 0;
				$(".galery_photo ul:first").css({'top': margin});
				galeryCounter = 0;
				galeryPaginator.removeClass('here');
				galeryPaginator.eq(galeryCounter).addClass("here");
			}
		}
	);
	
	$(".goPrev span").click(
		function() {
			var margin = $(".galery_photo ul:first").position().top;
			if ( margin < 0 ) {
				margin += galeryLisHeight;
				$(".galery_photo ul:first").css({'top': margin});
				galeryPaginator.removeClass('here');
				galeryCounter -= 1;
				galeryPaginator.eq(galeryCounter).addClass("here");	
			} else {
				margin = 0 - (galeryHeight - galeryLisHeight) ;
				$(".galery_photo ul:first").css({'top': margin});
				galeryCounter = $(".galery_photo li").length - 1;
				galeryPaginator.removeClass('here');
				galeryPaginator.eq(galeryCounter).addClass("here");
			}
		}
	);
}






