// JavaScript Document
function HideImage(image, div)
{
	image.style.display = 'none';
	div.style.display = 'inline';
	document.getElementById('youTubeVideo').src="playFlash.php";
}

function ShowImage(mat, mat2, value)
{
  GetLabelText(mat);
  //document.getElementById('inner_image').src = 'images/elite_el'+mat2+'_full.gif';
	document.getElementById('inner_image').src = 'images/elite_ss'+mat2+'_full.gif';
  var blackmat = document.getElementById('BlackMat');
  var brownmat = document.getElementById('BrownMat');
  var greymat = document.getElementById('GreyMat');
  var burgundymat = document.getElementById('BurgundyMat');
	var tanmat = document.getElementById('TanMat');
  
  blackmat.style.display = 'none';
  brownmat.style.display = 'none';
  greymat.style.display = 'none';
  burgundymat.style.display = 'none';
	tanmat.style.display = 'none';
  
  if ((value & 1) > 0)
  {
	  blackmat.style.display = 'inline';
  }
  
  if ((value & 2) > 0)
  {
	  brownmat.style.display = 'inline';
  }
  
  if ((value & 4) > 0)
  {
	  greymat.style.display = 'inline';
  }  
  
  if ((value & 8) > 0)
  {
	  burgundymat.style.display = 'inline';
  }  
	
  if ((value & 16) > 0)
  {
	  tanmat.style.display = 'inline';
  }  
	
  
  if (mat == 'SS4050XN75')
  {
	  document.getElementById('personalizeURL').style.display = 'block';
  }
  else
  {
	  document.getElementById('personalizeURL').style.display = 'none';
  }
  
  createPop('555px','451px','In Window Modal Dialog','pop1');
}

function GetLabelText(mat)
{
  document.getElementById('mattext').innerHTML = document.getElementById(mat + String(2)).innerHTML + ' - ' + document.getElementById(mat + String(1)).innerHTML + ' ' + document.getElementById(mat + String(3)).innerHTML	
}
