function imgSwap( targetImg, newImg ) {
	if (document.images) document[targetImg].src = newImg.src;
}

function imgSwapFrm( targetImg, newImg ) {
	if (document.images) targetImg.src = newImg.src;
}

function txtSwap( targetTxt, newTxt ){
	targetTxt.innerHTML = newTxt; 
}

function toggleVisibility( targetEl ){
	document.getElementById(targetEl).style.display = 
	(document.getElementById(targetEl).style.display == "none" ) ? "" : "none";
}

function imgSizeMonitor(Img, MaxW, MaxH){
	if( Img.height > MaxH || Img.width > MaxW ){
		( Img.height < Img.width ) ? fIsLandscape = true : fIsLandscape = false;
		if( fIsLandscape ){
			Img.width = MaxW;
			Img.height = (Img.height * MaxW) / Img.width
		}
		else{
			Img.height = MaxH;
			Img.width = (Img.width * MaxH) / Img.height
		}
	}
}

function MenuLinks( Destination, Base ){
	if( Destination != "---" ) self.location = Base + Destination;
}
