
function setObjectBlock(n)
{
//document.getElementById(n).style.display = "block";

if (document.getElementById(n).style.display == "none") Effect.Appear(n , { duration:0.5, from:0, to:1});

}


function keepObjectBlock(n)
{
document.getElementById(n).style.display = "block";
}

function hideObject(n) 
{ 
document.getElementById(n).style.display = "none";
}







// ****************************************************
// ** COLLECTION MENU IMAGE SHADOWS
// ****************************************************

function SetShadow(fObj)
{
var obj = "shadow" + fObj;
document.getElementById(obj).style.background = "#cc9900";
}

function ReSetShadow(fObj)
{
var obj = "shadow" + fObj;
document.getElementById(obj).style.background = "#666666";
}




function ShowMail()
{
var p = "web";
var d = "aathorntonjeweller.com";
var m = p + "@" + d;
document.getElementById("emailaddress").innerHTML = "<a href='mailto:" + m + "' class='bodylinkUL'>" + m + "</a>";
}








//***************************************************
//** Convert to case
//***************************************************


function ConvertCase(fElementID, fConType)
	{
	var txtString; 
	txtString = document.getElementById(fElementID).value;
	if (fConType == "UPPER") txtString = txtString.toUpperCase();
	if (fConType == "LOWER") txtString = txtString.toLowerCase();
	document.getElementById(fElementID).value = txtString;
	}








// SHOW/HIDE ARTICLE SECTION
function showSection(fID, fCount)
{

var State = document.getElementById("articlelist" + fID).style.display;
if (State == "none")
	{
	hideSections(fCount);
	document.getElementById("articlelist" + fID).style.display = "block";
	document.getElementById("expandicon" + fID).src = srcMinus; 
	document.getElementById("expandicon" + fID).alt = "Collapse section";
	document.getElementById("articleheader" + fID).style.background = "#ffffff";
	document.getElementById("articleheader" + fID).style.border = "1px solid #999999";
	}
	else
	{
	document.getElementById("articlelist" + fID).style.display = "none";
	document.getElementById("expandicon" + fID).src = srcPlus;
	document.getElementById("expandicon" + fID).alt = "Expand section";
	}
}




// HIDE ALL ARTICLE SECTIONS
function hideSections(fCount)
{

for (var x = 1; x < fCount+1; x++) {
	document.getElementById("articlelist" + x).style.display = "none";
	document.getElementById("expandicon" + x).src = srcPlus;
	document.getElementById("expandicon" + x).alt = "Expand section";
	document.getElementById("articleheader" + x).style.background = "#ffffff";
	document.getElementById("articleheader" + x).style.border = "1px solid #ffffff";
	}
}
















