﻿function changeSample (id,item)
{

var path = 'img/colors/';

	if (id == 11)
	{
		obrazek = path + 'Black.jpg';
		popisek = '<strong>Černá</strong>&nbsp;(1)<br />Black';
	}
	else if (id == 1)
	{
		obrazek = path + 'Dark-Brown.jpg';
		popisek = '<strong>Tmavě hnědá</strong>&nbsp;(2)<br />Dark-Brown';
	}
	else if (id == 2)
	{
		obrazek = path + 'Medium-Brown.jpg';
		popisek = '<strong>Hnědá</strong>&nbsp;(23)<br />Brown';
	}
	else if (id == 3)
	{
		obrazek = path + 'Light-Brown.jpg';
		popisek = '<strong>Světle hnědá</strong>&nbsp;(3)<br />Light-Brown';
	}
	else if (id == 4)
	{
		obrazek = path + 'Auburn.jpg';
		popisek = '<strong>Kaštanová</strong>&nbsp;(8)<br />Auburn';
	}
	else if (id == 5)
	{
		obrazek = path + 'Dark-Blond.jpg';
		popisek = '<strong>Tmavě blond</strong>&nbsp;(4)<br />Dark-Blond';
	}
	else if (id == 6)
	{
		obrazek = path + 'Medium-Blond.jpg';
		popisek = '<strong>Středně blond</strong>&nbsp;(5)<br />Medium-Blond';
	}
	else if (id == 7)
	{
		obrazek = path + 'Light-Blond.jpg';
		popisek = '<strong>Světle blond</strong>&nbsp;(6)<br />Light-Blond';
	}
	else if (id == 8)
	{
		obrazek = path + 'Wheat-Blond.jpg';
		popisek = '<strong>Slámově světlá</strong>&nbsp;(7)<br />Wheat-Blond';
	}
	else if (id == 9)
	{
		obrazek = path + 'Grey.jpg';
		popisek = '<strong>Šedá</strong>&nbsp;(11)<br />Grey';
	}
	else if (id == 10)
	{
		obrazek = path + 'White.jpg';
		popisek = '<strong>Bílá</strong>&nbsp;(15)<br />White';
	}

$("#colorsampleimage" + item).each(function(i){
  this.src = obrazek;
});

$("#colorselecttext" + item).empty();
$("#colorselecttext" + item).append(popisek);

}
