

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Copyright 2001 by www.CodeBelly.com
// Please do *not* remove this notice.

var imgpozadi = new Array(); // don't change this
var imgpopredi = new Array(); // don't change this

// Enter the colors you wish to use. Follow the
// pattern to use more colors.  The number in the
// brackets [] is the number you will use in the
// function call to pick each color.



imgpozadi[0] = 'modra-out.jpg';
imgpozadi[1] = 'ocean-out.jpg';
imgpozadi[2] = 'silver-out.jpg';
imgpozadi[3] = 'mouse-out.jpg';
imgpozadi[4] = 'zelena-out.jpg';
imgpozadi[5] = 'cerna-out.jpg';
imgpozadi[6] = 'bordo-out.jpg';
imgpozadi[7] = 'zlata-out.jpg';
imgpozadi[8] = 'cervena-out.jpg';

imgpopredi[0] = 'modra-in.png';
imgpopredi[1] = 'ocean-in.png';
imgpopredi[2] = 'silver-in.png';
imgpopredi[3] = 'mouse-in.png';
imgpopredi[4] = 'zelena-in.png';
imgpopredi[5] = 'cerna-in.png';
imgpopredi[6] = 'bordo-in.png';
imgpopredi[7] = 'zlata-in.png';
imgpopredi[8] = 'cervena-in.png';

 

// Do not edit below this line.

function changeBGds(whichColor, barva, typ){
	for (var i=0; i < 9; i++) {
			document.getElementById("pi"+i).style.borderColor="";
		}
		
document.getElementById("sedacka").style.backgroundImage = 'url(img/vzory/'+typ+'-'+imgpozadi[whichColor]+ ')';
document.getElementById("pi"+whichColor).style.borderColor="red";
document.getElementById("outside").value=barva;
}




function changeINSIDEds(whichColor, barva, typ){
		for (var i=0; i < 9; i++) {
			document.getElementById("p"+i).style.borderColor="";
		}
document.getElementById("sedackain").style.backgroundImage = 'url(img/vzory/'+typ+'-'+imgpopredi[whichColor]+')';
document.getElementById("p"+whichColor).style.borderColor="red";
document.getElementById("inside").value=barva;
}


// Do not edit below this line.

function changeINSIDEel(whichColor, barva, typ){
	for (var i=0; i < 9; i++) {
			document.getElementById("p"+i).style.borderColor="";
		}
		
document.getElementById("sedacka").style.backgroundImage = 'url(img/vzory/'+typ+'-'+imgpozadi[whichColor]+ ')';
document.getElementById("p"+whichColor).style.borderColor="red";
document.getElementById("outside").value=barva;
}
//  End -->