     
    ddaccordion.init({
	    headerclass: "TopOption", //Shared CSS class name of headers group
	    contentclass: "SubOption", //Shared CSS class name of contents group
	    collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	    defaultexpanded: [-1], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
	    animatedefault: false, //Should contents open by default be animated into view?
	    persiststate: true, //persist state of opened contents within browser session?
	    toggleclass: ["", "OpenTopOption"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	    togglehtml: ["none", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	    animatespeed: "fast" //speed of animation: "fast", "normal", or "slow"
    })




function mfExpandMenuOption(pintOptionId)
{

  if (document.readyState != undefined) 
  {
    if (document.readyState == 'complete')
      ddaccordion.expandone("TopOption", pintOptionId);
    else
      setTimeout('mfExpandMenuOption(' + pintOptionId + ')', 1000); 
  }
}

function mfSearchBoxFocus(pobjTextBox)
{
  if (pobjTextBox.value == 'Enter your printer model here')
  {
    pobjTextBox.value = ''
    pobjTextBox.style.color = 'black';
  }
}

function mfSearchBoxBlur(pobjTextBox)
{
  if (pobjTextBox.value == 'Enter your printer model here' || pobjTextBox.value == '')
  {
    pobjTextBox.value = 'Enter your printer model here'
    pobjTextBox.style.color = 'silver';
  }
}

function mfProductSearch()
{
  var objTextBox = document.getElementById('txtProductSearch');

  if (objTextBox.value != '' && objTextBox.value != 'Enter your printer model here')
  {
    document.getElementById('divProductSearchText').innerHTML = objTextBox.value.toUpperCase();
    document.getElementById('divProductSearch').style.display='none';
    document.getElementById('divProductSearchWait').style.display='';

    window.location.href='/SearchResults.aspx?Keyword=' + objTextBox.value;
  }
  else
    alert('Please enter the make or model of your printer before trying to search!');
}