

function PreloadImg(){
		$.ImagePreload("public/images/head/head_img_2.jpg");
		$.ImagePreload("public/images/head/head_img_1.jpg");
	}
	
	var StartAds = function(){
		
			if(!$("#head_pic").ImageAnimating()){
				if(ImgIdx+1 > countImg) img = 1;
				else img = ImgIdx+1;
				$("#head_pic").ImageSwitch({	
					NewImage:"public/images/head/head_img_"+img+".jpg",
			
										Speed: 2000
										},function(){
											
											ImgIdx++;
											if(ImgIdx>=countImg) ImgIdx = 0;												
										});												
			}
		
	}		
	
	
	
				var onMouseOutOpacity = 0.67;





	$(document).ready(function(){
	
	
	 
	if($("#head_pic")) {
		PreloadImg();
		setInterval(StartAds,6000);
	}
		
		
		
		$('.at').html("@");
		
		
		
			
				
				

		
	});
