function bookmark() {
	var agt = navigator.userAgent.toLowerCase(); 
	var app = navigator.appName.toLowerCase(); 
	var ieAgent = agt.indexOf('msie'); 
	var nsAgent = app.indexOf('netscape'); 
	var opAgent = app.indexOf('opera'); 
	if (ieAgent!= -1) {
		window.external.addfavorite(location.href + '?source=bookmark',document.title);
	} else if (nsAgent!= -1) {
		alert('Bitte bestaetigen Sie mit "OK"\nund klicken anschliessend [Ctrl + D] !');
	} else if (opAgent!= -1) {
		alert('Bitte bestaetigen Sie mit "OK"\nund klicken anschliessend [Ctrl + T] !');
	} 
}

function email(name, domain,tld, link) {
	var ret = "<a href='&#109;&#97;&#105;&#108;&#116;&#111;&#58;"+name+"@"+domain+"."+tld+"' style='text-decoration:none;'>"+link+"</a>";
	document.write(ret);
}

 function cartpos() 
{
  	if(document.all){
	 	if (document.all.cart) {
			document.all.cart.style.visibility = 'visible';
			newwidth = (document.all._body.offsetWidth)-198;
	  		document.getElementById('cart').style.left = newwidth+'px';
		}
	} else {
	 	if (document.getElementById('cart')) {
			document.getElementById('cart').style.visibility = 'visible';
	  		newwidth = (document.getElementById('_body').offsetWidth)-198;
	  		document.getElementById('cart').style.left = newwidth+'px';
	  	}
	}
}

function donuttin()
{
}

function switcher(layer, mode) {
	if (mode)
	{
		document.getElementById(layer).style.display = (mode=='on') ? '' : 'none';
		//if (mode=='on') setInterval("switcher('"+layer+"', 'off')",3000);
	} else {
		document.getElementById(layer).style.display = (document.getElementById(layer).style.display != '') ? '' : 'none';
	}
}


function togglePopup() {
	var popupBacgroundDiv=document.getElementById('popupBackground');
	var popupWindowDiv=document.getElementById('popupWindow');
	if(popupWindowDiv.className=='popup-window-none') {

		// hide all dropdowns on the page
		for (f = 0; f < document.forms.length; f++)
		{
		    var elements = document.forms[f].elements;
		    // looping through all elements on certain form
		
		    for (e = 0; e < elements.length; e++)
		    {
		        if (elements[e].type == "select-one")
		        {
		            elements[e].style.display = 'none';
		        }
		    }
		}

		//popupWindowDiv.innerHTML='Click here to <a href="javascript:void(0);" onmouseup="togglePopup()">close</a> this window.';
		popupBacgroundDiv.className='popup-background';
		popupWindowDiv.className='popup-window';
	} else if(popupWindowDiv.className=='popup-window') {
		popupWindowDiv.innerHTML='';
		popupBacgroundDiv.className='popup-background-none';
		popupWindowDiv.className='popup-window-none';

		// show all dropdowns on the page
		for (f = 0; f < document.forms.length; f++)
		{
		    var elements = document.forms[f].elements;
		    for (e = 0; e < elements.length; e++)
		    {
		        if (elements[e].type == "select-one")
		        {
		            elements[e].style.display = 'block';
		        }
		    }
		}

	}
}