function sDetails(dNum){
	dstrOut = "\n<p><strong>" + arFeatTitle[dNum] + "</strong></p>" +  arFeatText[dNum];
	if (arFeatSample[dNum]!="")
		dstrOut+= '\n<br /><br /><p><strong><a href="' + arFeatSample[dNum] + '">Click Here to View a Menu sample that demonstrates this feature</a>';
	document.getElementById("p_decription").innerHTML = dstrOut;
}

function sMDetails(dNum){
	with(document.getElementById("displayFrame")){
		src = "msamples/" + (parseInt(dNum)+1) + "/index.html";
	}
}

function sSample(dNum){
	with(document.getElementById("displayFrame")){
		if(dNum==22)
			src = "fsamples/" + dNum + "/index.aspx";
		else
			if(dNum==21)
				src = "fsamples/" + dNum + "/index.asp";
		else
			src = "fsamples/" + dNum + "/index.html";
		style.visibility = "visible";
	}
}

function setFrame(){
	with(document.getElementById("displayFrame").style){
		if(document.all && !window.opera)
			left = document.getElementById("content").offsetLeft+document.getElementById("content").parentElement.offsetLeft+5+"px";
		else
			left = document.getElementById("content").offsetLeft+5+"px";
		top =   document.getElementById("content").offsetTop+5+"px";
		width = document.getElementById("content").offsetWidth-10+"px";
		height = document.getElementById("content").offsetHeight-10+"px";
	}
}
