$(document).ready(function(){
				$('#ctl00_navMenu_blNavList li').each(function(n){
					if((n + 1) - 5 * Math.floor((n + 1)/5) == 2){
						$(this).css("margin-bottom", "36px");
					} else if((n + 1) - 5 * Math.floor((n + 1)/5) == 0) {
						$(this).css("margin-bottom", "37px");
					} 
				})
				
				$('#ctl00_navSub_blNavList li').each(function(n){
					if((n + 1) - 7 * Math.floor((n + 1)/7) == 1){
						$(this).css("margin-bottom", "17px");
					} else if((n + 1) - 7 * Math.floor((n + 1)/7) == 2){
						$(this).css("margin-bottom", "17px");
					} else if((n + 1) - 7 * Math.floor((n + 1)/7) == 3){
						$(this).css("margin-bottom", "1px");
					} else if((n + 1) - 7 * Math.floor((n + 1)/7) == 4){
						$(this).css("margin-bottom", "15px");
					} else if((n + 1) - 7 * Math.floor((n + 1)/7) == 5){
						$(this).css("margin-bottom", "16px");
					} else if((n + 1) - 7 * Math.floor((n + 1)/7) == 6){
						$(this).css("margin-bottom", "17px");
					} else if((n + 1) - 7 * Math.floor((n + 1)/7) == 0){
						$(this).css("margin-bottom", "1px");
					}
				})
				var img = $('#croppic a img');
				var src = img.attr('src');
				//console.log(src);
				//console.log($('#croppic a').attr('href'));
				if(src){
					img.css('background-image', 'url(' + src + ')').attr('src', 'App_Themes/Basic/pics/flik.png');
					$('#croppic a').fancybox({
						'zoomOpacity'			: true,
						'overlayShow'			: false,
						'zoomSpeedIn'			: 500,
						'zoomSpeedOut'			: 500
					});
				}
				

			});