function stopSlide(){window.clearInterval(aktiv);}
function setSlideLeft(){barmax = -(slidebar.scrollWidth - 212);aktiv = window.setInterval("SlideLeft()", barspeed);}
function SlideLeft(){if (barposition <= barmax) {barposition = barmax;endArrow('rightslide');startArrow('leftslide');}else{barposition = barposition - 1;startArrow('leftslide');}slidebar.style.left =  barposition + 'px';}
function setSlideRight(){barmax = -(slidebar.scrollWidth - 212);aktiv = window.setInterval("SlideRight()", barspeed);}
function SlideRight(){if (barposition >= barmin){barposition = 0;endArrow('leftslide');startArrow('rightslide');}else{barposition = barposition + 1;startArrow('rightslide');}slidebar.style.left =  barposition + 'px';}
function imageSlide(image){document.getElementById('detailimage').style.backgroundImage = 'url(' + image + ')';}
function endArrow(id){if (navigator.appName.indexOf("Explorer") != -1){document.getElementById(id).style.filter="Alpha(opacity=30)";}else{document.getElementById(id).style.opacity = 0.3;}}
function startArrow(id){if (navigator.appName.indexOf("Explorer") != -1){document.getElementById(id).style.filter="Alpha(opacity=100)";}else{document.getElementById(id).style.opacity = 1;}}

// Show/UnShow Teaser and content text
function display(unshow, show) {
	if (document.getElementById) {
		document.getElementById(unshow).style.display = 'none';
		document.getElementById(show).style.display = 'block';
	} else if (document.all) {
		document.all[unshow].style.display = 'none';
		document.all[show].style.display = 'block';
	} else if (document.layers) {
		document.layers[unshow].display = 'none';
		document.layers[show].display = 'block';
	}
}

// Simple Show/Unshow
function simpleDisplay (show){
	var value;
	if (document.getElementById){
		value = document.getElementById(show).style;
	} else if (document.all) {
		value = document.all[show].style;
	} else if (document.layers) {
		value = document.layers[show];
	}
	if (value.display == 'block'){value.display = 'none';}else{value.display = 'block';}
}

// Show Products popup
function popupWindow(url, title, dimensions, options){
	if (title == null){
		var title = "popupWindow";
	}
	if (dimensions == null){
		var dimensions = "width=100,height=100,screenX=150,screenY=150,top=150,left=150";
	}
	if (options == null){
		var options = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no, resizable,scrollbars";
	}
	win = window.open(url, title, dimensions + "," + options)
	win.focus();
}
function setInputDefault(key, text) {
	if (document.getElementById(key).value == '' || document.getElementById(key).value == text) {
		document.getElementById(key).value = text;
		/*document.getElementById(key).style.backgroundColor = "#EFEDEC";*/
		document.getElementById(key).style.color = '#868686';
	}
}
function setInputDefaultClear(key, text) {
	if (text && key) {
		if (document.getElementById(key).value == text) {
			document.getElementById(key).value = '';
			/*document.getElementById(key).style.backgroundColor = "#ffffff";*/
			document.getElementById(key).style.color = '#000000';
		}
	}
}
function switchtab(t, anz){
	var tab,cont;
	for (var i=0;i<anz;i++){
		tab = 'dt-tab'+i; cont = 'dd-tab'+i;
		if (document.getElementById(tab)){document.getElementById(tab).className = '';}
		if (document.getElementById(cont)){document.getElementById(cont).style.display = 'none';}
	}
	if (document.getElementById('dt-tab'+t)){document.getElementById('dt-tab'+t).className = 'active';}
	if (document.getElementById('dd-tab'+t)){document.getElementById('dd-tab'+t).style.display = 'block';}
}




