//Set the tabs that should show, hide tabs where there is no information
function getTabs()
{ 
	var imgWidth = 230
//DESCRIPTION
	if (document.getElementById("lDesc")== null)
	{
		document.getElementById("iDesc").className="hide"
		imgWidth = imgWidth + 101
		document.images["imgLine"].style.width = imgWidth + "px"
	}
//SPECIFICATIONS	
	if (document.getElementById("lSpecs")== null)
	{
		document.getElementById("iSpecs").className="hide";
		imgWidth = imgWidth + 101
		document.images["imgLine"].style.width = imgWidth + "px"
	}
//PHOTOS	
	if (document.getElementById("lPhotos")== null)
	{
		document.getElementById("iPhotos").className="hide";
		imgWidth = imgWidth + 101
		document.images["imgLine"].style.width = imgWidth + "px"
	}

//MANUAL	
	if (document.getElementById("lManual")== null)
	{
		document.getElementById("iManual").className="hide";
		imgWidth = imgWidth + 101
		document.images["imgLine"].style.width = imgWidth + "px"
	}
	
//SUPPORT	
	if (document.getElementById("lSupport")== null)
	{
		document.getElementById("iSupport").className="hide";
		imgWidth = imgWidth + 101
		document.images["imgLine"].style.width = imgWidth + "px"
	}	

}

function simplePreload()
{ 
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
	  
}

//Set tab images and show selected Div
function showSelection(imgName, imgSrc, divname)
{
	//Set images to start image
	document.images["imgDesc"].src = "../images/n-desc.gif"
	document.images["imgSpec"].src = "../images/n-specs.gif"
	document.images["imgPhotos"].src = "../images/n-photos.gif"
	document.images["imgManual"].src = "../images/n-manual.gif"
	document.images["imgSupport"].src = "../images/n-warrany.gif"

	//Set image that was selected
	document.images[imgName].src = imgSrc
	
	//Hide all layers
	var details = document.getElementById("detailslist")
	var	divArray= details.getElementsByTagName("div")
	for (var i=0; i<divArray.length; i++){
		divArray.item(i).className="hide"
	}
	
	
	
	//Show selected layer
	document.getElementById(divname).className="showdiv"
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = (imgSrc)
    }
  }
}