function replacePrice() {
	var color = document.getElementById('siteColor').value;
	var p1 = '<img src="./../../templates/default/images/'+color+'/1.jpg" border="0" alt="1" />';
	var p2 = '<img src="./../../templates/default/images/'+color+'/2.jpg" border="0" alt="2" />';
	var p3 = '<img src="./../../templates/default/images/'+color+'/3.jpg" border="0" alt="3" />';
	var p4 = '<img src="./../../templates/default/images/'+color+'/4.jpg" border="0" alt="4" />';
	var p5 = '<img src="./../../templates/default/images/'+color+'/5.jpg" border="0" alt="5" />';
	var p6 = '<img src="./../../templates/default/images/'+color+'/6.jpg" border="0" alt="6" />';
	var p7 = '<img src="./../../templates/default/images/'+color+'/7.jpg" border="0" alt="7" />';
	var p8 = '<img src="./../../templates/default/images/'+color+'/8.jpg" border="0" alt="8" />';
	var p9 = '<img src="./../../templates/default/images/'+color+'/9.jpg" border="0" alt="9" />';
	var p0 = '<img src="./../../templates/default/images/'+color+'/0.jpg" border="0" alt="0" />';
	
	var sPrice = document.getElementById('pricehidden').value
	checkboxItems = document.features.length - 5;
	sPrice = parseInt(sPrice);
	for(i=1;i<checkboxItems;i++) {
		if(document.features[i].checked == true) {
			sPrice += parseInt(document.features[i].value);
		}
	}

	sPrice = sPrice+'';
	arrNumbers = sPrice.split('');
	if(arrNumbers[0] != '') {
		for(i=0;i<arrNumbers.length;i++) {
			switch (arrNumbers[i]) {
				case '1':
					arrNumbers[i] = p1;
				break;
				case '2':
					arrNumbers[i] = p2;
				break;
				case '3':
					arrNumbers[i] = p3;
				break;
				case '4':
					arrNumbers[i] = p4;
				break;
				case '5':
					arrNumbers[i] = p5;
				break;
				case '6':
					arrNumbers[i] = p6;
				break;
				case '7':
					arrNumbers[i] = p7;
				break;
				case '8':
					arrNumbers[i] = p8;
				break;
				case '9':
					arrNumbers[i] = p9;
				break;
				case '0':
					arrNumbers[i] = p0;
				break;
			}
			priceOut = arrNumbers.join('');
		}
	}	
	document.getElementById('price').innerHTML = priceOut;
}

function delInput(ele,iValue) {
	if(document.getElementById(ele.id).value == iValue) {
		document.getElementById(ele.id).value = '';
	}
}
function reFill(ele,iValue) {
	if(document.getElementById(ele.id).value == iValue) {
		document.getElementById(ele.id).value = iValue;
	}
	if(document.getElementById(ele.id).value == '') {
		document.getElementById(ele.id).value = iValue;
	}
}
function changeAngebot(theId) {
	//document.getElementById(theId).style.display = 'block';
	if(document.getElementById(theId).style.display == 'none') {
		document.getElementById(theId).style.display = 'block';
		document.getElementById('content-'+theId).style.background = '#bfbfbf';
	}
	if(theId != 'beratung-planung') {
		document.getElementById('beratung-planung').style.display = 'none';
		document.getElementById('content-beratung-planung').style.background = '#d8d8d8';
	}
	if(theId != 'web-angebot') {
		document.getElementById('web-angebot').style.display = 'none';
		document.getElementById('content-web-angebot').style.background = '#d8d8d8';
	}
	if(theId != 'grafik-design') {
		document.getElementById('grafik-design').style.display = 'none';
		document.getElementById('content-grafik-design').style.background = '#d8d8d8';
	}
	if(theId != 'seo') {
		document.getElementById('seo').style.display = 'none';
		document.getElementById('content-seo').style.background = '#d8d8d8';
	}
	if(theId != 'bild-film') {
		document.getElementById('bild-film').style.display = 'none';
		document.getElementById('content-bild-film').style.background = '#d8d8d8';
	}
}
function header(flash_swf, image)
{
    document.write('<object width="980" height="220" data="' + flash_swf + '" type="application/x-shockwave-flash">\n');
    document.write('<param name="movie" value="' + flash_swf + '" />\n');
    if(image != ''){
    	document.write('<img src="' + image + '" alt="no Flash" />\n');
    }
    document.write('</object>\n');
}

function ref(flash_swf, image)
{
    document.write('<object width="900" height="160" data="' + flash_swf + '" type="application/x-shockwave-flash">\n');
    document.write('<param name="movie" value="' + flash_swf + '" />\n');
    if(image != ''){
    	document.write('<img src="' + image + '" alt="no Flash" />\n');
    }
    document.write('</object>\n');
}

function refDetail(flash_swf, image)
{
    document.write('<object width="285" height="111" data="' + flash_swf + '" type="application/x-shockwave-flash">\n');
    document.write('<param name="movie" value="' + flash_swf + '" />\n');
    if(image != ''){
    	document.write('<img src="' + image + '" alt="no Flash" />\n');
    }
    document.write('</object>\n');
}

function showInfo(id) {
	var infoCount = document.getElementById('infoCount').value;
	infoCount = parseInt(infoCount) + 1;
	for(i=1;i<infoCount;i++) {
		document.getElementById('info'+i).style.display = 'none';
	}
	document.getElementById('info'+id).style.display = 'block';
}
function show(id) {
	if(document.getElementById(id).style.display == 'none')
	{
		document.getElementById(id).style.display = 'block';
	}
	else 
	{
		document.getElementById(id).style.display = 'none';
	}
}
function book(name) {
	var a;
	a = document.getElementById('books');
	if(name != '') {
		a.innerHTML = name
	} else {
		a.innerHTML = '';
	}
}
function bookout() {
	var a;
	a = document.getElementById('books');
	a.innerHTML = '<br />';
}