    userAgent = navigator.userAgent.toLowerCase();
	n4 = document.layers;
	ie = (document.all && userAgent.indexOf("mac")<0);
	w3c = document.documentElement;
	dhtml = ((n4 || ie || w3c) &&  userAgent.indexOf("aol")<0);					
    function popupseiteempfehlen(url)
	{
		myCMSFenster = window.open(url,'Empfehlung','width=347,height=550,status=no,resizable=no,menubar=no,toolbar=no,locationbar=no,scrollbars=no,dependent=no' );
	}
	function popupempfehlung(url)
	{
		myCMSFenster = window.open(url,'Empfehlungsnotiz','top=0,left=0,width=347,height=400,status=no,resizable=no,menubar=no,toolbar=no,locationbar=no,scrollbars=no,dependent=no' );
	}
	function scrollit(xoffset,yoffset)
	{
		scrollTo(xoffset,yoffset);
	}
	function markArea(left,top,width,height,xoffset,yoffset,win_width,win_height)
	{
			if(xoffset || yoffset || win_width || win_height)
			{
			//alert('scrollBy:'+xoffset+'x'+yoffset);
			window.moveTo(0,0);
			window.resizeTo(win_width,win_height);
			scrollit(0,0);
			}
						
			if(n4)
			{
				document.layers['highlight'].left = left;
				document.layers['highlight'].top = top;
				document.layers['highlight'].width = width;
				document.layers['highlight'].height = height;
				document.layers['highlight'].visibility = 'show';
			} else if (ie) 
			{
				document.all['highlight'].style.left = left;
				document.all['highlight'].style.top = top;
				document.all['highlight'].style.width = width;
				document.all['highlight'].style.height = height;
				document.all['highlight'].style.visibility = 'visible';
			} else if(w3c)
			{
				document.getElementById('highlight').style.left = left;
				document.getElementById('highlight').style.top = top;
				document.getElementById('highlight').style.width = width;
				document.getElementById('highlight').style.height = height;
				document.getElementById('highlight').style.visibility = 'visible';
			}
	}
	function showselect()
	{
		userAgent = navigator.userAgent.toLowerCase();
		n4 = document.layers;
		ie = (document.all && userAgent.indexOf("mac")<0);
		w3c = document.documentElement;
		dhtml = ((n4 || ie || w3c) &&  userAgent.indexOf("aol")<0);
		//alert('ie:'+ie+' n4:'+n4+' w3c: '+w3c);
	    if(ie) 
		{
	    	op_width=document.body.clientWidth;
			op_height=document.body.clientHeight;
		    op_yoffset=document.body.scrollTop;
			op_xoffset=document.body.scrollLeft;
		} else if(n4) 
		{
			op_width=window.innerWidth;
		    op_height=window.innerHeight;
		    op_yoffset=window.pageYOffset;
			op_xoffset=window.pageXOffset;
		}
								
		if (document.selection.type!="None")
		{
			var sel = document.selection;
			var rng = sel.createRange();
			var itm = rng.htmlText;
			//alert((op_width)+"--"+(rng.boundingLeft-4)+","+(rng.boundingTop-4)+","+(rng.boundingWidth+7)+","+(rng.boundingHeight+7));
			markArea(rng.boundingLeft-4,rng.boundingTop-4,rng.boundingWidth+7,rng.boundingHeight+7);
			//rng.pasteHTML("<font color=\"#ff0000\"><b>"+itm+"</b></font>");
		}
	}
		
	function popup(url, width, height, name, addon)
	{
		var x = (screen.availWidth - width) / 2;
		var y = (screen.availHeight - height) / 2;
		if(addon)
		{
			myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',left=' + x + ',top=' + y + addon + "'");
		}
		else
		{
		   	myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',left='+ x +',top='+ y + ',status=yes,resizable=yes,menubar=no,locationbar=no,scrollbars=yes,dependent=yes' );
		}
	}
	
 	function popupmenu(url, width, height, name)
	{
	   	myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=yes,toolbar=yes,locationbar=no,scrollbars=yes,dependent=yes' );
	}
	
	if(top.frames.length > 0)
   	top.location.href=self.location;
	
	function conf()
	{ 
		check = confirm("Wollen Sie das wirklich?");
		return check; 
	}
	
	function conf_exp2nor()
	{ 
		check = confirm("Beim Wechsel des Modus gehen Änderungen verloren!");
		return check; 
	}
	
	function shopuser_toggle_delivery_info()
	{
		if(document.USERINFO.delivery_address.checked == true)
		{
			document.USERINFO.d_company.disabled = false;
			document.USERINFO.d_department.disabled = false;
			document.USERINFO.d_partner.disabled = false;
			document.USERINFO.d_street.disabled = false;
			document.USERINFO.d_zip.disabled = false;
			document.USERINFO.d_city.disabled = false;
			document.USERINFO.d_tel.disabled = false;
			document.USERINFO.d_telsms.disabled = false;
			document.USERINFO.d_fax.disabled = false;
			document.USERINFO.d_email.disabled = false;
			document.USERINFO.d_www.disabled = false;		
		}
		else
		{
			document.USERINFO.d_company.disabled = true;
			document.USERINFO.d_department.disabled = true;
			document.USERINFO.d_partner.disabled = true;
			document.USERINFO.d_street.disabled = true;
			document.USERINFO.d_zip.disabled = true;
			document.USERINFO.d_city.disabled = true;
			document.USERINFO.d_tel.disabled = true;
			document.USERINFO.d_telsms.disabled = true;
			document.USERINFO.d_fax.disabled = true;
			document.USERINFO.d_email.disabled = true;
			document.USERINFO.d_www.disabled = true;
		}
		return 0;
	}	

function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}