var defaultwinstat = "Dynaudio";
	window.defaultStatus = defaultwinstat;
		
	function winstat( txt ) {
		if( txt != '' )
			window.status = defaultwinstat + " - " + txt;
		else
			window.status = defaultwinstat;
		return true;
	}

function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { 
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_timelineGoto(tmLnName, fNew, numGotos) { 
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  if (document.MM_Time == null) MM_initTimelines(); 
  tmLn = document.MM_Time[tmLnName];
  if (numGotos != null)
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  jmpFwd = (fNew > tmLn.curFrame);
  for (i = 0; i < tmLn.length; i++) {
    sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; 
    if (sprite.charAt(0) == "s") {
      numKeyFr = sprite.keyFrames.length;
      firstKeyFr = sprite.keyFrames[0];
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; 
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
      for (j=0; j<sprite.values.length; j++) {
        props = sprite.values[j];
        if (numKeyFr == props.length) propNum = keyFrm-1 
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); 
        if (sprite.obj != null) {
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
      } }
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  }
  tmLn.curFrame = fNew;
  if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}

function MM_timelineStop(tmLnName) { 
  if (document.MM_Time == null) MM_initTimelines(); 
  if (tmLnName == null)
    for (var i=0; i<document.MM_Time.length; i++) document.MM_Time[i].ID = null;
  else document.MM_Time[tmLnName].ID = null; 
}

function MM_timelinePlay(tmLnName, myID) { 
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.MM_Time == null) MM_initTimelines(); 
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}
  if (myID == tmLn.ID) { 
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j]; 
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MZ_findObj(n){ 
        var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
        x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
        }else{x=document.getElementById(n)}return x;
}

function MM_initTimelines() { 
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(1);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new String("behavior");
    document.MM_Time[0][0].frame = 12;
    document.MM_Time[0][0].value = "MM_showHideLayers('volvo','','hide','vw','','hide','aftermarket','','hide')";
    document.MM_Time[0].lastFrame = 12;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}

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;
}

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.com?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.com" 
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');

}