$(document).ready(function () {
  //$("a").attr("target", "_blank");
  	//$('#comment').css({'display' : 'none'});
		// http://jquery.offput.ca/every/
		
		var timecount = new Array;
		for (i=0; i<10; i++) {
			var numbercount = 0;
			var numbercount = Math.floor(Math.random()*2.55);
			if (numbercount >= 3){numbercount = 3;}
			timecount[i] = numbercount;
		}
					
		$("#counter").html("Loading counter...");
		$("#counter").everyTime(300,function(i) {
			
			// random
			var timenum = Math.floor(Math.random()*10);
			
			// display
			counter = counter + timecount[timenum];
			var counterS = counter.toString();
			counterS1 = counterS.substr(0,2);
			counterS2 = counterS.substr(2,3);
			counterS3 = counterS.substr(5,3);
			$(this).html(""+counterS1+" "+counterS2+" "+counterS3+" "+" Urls already resolved !");
		});
		
		$("#counter24").html("Loading counter...");
		$("#counter24").everyTime(300,function(i) {
			
			if(counter24 > 100000){
			// random
			var timenum24 = Math.floor(Math.random()*10);
			
			counter24 = counter24 + timecount[timenum24];
			var counter24S = counter24.toString();
			counter24S1 = counter24S.substr(0,3);
			counter24S2 = counter24S.substr(3,3);
			$(this).html(""+counter24S1+" "+counter24S2+" "+" Urls");
			}
			else if (counter24>10000){
			// random
			var timenum24 = Math.floor(Math.random()*10);
			
			// display
			counter24 = counter24 + timecount[timenum24];
			var counter24S = counter24.toString();
			counter24S1 = counter24S.substr(0,2);
			counter24S2 = counter24S.substr(2,3);
			$(this).html(""+counter24S1+" "+counter24S2+" "+" Urls");
			}
		});
		   
	
});

