﻿function ignore(cmc_param) {

}
/*Setting the collapse\expand state of the filters.  
		The function is called from each filter object but appears once in the search page*/
		function SwitchStyle(imgObj)
		{
			if (imgObj.title=='Expand') 
			{
				//img.td.tr.tbody.table.siblingTable = children table
				//imgObj.parentElement.parentElement.parentElement.parentElement.nextSibling.style.display='';
				imgObj.title = 'Collapse';
				imgObj.src = '/img/site/common/mercado/arrow_up.gif';
			}
			else
			{
				//img.td.tr.tbody.table.siblingTable = children table
				//imgObj.parentElement.parentElement.parentElement.parentElement.nextSibling.style.display='none';
				imgObj.title = 'Expand';
				imgObj.src = '/img/site/common/mercado/arrow_down.gif';		
			}
			// TAY, Changed IE4-style "parentElement" to W3C "parentNode" for modern browsers
			toggleDisplay(imgObj.parentNode.parentNode.parentNode.parentNode.nextSibling);
		}

function toggleDisplay(domEle) {
// TAY, Moved the toggle into a function to add code to work with non-IE browsers
 if (domEle) {
 myEle = domEle

  while (!myEle.style) {
   myEle = myEle.nextSibling;
    if (!myEle) break;
  }
   
  if (myEle.style.display == 'block') {
   myEle.style.display='none';
  } else {
   myEle.style.display='block';
  }
  domEle = myEle;
 }
}

