// JavaScript Document// JavaScript Document

//RUNS AFTER PAGE LOADED.

$(document).ready(function()
{


	if (msOnDemandDocumentId == 33721 && msOnDemandContextId != '')
	{
		//alert(msOnDemandContextId);
		document.getElementById("inputSearchText").value = msOnDemandContextId;

		$("inputSearchText").val(msOnDemandContextId);
		DocumentSearch();	
	}


//	if (msOnDemandDocumentId == 27654 && msOnDemandContextId != '')
//	{
//		switch (msOnDemandContextId)
//		{
//			case '5572': // Business
//			case '5573': // Rotary
//			case '5574': // Communication
//			case '5575': // Government
//			case '5576': // Education
//			case '5577': // Charity
//			case '5578': // Leisure
//			case '5579': // Community
//			case '5580': // International
//			case '5581': // Medical
//			case '5582': // Environment
//			case '5583': // Plus
//			case '6352': // New Items
//				alert(msOnDemandContextId);
//				DocumentSearch('speaker',msOnDemandContextId);
//				break;
//			default:
//				document.getElementById("inputSearchText").value=msOnDemandContextId;
//				DocumentSearch();
//				break;
//		}
//	}



})







