var defaultwinstat = "Dynaudio North America";
	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("Please type in a search term!");
			document.such.suchbegriff.focus();
			return false;
		}
	}

function checkForm1(){

		if(document.such_car.suchbegriff_car.value == ""){
			alert("Please type in a search term!");
			document.such_car.suchbegriff_car.focus();
			return false;
		}
	}

function checkForm2(){

		if(document.such_c.suchbegriff_c.value == ""){
			alert("Please type in a search term!");
			document.such_c.suchbegriff_c.focus();
			return false;
		}
	}

function checkForm3(){

		if(document.such_c_car.suchbegriff_c_car.value == ""){
			alert("Please type in a search term!");
			document.such_c_car.suchbegriff_c_car.focus();
			return false;
		}
	}

function checkForm4(){

		if(document.such_ca.suchbegriff_ca.value == ""){
			alert("Please type in a search term!");
			document.such_ca.suchbegriff_ca.focus();
			return false;
		}
	}

function checkForm5(){

		if(document.such_ca_car.suchbegriff_ca_car.value == ""){
			alert("Please type in a search term!");
			document.such_ca_car.suchbegriff_ca_car.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:110%}"+

		"a.menu:link {text-decoration:none;color:#000000;font-family:Arial;font-size:110%}"+

		"a.menu:visited {text-decoration:none;color:#000000;font-family:Arial;font-size:110%}"+
		
		"a.menu:hover {text-decoration:none;background-color:#000066;color:#ffffff;font-family:Arial;font-size:110%}"+
			
		"a.menu:active {text-decoration:none;background-color:#000066;color:#ffffff;font-family:Arial;font-size:110%}"+

		"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>Back<img src=http://www.dynaudio.com/images/extra/blind.gif width=155 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>Forward<img src=http://www.dynaudio.com/images/extra/blind.gif width=137 height=10 border=0>"+sp5+sp5+sp2+"</a><br>"+

		"<a class='menu' href='javascript:bookmark()'"+oF+"><img src=../images/extra/blind.gif width=5 height=10 border=0>Add to Favorites...<img src=http://www.dynaudio.com/images/extra/blind.gif width=86 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>Print<img src=http://www.dynaudio.com/images/extra/blind.gif width=160 height=10 border=0></a><br>"+
		
		"<a class='menu' href='javascript:location.reload()'><img src=http://www.dynaudio.com/images/extra/blind.gif width=5 height=10 border=0>Reload<img src=http://www.dynaudio.com/images/extra/blind.gif width=145 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>Open in New Window<img src=http://www.dynaudio.com/images/extra/blind.gif width=64 height=10 border=0>"+sp2+"</a><br>"+

		"<hr class='menu'><span class=text>&nbsp;&nbsp;Should you require any pictures for a &nbsp;&nbsp;professional representation of &nbsp;&nbsp;Dynaudio and its products, please &nbsp;&nbsp;contact our marketing department at &nbsp;&nbsp;<a class='text' href=mailto:corporatedesign@dynaudio.de?subject=Website_Image-inquiry onclick='javascript:hideMenu()' onFocus=blur()><span style=font-size:10px>this address</span></a>. <br>&nbsp;&nbsp;Thank you.</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.us" 
var bookmarktitle="Dynaudio - Authentic Fidelity" 
if(!document.all) 
{ 
alert ("This function is disabled at the moment");
} 
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');

}

//Hilfebox
var dofade=true;     
var center=false;    
var centertext=false; 

//Text in Box
var content = "<table bgcolor=#000000 width=180 border=0><tr><td><font face=Verdana,Geneva,Arial,Helvetica,sans-serif size=1 color=#c0c0c0>Note: the desired/following content is provided by the international website of Dynaudio - www.dynaudio.com</font></td></tr></table>";

var NS4 = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
var IE4 = (document.all && !document.getElementById)? true : false;
var IE5 = (document.getElementById && document.all)? true : false;
var NS6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var W3C = (document.getElementById)? true : false;
var w_y, w_x, navtxt, boxheight, boxwidth;
var ishover=false;
var isloaded=false;
var ieop=0;
var op_id=0;

