	var hover = false;
	var moving = false;
	var profileByRow = 6;
	var profileWidth = 151;
	var cntr = 0;
	var speed = 10000;
	var delay = 10000;
	var ads = '';
	var loadedImage = new Array();
	
	$(document).ready(function(){		
		cnt_girls = $('.ads img').size();
		ads = $(".floating_container");		
		$('.ads img').each(function(){	
				cntr++;
				img = $(this).attr("src");
				loadedImage[img] = new Image();
    			loadedImage[img].src = img;				
			if(cntr == cnt_girls){
				setTimeout("slideAds()", delay);		
			}
		});	
		
			
		$(".profile").hover(function(){
			$(this).find(".user_info, .user_info2").animate({'marginTop': 140, 'height': 44}, 'fast');				
		}, function(){			
			$(this).find(".user_info, .user_info2").animate({'marginTop': 154 , 'height': 30 }, 'fast');
		})	
	});

	function slideAds(){	
		moving = true;
		if(hover) return ;
		//var curWidth = parseInt(ads.css("marginLeft").replace("px", ""));
		curWidth = 0;
		var newWidth = curWidth - (profileWidth * profileByRow);
		ads.animate({marginLeft: newWidth}, speed, wait);		
	}
		
	
	function wait(){
		moving = false;		
		ads.css({marginLeft:0});
		ads.find(".profile:lt(" + profileByRow + ")").appendTo(ads);			
		setTimeout("slideAds()",delay);		
	}
		