//   flash names  //     main , products , support , audio_extras , store , company , contact
ldd=0;
spaceIt = "<img src='/images/spacer.gif' width='10' height='10'><img src='/images/spacer.gif' width='10' height='10' style='border-left:1px solid #CCCCCC;'>";
	navLinks = ["http://www.voyagersound.com/html/main.php","http://www.voyagersound.com/html/store/products.php","http://www.voyagersound.com/html/support.php","http://www.voyagersound.com/html/audio_extras.php","http://www.voyagersound.com/html/store/store.php","http://www.voyagersound.com/html/company.php","http://www.voyagersound.com/html/contact.php"];
	ddelements = [" ",
				"<a href='http://www.voyagersound.com/html/product_mission.php'>Product Mission</a>"+spaceIt+"<a href='http://www.voyagersound.com/html/product_feature_tours.php?product=none'>Feature Tour</a>"+spaceIt+"<a href='http://www.voyagersound.com/html/product_reviews.php?review=none'>Product Reviews</a>"+spaceIt+"<a href='http://www.voyagersound.com/html/license_agreement.php'>License Agreement</a>"+spaceIt+"<a href='http://www.voyagersound.com/html/product_register.php'>Product Registration</a>",
				"",
				"<a href='http://www.voyagersound.com/html/audio_extras.php'>Showcase</a>",
				" ",
				"<a href='http://www.voyagersound.com/html/company.php'>Mission</a>"+spaceIt+"<a href='http://www.voyagersound.com/html/company_press.php'>Press</a>",
				""];
				
	var br=navigator.userAgent;
	if((br.indexOf("MSIE")!=-1)&&(br.indexOf("Windows")!=-1)){
		br="ie";
	}else{
		br="no";
	}
	function startNav(){
		MM_preloadImages('/images/nav/navspanider.gif');
		ldd=1;
		if(br=="ie"){
			window.document.vs_nav.SetVariable("ldd", "loaded");
		}
		var x = document.getElementById("vs_content");
		x.onmousemove = resetNav;
	}
	function ddchange(i) {
		if(ldd==1){
			nv=1;
			var x = document.getElementById("dd");
			x.innerHTML = ddelements[i];
		}
  	}
	function flashLink(x){
		document.location.href = navLinks[x];
	}
	toggle = 0;
	nv = 0;
	function resetNav(){
	if(ldd==1){
		if(nv==1){
			//alert("resetNav called, has it already been 5 seconds?");
			nv=0;
			var x = document.getElementById("rstNav");
			var y = document.getElementById("rstHeader");
			//alert("toggle: "+toggle);
			if(toggle==0){
				toggle=1;
				x.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1" height="1"><param name="movie" value="/flash/resetHeader.swf" /><param name="quality" value="high" /><embed src="/flash/resetHeader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1" height="1"></embed></object>';
				y.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1" height="1"><param name="movie" value="/flash/resetNav.swf" /><param name="quality" value="high" /><embed src="/flash/resetNav.swf" width="1" height="1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
			}else{
				toggle=0;
				y.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1" height="1"><param name="movie" value="/flash/resetHeader.swf" /><param name="quality" value="high" /><embed src="/flash/resetHeader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1" height="1"></embed></object>';
				x.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1" height="1"><param name="movie" value="/flash/resetNav.swf" /><param name="quality" value="high" /><embed src="/flash/resetNav.swf" width="1" height="1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
			}
			var z = document.getElementById("dd");
			z.innerHTML = ddelements[0];
		}
		}
	}
	function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}