function adjustLinkLayers() // adjust the size and position of the link layers
{
	getLinkLayers(); // get the pointers to the various link layers
	adjustLinkBackground(); // adjust the the link background
	adjustLinkPic(); // adjust the picture and related links
	adjustAddLink(); // adjust the add link layer
	adjustContanentTags(); // adjust the Contanent Tages
	adjustLinkDisplay(); // adjust the position of the display links layer
	adjustDisplayButton(); // addjust the position of the display button layer
}


function adjustLinkBackground() // adjust the the link background
{
	// find the size of the backgound and position it
	var avLinkBckgnd_width=(WebWidth-menuWidth-backGround_brder); // find the available width of the background
	var avLinkBckgnd_height=(WebHeight-(3*backGround_brder)); // find the available height of the background

	lnkbkgDiv.style.width=avLinkBckgnd_width; // set the width of the background layer
	lnkbkgDiv.style.height=avLinkBckgnd_height; // set the height of the background layer

	lnkbkgDiv.style.left=menuWidth; // set the position of the left hand side
	lnkbkgDiv.style.top=2*backGround_brder; // set the pos of the top of the layer top

	BckGndTableDiv.style.width=avLinkBckgnd_width; // set the width of the background table for the link layer
	BckGndTableDiv.style.height=avLinkBckgnd_height; // set the height of the background table for the link layer
}

function adjustLinkPic() // adjust the picture and related links
{
	if(sizeSelection == 0) GlobeDiv.width=GlobeDiv.width/2; // shrink image for small screen
	
	pictDiv.style.width=GlobeDiv.width+(2*backGround_brder); // large screen
	pictDiv.style.left=stripPx(lnkbkgDiv.style.left)+backGround_brder // set the left hand side of the picture layer
	pictDiv.style.top=stripPx(lnkbkgDiv.style.top)+backGround_brder; // set the top of the picture layer
}

function adjustAddLink() // adjust the add link layer
{
	addDiv.style.left=stripPx(pictDiv.style.left);
	addDiv.style.width=stripPx(pictDiv.style.width);
	
	if(sizeSelection == 0) addDiv.style.top=stripPx(pictDiv.style.width); // small screen
	else addDiv.style.top=stripPx(pictDiv.style.width)-(stripPx(pictDiv.style.width)/10);

}

function adjustContanentTags() // adjust the Contanent Tages
{
	// adjust the north american layer
	northAmDiv.style.left=stripPx(pictDiv.style.left)+(stripPx(pictDiv.style.width)/7);
	if(sizeSelection == 0) northAmDiv.style.top=stripPx(pictDiv.style.width)/2; // small screen
	else northAmDiv.style.top=stripPx(pictDiv.style.width)/3;
	
	// adjust the european layer
	europeDiv.style.left=stripPx(pictDiv.style.left)+(stripPx(pictDiv.style.width)/2);
	europeDiv.style.top=stripPx(northAmDiv.style.top)+(stripPx(pictDiv.style.width)/18);
	
	// adjust the asian layer
	asiaDiv.style.left=stripPx(europeDiv.style.left)+(stripPx(pictDiv.style.width)/15);
	asiaDiv.style.top=stripPx(europeDiv.style.top)+(stripPx(pictDiv.style.width)/10);
	
	// adjust the australian layer
	austrDiv.style.left=stripPx(asiaDiv.style.left)+(stripPx(pictDiv.style.width)/20);
	austrDiv.style.top=stripPx(asiaDiv.style.top)+(stripPx(pictDiv.style.width)/8);
	
	// adjust the link layer
	allLnkDiv.style.left=stripPx(pictDiv.style.left)+((stripPx(pictDiv.style.width)-stripPx(allLnkDiv.style.left))/2);
	allLnkDiv.style.top=stripPx(austrDiv.style.top)+(stripPx(pictDiv.style.width)/8);
	
	// adjust the webring layer
	webDiv.style.left=stripPx(allLnkDiv.style.left)
	webDiv.style.top=stripPx(allLnkDiv.style.top)+(stripPx(pictDiv.style.width)/15);
	
}

function adjustLinkDisplay() // adjust the position of the display links layer
{
	dispDiv.style.left=stripPx(pictDiv.style.left)+stripPx(pictDiv.style.width)+2*backGround_brder;
	dispDiv.style.top=stripPx(pictDiv.style.top);
}

function adjustDisplayButton() // addjust the position of the display button layer
{
	disLinkButton.style.left=stripPx(pictDiv.style.left)+stripPx(pictDiv.style.width)+2*backGround_brder;
	disLinkButton.style.top=stripPx(pictDiv.style.top);
}


