
$(window).load(function(e){
		var moveThis = $('.rotator');
		var winw  = $(window).width();
		var halfWin = parseInt(Math.ceil(winw/2));
		// store the menus
		// left
		var leftMenu = $('.mainNav');
		var rightMenuItems = $('.socialNav').find('a')
		leftMenu.hover = true
		// right
		var rightMenu = $('.socialNav');
		// store the rotator wrapper
		var moveThis = $('.rotator');
		// from the dead center of the page,
		// adjust the position of the floating menus
		setTimeout(leftMenu.css('left', (halfWin - 610) + 'px'),200);
		setTimeout(rightMenu.css('left', (halfWin + 445) + 'px'),200);
		// adjust the position of the rotator 
		moveThis.css('left', ((halfWin - 1650 ) + 'px'));
			moveThis.css('display','block');
		leftMenu.css('display','block');
		rightMenu.css('display','block');
});
// restrain the rota
$(window).resize(function(e){
		var moveThis = $('.rotator');
		var winw  = $(window).width();
		var halfWin = parseInt(Math.ceil(winw/2));
		// store the menus
		// left
		var leftMenu = $('.mainNav');
		// right
		var rightMenu = $('.socialNav');
		// store the rotator wrapper
		var moveThis = $('.rotator');
		// from the dead center of the page,
		// adjust the position of the floating menus
		leftMenu.css('left', (halfWin - 610) + 'px');
		rightMenu.css('left', (halfWin + 450) + 'px');
		// adjust the position of the rotator 
		moveThis.css('left', (halfWin - 1650 ) + 'px');
			moveThis.css('display','block');
		leftMenu.css('display','block');
		rightMenu.css('display','block');
});
$('body').click(function(){
		var moveThis = $('.rotator');
		var winw  = $(window).width();
		var halfWin = parseInt(Math.ceil(winw/2));
		// store the rotator wrapper
		var moveThis = $('.rotator');
		// adjust the position of the rotator 
		moveThis.css('left', ((halfWin - 1650 ) + 'px'));
			moveThis.css('display','block');
});


