//SIMPLOT FlashInterface.js

// set crumbtrail from flash...

var SectionID = 58;
var ProductDocumentID = 64;

function SetCrumbtrail(crumbLabel) {

	var cSt = '';
	cSt += '<a href="Index.asp">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
	cSt += '<a href="Documents.asp?ID=' + SectionID + '&amp;Title=Catering">Catering</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
	cSt += '<a href="Documents.asp?ID=' + ProductDocumentID + '&amp;Title=Products">Products</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
	cSt += crumbLabel;
	
	var cDIV = document.getElementById('crumbTrail');
	cDIV.innerHTML = cSt;
}

function ResetCrumbtrail() {

	var cSt = '';
	cSt += '<a href="Index.asp">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
	cSt += '<a href="Documents.asp?ID=' + SectionID + '&amp;Title=Catering">Catering</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
	cSt += '<a href="Documents.asp?ID=' + ProductDocumentID + '&amp;Title=Products">Products</a>';
	
	var cDIV = document.getElementById('crumbTrail');
	cDIV.innerHTML = cSt;
}







// Show Page Content based on flash display...

function ShowCategory() {
	// clear search listing...
	document.getElementById('ProductContent').innerHTML = "";
}

function ShowSubCategory(SearchRef) {
	// ajax - get sub-category search listing...
	//document.getElementById('ProductContent').innerHTML = "<H4>" + SearchRef + "</H4>";	
	//alert("search " + SearchRef);
	//displayDynamicPanelNoLoader(xmlHttp, SearchRef, "ProductContent", "");
}
