//<!--
	function EmphAvail(id_barvy) {
		//document.getElementById('stock' + id_barvy).style.color = 'black';
		document.getElementById('stock2_' + id_barvy).className = 'pd-disc-over';
	}
	
	function DisEmphAvail(id_barvy) {
		//document.getElementById('stock' + id_barvy).style.color = '#999999';
		document.getElementById('stock2_' + id_barvy).className = 'pd-disc-out';
	}
	
	function CaChangePage(page, stranka) {
		document.getElementById('ca-filtr').action = page;
		document.getElementById('ca-fpa').value = stranka;
		document.getElementById('ca-filtr').submit();
	}
	
	function ChangePic(obj, file, width, height, color, id) {
		var tarImg = document.getElementById('main_pic');
		tarImg.style.visibility = 'hidden';
		tarImg.onload = ShowPic;
		tarImg.width = width;
		tarImg.height = height;
		tarImg.src = './pictures/' + file;
		tarImg.title = color;
		DeactThumbs();
		obj.className = 'thumb-a';
		document.getElementById('form_color').value = id;
	}

	function ShowPic() {
		var tarImg = document.getElementById('main_pic');
		tarImg.style.visibility = 'visible';
	}
	
	function IdenticalChange() {
		if(document.getElementById('s_identical').value == '1') {
			document.getElementById('form_shipping').style.display = 'none';
		} else {
			document.getElementById('form_shipping').style.display = 'block';
		}
	}
	
	function PaymentChange(obj) {
		switch (obj.value) {
			case 'cc':
				document.getElementById('form_payment_cc').style.display = 'block';
				document.getElementById('form_payment_specific').style.display = 'none';
				break;
			case 'specific':
				document.getElementById('form_payment_cc').style.display = 'none';
				document.getElementById('form_payment_specific').style.display = 'block';
				break;
			default:
				document.getElementById('form_payment_cc').style.display = 'none';
				document.getElementById('form_payment_specific').style.display = 'none';
				break;
		}
	}
	
	function AddToCart() {
		var f = document.getElementById('frm_atc');
		var avail = arrAvail[f.id_barvy.value][f.id_velikosti.value];
		if (avail == 0) {
			alert('We are sorry, but this bead is temporarilly unavailable in this size and color combination.');
			return false;
		} else {
			return true;
		}
	}
// -->