// JavaScript Document

$(document).ready(function() { 

	getCoordinates(150, 700)
	getCoordinates2(150, 700)

}); 

var intId = setInterval(getCoordinates,2000);

function getCoordinates(x, y) {
	$('.wrapper2').hide();
	$('.wrapper').css('left', x)
	$('.wrapper').css('top', y)
   	clearInterval(intId);  		
		//alert('x: ' + x + ' y: ' + y);
}



var intId2 = setInterval(getCoordinates2,2000);

function getCoordinates2(x, y) {
	$('.wrapper').hide();
	$('.wrapper2').css('left', x)
	$('.wrapper2').css('top', y)
	clearInterval(intId2);  	
			
			
			//alert('x: ' + x + ' y: ' + y);
}

function hideDiv() {
	$('.wrapper').hide();
	$('.wrapper2').hide();
}

function showDiv() {
	$('.wrapper').show();
	$('.wrapper2').show();
}

	


 






