var _pageType = 3;
var _mutagId = 0;
var _mutagName = '';
var _mainCatID = 0;
var _catID = 0;
var _subCatID = 0;
var _mainCatName = '';
var _catName = '';
var _subCatName = '';
var _showCompare = false;

function initMutagAuctions(mutagId, mutagName, mainCatID, catID, subCatID, mainCatName, catName, subCatName, aType, vType, pIndex, showCompare) {
  _mutagId = mutagId;
  _mutagName = mutagName;
  _mainCatID = mainCatID;
  _catID = catID;
  _subCatID = subCatID;
  _mainCatName = mainCatName;
  _catName = catName;
  _subCatName = subCatName;
  _showCompare = showCompare;
  initPageHistory();
  initProdPageDetails(aType, vType, pIndex);
}

function getProductsList() {
  var params = 'mutagID=' + _mutagId + '&mainCatID=' + _mainCatID + '&catID=' + _catID + '&subCatID=' + _subCatID + '&aType=' + _aType + '&vType=' + _vType + '&sBy=' + _sBy + '&pIndex=' + _pIndex + '&comp=' + _compareProds + '&showCompare=' + _showCompare;
  executeServerRequest('GetMutagAuctions', params);
}

function getResponseMethodEx(methodName) {
  switch (methodName) {
    case 'GetMutagAuctions': return getProductsResult;
  }
}

function selectKindEx(linx, aType) {
  var aTypeTitle;
  if (aType == 0)
    aTypeTitle= '<h3>מוצרים למותג ' + _mutagName + '</h3>';
	else if (aType == 1)
	  aTypeTitle= '<h3><span class="auctionsTitle">פומביות</span> למותג ' + _mutagName + '</h3>';
	else if (aType == 2)
	  aTypeTitle= '<h3><span class="groupsTitle">קבוצתיות</span> למותג ' + _mutagName + '</h3>';
	else if (_ips)
	  aTypeTitle= '<h3><span class="premiumTitle">פרימיום</span> למותג ' + _mutagName + '</h3>';
	else
	  aTypeTitle= '<h3><span class="personalTitle">אישיות</span> למותג ' + _mutagName + '</h3>';
	document.getElementById("TopPager_tdRightContent").innerHTML = aTypeTitle;
  return true;
}