function getCookie(nm)
         {
				  var cook =  document.cookie ;
					
					var st;
					var sch = nm + "=";
					var end;
					st = cook.indexOf(sch);
					
					st += sch.length;
					end = cook.indexOf(";",st);
					
					if(end != -1)
					    {
					     var end2 = cook.indexOf(";",st);
							}
					else
					    {
							 var end2 = cook.length;
							}		 
					var bob2 =  cook.substring(st,end2);
					return bob2;
					
				 }		
				 
function hit_count()
   {				 		 
     var count_val = getCookie('numb_nut');

     var digits = count_val.length;

     var zeros = 7 - digits;

     var fullc = '';
 
      for(i=0; i<zeros; i++)
			    {
			      fullc += '0';
			    }
					
					fullc += count_val;
					
			var fullc_split = new Array();		
					fullc_split = fullc.split('');
					
			for(x=0; x<fullc.length; x++)
			    {
					var elle = 'count_sib'+x; 
					var img = "url('../images/cimg"+fullc_split[x]+".jpg')";
					
					 document.getElementById(elle).style.background = img; 
					 
					}	
		}
		
function unhide(x)
       {
			 var mee = getCookie('my_eyes');
			  if(x == 1 && mee == 1)
				  {
			     document.getElementById('count_par').className = 'count_boy';
					}
				else
			    {
					document.getElementById('count_par').className = 'count_boy2';
					}		 
			 }		
			