function getwindowdims(){
w_y=(NS4||NS6)? window.innerHeight : (IE5||IE4)? document.body.clientHeight : 0;
w_x=(NS4||NS6)? window.innerWidth : (IE5||IE4)? document.body.clientWidth : 0;
}

function getboxwidth(){
if(NS4)boxwidth=(navtxt.document.width)? navtxt.document.width : navtxt.clip.width;
if(IE5||IE4)boxwidth=(navtxt.style.pixelWidth)? navtxt.style.pixelWidth : navtxt.offsetWidth;
if(NS6)boxwidth=(navtxt.style.width)? parseInt(navtxt.style.width) : parseInt(navtxt.offsetWidth);
}

function getboxheight(){
if(NS4)boxheight=(navtxt.document.height)? navtxt.document.height : navtxt.clip.height;
if(IE4||IE5)boxheight=(navtxt.style.pixelHeight)? navtxt.style.pixelHeight : navtxt.offsetHeight;
if(NS6)boxheight=parseInt(navtxt.offsetHeight);
}

function movenavtxt(x,y){
if(NS4)navtxt.moveTo(x,y);
if(W3C||IE4){
navtxt.style.left=x+'px';
navtxt.style.top=y+'px';
}}

function getpagescrolly(){
if(NS4||NS6)return window.pageYOffset;
if(IE5||IE4)return document.body.scrollTop;
}

function getpagescrollx(){
if(NS4||NS6)return window.pageXOffset;
if(IE5||IE4)return document.body.scrollLeft;
}

function writeindiv(text){
if(NS4){
navtxt.document.open();
navtxt.document.write(text);
navtxt.document.close();
}
if(W3C||IE4)navtxt.innerHTML=text;
}

function writetxt(text){
        if(isloaded){
                if(text!=0){
                        text = eval(text);
                        ishover=true;
                        if(NS4)text='<div class="navtext">'+((centertext)?'<center>':'')+text+((centertext)?'</center>':'')+'</div>';
                        writeindiv(text);
                        getboxheight();
                        if((W3C || IE4) && dofade){
                                ieop=0;
                                incropacity();
                        }
                }else{
                        if(NS4)navtxt.visibility="hide";
                        if(IE4||W3C){
                                if(dofade)clearTimeout(op_id);
                                navtxt.style.visibility="hidden";
                        }
                writeindiv('');
                ishover=false;
                }
        }
}

function incropacity(){
if(ieop<=100){
ieop+=15;
if(IE4 || IE5)navtxt.style.filter="alpha(opacity="+ieop+")";
if(NS6)navtxt.style.MozOpacity=ieop/100;
op_id=setTimeout('incropacity()', 10);
}}

function moveobj(evt){
if(isloaded && ishover){
margin=(IE4||IE5)? 1 : 23;
if(NS6)if(document.height+27-window.innerHeight<0)margin=15;
if(NS4)if(document.height-window.innerHeight<0)margin=10;
if (NS4){
mx=evt.pageX
my=evt.pageY
}
else if (NS6){
mx=evt.clientX
my=evt.clientY
}
else if (IE5){
mx=event.clientX
my=event.clientY
}
else if (IE4){
mx=0
my=0
}

if(NS4){
mx-=getpagescrollx();
my-=getpagescrolly();
}
xoff=(center)? mx-boxwidth/2 : mx+5;
yoff=(my+boxheight+5-getpagescrolly()+margin>=w_y)? -15-boxheight: 5;
movenavtxt( Math.min(w_x-boxwidth-margin , Math.max(2,xoff))+getpagescrollx() , my+yoff+getpagescrolly());
if(NS4)navtxt.visibility="show";
if(W3C||IE4)navtxt.style.visibility="visible";
}}

if(NS4)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=moveobj;
window.onload=function(){
  navtxt=(NS4)? document.layers['navtxt'] : (IE4)? document.all['navtxt'] : (W3C)? document.getElementById('navtxt') : null;
  getboxwidth();
  getboxheight();
  getwindowdims();
  isloaded=true;
  if((W3C || IE4) && centertext)navtxt.style.textAlign="center";
  if(W3C)navtxt.style.padding='2px';
  if(IE4 || IE5 && dofade)navtxt.style.filter="alpha(opacity=0)";
}
window.onresize=getwindowdims;