function GetRandom( min, max ) {
	if( min > max ) {
		return( -1 );
	}
	if( min == max ) {
		return( min );
	}
 
        return( min + parseInt( Math.random() * ( max-min+1 ) ) );
}
pos=[""];
pos[1] ="315|150";
pos[2] ="230|380";
pos[3] ="280|485";
pos[4] ="360|550";
pos[5] ="660|120";
pos[6] ="380|70";
pos[7] ="820|130";
pos[8] ="800|470";
pos[9] ="400|135";
pos[10] ="620|470";

function move(){
			var l=pos[GetRandom(1,9)].split("|");
			$("#bck").fadeOut("slow",function(){
			$(this).css({'left' : l[0]+'px','top' : l[1]+'px'	}).fadeIn("slow");
			
			})
			setTimeout("move()", 3000);
}

		$(document).ready(function() {
			$(".fancybox").fancybox({
				'titleShow'     : false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
			$("#bck").hide();
			move();
		});
