/*
  All HTML objects on this page are positioned reletive to
  the logo box.  Therefore, all x/y coordinates start with
  the logo box as the base and have a +/- after/.
*/



function positionElements () 
{


	var rightX =  page.winW();
	var bottomY =  page.winH();
	var centerX = Math.round(rightX/2, 0);
	var centerY = Math.round(bottomY/2, 0);

	var logoBoxX = centerX - 375;
	var logoBoxY = centerY - 250;
	
	if (logoBoxX < 15) { logoBoxX = 15; }
	if (logoBoxY < 15) { logoBoxY = 15; }

	var logoBox = getLyr('logobox');
	with (logoBox) 
		{
		x(logoBoxX);
		y(logoBoxY);
		}
  	//Contact
	var bird2 = getLyr('dbird2');
		with (bird2) {
			x(logoBoxX +250);
			y(logoBoxY +65);
			}
	var text2 = getLyr('text2');
		with (text2) {
			x(logoBoxX +300);
			y(logoBoxY +85);
		}
	//Artists
	var bird1 = getLyr('dbird1');
		with (bird1) {
			x(logoBoxX +385);
			y(logoBoxY +95);
			}
	var text1 = getLyr('text1');
		with (text1) {
			x(logoBoxX +410);
			y(logoBoxY +75);
		}
	//Events
	var bird3 = getLyr('dbird3');
		with (bird3) {
			x(logoBoxX +475);
			y(logoBoxY +21);
			}
	var text3 = getLyr('text3');
		with (text3) {
			x(logoBoxX +445);
			y(logoBoxY +10);
		}
	//Home
	var bird6 = getLyr('dbird6');
		with (bird6) {
			x(logoBoxX +640);
			y(logoBoxY +121);
			}
	var text6 = getLyr('text6');
		with (text6) {
			x(logoBoxX +605);
			y(logoBoxY +128);
		}
//Above is "every page" navigation suff
	var artistsBox = getLyr('artistsbox');
	with (artistsBox) 
		{
		x(logoBoxX+485);
		y(logoBoxY+215);
		}  
	var artistbirdpointBox = getLyr('artistbirdpointbox');
	with (artistbirdpointBox) 
		{
		x(logoBoxX+200);
		y(logoBoxY+280);
		}  

	if (false) { //Debug
		alert(
			'window size: '+rightX+' x '+bottomY+"\n"+
			'logobox: x:'+logoBoxX+'; y:'+logoBoxY+"\n"+
			'bird2: x:'+(logoBoxX +250)+'; y:'+(logoBoxY +65)+"\n"+
			'bird1: x:'+(logoBoxX +390)+'; y:'+(logoBoxY +93)+"\n"+
			'bird3: x:'+(logoBoxX +475)+'; y:'+(logoBoxY +21)+"\n"+
			'bird6: x:'+(logoBoxX +640)+'; y:'+(logoBoxY +121)+"\n"+
/*  			'subjectsbox: x:'+(logoBoxX +70)+'; y:'+(logoBoxY +285)+"\n"+  */
			'artistsbox: x:'+(logoBoxX +460)+'; y:'+(logoBoxY +255)+"\n"+
/*  			'subjectbirdpointbox: x:'+(logoBoxX +242)+'; y:'+(logoBoxY +287)+"\n"+  */
			'artistsbirdpointbox: x:'+(logoBoxX +305)+'; y:'+(logoBoxY +315)+"\n"
		);
	}
}