var defaultwinstat = "Dynaudio Switzerland AG";
	window.defaultStatus = defaultwinstat;
		
function winstat( txt ) {
	if( txt != '' )
		window.status = defaultwinstat + " - " + txt;
	else
		window.status = defaultwinstat;
	return true;
}

function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
	
function clear_formfield(myFormField,myStartValue){
 	if(myFormField.value == myStartValue){
		myFormField.value = '';
	} 
}

function jumpMenu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function checkForm(){

		if(document.such.suchbegriff.value == ""){
			alert("Bitte geben Sie einen Suchbegriff ein!");
			document.such.suchbegriff.focus();
			return false;
		}
	}

ie5=(document.getElementById && document.all && document.styleSheets)?1:0;
nn6=(document.getElementById && !document.all)?1:0;
	
if (ie5 || nn6) {

	menuWidth=200, menuHeight=300;

	menuStatus=0; 

	sp2="  ";

	sp5=sp2+sp2+" "; 

	oF="onfocus='if(this.blur)this.blur()'"; 



	document.write(

		"<style type='text/css'>"+

		"a.menu {text-decoration:none;font-family:Arial;font-size:120%}"+

		"a.menu:link {text-decoration:none;color:#000000;font-family:Arial;font-size:120%}"+

		"a.menu:visited {text-decoration:none;color:#000000;font-family:Arial;font-size:120%}"+
		
		"a.menu:hover {text-decoration:none;background-color:#000066;color:#ffffff;font-family:Arial;font-size:120%}"+
			
		"a.menu:active {text-decoration:none;background-color:#000066;color:#ffffff;font-family:Arial;font-size:120%}"+

		"hr.menu {border:0px;height:1;background-color:#c0c0c0;color:#c0c0c0}"+

		".text {size:1;color:#000000}"+
		
		".text1 {size:1;color:#000000}</style>"+
		
		"<div id='menu' style='position:absolute;top:-300;left:0;z-index:100'>"+

		"<table cellpadding='0' cellspacing='0' border='0' width='"+menuWidth+"' height='"+menuHeight+"' style='border-style:outset;border-width:small;border-color:#dcdcdc;background-color:#cacaca'>"+

		"<tr><td valign='top'><a class='menu' href='javascript:history.back()'"+oF+"><img src=http://www.dynaudio.com/images/extra/blind.gif width=5 height=10 border=0>Zurück<img src=http://www.dynaudio.com/images/extra/blind.gif width=145 height=10 border=0>"+sp5+sp5+sp2+"</a><br>"+

		"<a class='menu' href='javascript:history.forward()'"+oF+"><img src=http://www.dynaudio.com/images/extra/blind.gif width=5 height=10 border=0>Vorwärts<img src=http://www.dynaudio.com/images/extra/blind.gif width=134 height=10 border=0>"+sp5+sp5+sp2+"</a><br>"+

		"<a class='menu' href='javascript:bookmark()'"+oF+"><img src=http://www.dynaudio.com/images/extra/blind.gif width=5 height=10 border=0>Zu Favoriten hinzufügen...<img src=http://www.dynaudio.com/images/extra/blind.gif width=43 height=10 border=0>"+sp5+sp2+sp2+"</a><br>"+

		"<hr class='menu'><a class='menu' href='javascript:print()'"+oF+"><img src=http://www.dynaudio.com/images/extra/blind.gif width=5 height=10 border=0>Drucken<img src=http://www.dynaudio.com/images/extra/blind.gif width=139 height=10 border=0></a><br>"+
		
		"<a class='menu' href='javascript:location.reload()'><img src=../images/extra/blind.gif width=5 height=10 border=0>Aktualisieren<img src=http://www.dynaudio.com/images/extra/blind.gif width=114 height=10 border=0></a><br>"+

		"<a class='menu' href='javascript:openFrameInNewWindow()' "+oF+"><img src=http://www.dynaudio.com/images/extra/blind.gif width=5 height=10 border=0>In neuem Fenster öffnen<img src=http://www.dynaudio.com/images/extra/blind.gif width=48 height=10 border=0>"+sp2+"</a><br>"+

		"<hr class='menu'><span class=text>&nbsp;&nbsp;Wir wünschen uns bei &nbsp;&nbsp;Veröffentlichungen das technisch &nbsp;&nbsp;bestmögliche Niveau für unsere &nbsp;&nbsp;Produkte. <br>&nbsp;&nbsp;Benötigen Sie Bildmaterial für eine &nbsp;&nbsp;professionelle Darstellung von &nbsp;&nbsp;Dynaudio Motiven, so wenden Sie &nbsp;&nbsp;sich bitte unter <a class='text' href=mailto:corporatedesign@dynaudio.com?subject=Website_Bildanfrage onclick='javascript:hideMenu()' onFocus=blur()><span style=font-size:10px>dieser Adresse</span></a> an &nbsp;&nbsp;unsere Marketing-Abteilung. <br>&nbsp;&nbsp;Vielen Dank.</span></td></tr>"+

		"</table></div>");

	document.oncontextmenu=showMenu; 

	document.onmouseup=hideMenu;
}

function showMenu(e) {

	if(ie5) {

		if(event.clientX>menuWidth) xPos=event.clientX-menuWidth+document.body.scrollLeft;

		else xPos=event.clientX+document.body.scrollLeft;

		if (event.clientY>menuHeight) yPos=event.clientY-menuHeight+document.body.scrollTop;

		else yPos=event.clientY+document.body.scrollTop;

	}

	else {

		if(e.pageX>menuWidth+window.pageXOffset) xPos=e.pageX-menuWidth;

		else xPos=e.pageX;

		if(e.pageY>menuHeight+window.pageYOffset) yPos=e.pageY-menuHeight;

		else yPos=e.pageY;

	}

	document.getElementById("menu").style.left=xPos;

	document.getElementById("menu").style.top=yPos;

	menuStatus=1;

	return false;

}

function hideMenu(e) {

	if (menuStatus==1 && ((ie5 && event.button==1) || (nn6 && e.which==1))) {

		setTimeout("document.getElementById('menu').style.top=-500",1);

		menuStatus=0;

	}

}

function openFrameInNewWindow() {

	var w=window.open(window.location,'','resizable=1,scrollbars=1,status=1,location=1,menubar=1,toolbar=1');

}

function bookmark() 
{ 
var bookmarkurl="http://www.dynaudio.ch" 
var bookmarktitle="Dynaudio - Authentic Fidelity" 
if(!document.all) 
{ 
alert ("Diese Funktion steht im Moment nicht zur Verfügung.");
} 
else
{
window.external.AddFavorite(bookmarkurl,bookmarktitle); 
}
} 

function openFrameInNewWindow() {

	var w=window.open(window.location,'','resizable=1,scrollbars=1,status=1,location=1,menubar=1,toolbar=1');

}
