/****************************************************************
	サイドナビゲーション切り替え
****************************************************************/
function changImg(iNum){
imgName = iNum;
  if(document.images)
	document["Img00"+imgName].src = "/commonPrd/00"+imgName+"on.gif";
return imgName
/*window.alert("/commonPrd/00"+imgName+"on.gif");*/
}

function sideNavigation()
{
document.writeln('<a href="/en_products/microspeakers/index.html" onmouseover="swapImage(&#x27;Img001&#x27;,&#x27;&#x27;,&#x27;/commonPrd/001on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/001.gif" width="120" height="31" border="0" name="Img001" id="Img001" alt="Microspeakers"></a><br><a href="/en_products/headphones/index.html" onmouseover="swapImage(&#x27;Img002&#x27;,&#x27;&#x27;,&#x27;/commonPrd/002on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/002.gif" width="120" height="31" border="0" name="Img002" id="Img002" alt="Headphones"></a><br><a href="/en_products/microphones/index.html" onmouseover="swapImage(&#x27;Img003&#x27;,&#x27;&#x27;,&#x27;/commonPrd/003on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/003.gif" width="120" height="31" border="0" name="Img003" id="Img003" alt="Microphones"></a><br><a href="/en_products/portableSpeakers/index.html" onmouseover="swapImage(&#x27;Img0013&#x27;,&#x27;&#x27;,&#x27;/commonPrd/0013on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/0013.gif" width="120" height="31" border="0" name="Img0013" id="Img0013" alt="Portable Active Speakers"></a><br><a href="/en_products/tvGeneral/index.html" onmouseover="swapImage(&#x27;Img004&#x27;,&#x27;&#x27;,&#x27;/commonPrd/004on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/004.gif" width="120" height="31" border="0" name="Img004" id="Img004" alt="TV &amp; General Use Speakers"></a><br><a href="/en_products/hifiTweeters/index.html" onmouseover="swapImage(&#x27;Img005&#x27;,&#x27;&#x27;,&#x27;/commonPrd/005on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/005.gif" width="120" height="31" border="0" name="Img005" id="Img005" alt="Hi-Fi Tweeters"></a><br><a href="/en_products/hifiWoofers/index.html" onmouseover="swapImage(&#x27;Img006&#x27;,&#x27;&#x27;,&#x27;/commonPrd/006on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/006.gif" width="120" height="31" border="0" name="Img006" id="Img006" alt="Hi-Fi Woofers"></a><br><a href="/en_products/hifiSubwoofers/index.html" onmouseover="swapImage(&#x27;Img008&#x27;,&#x27;&#x27;,&#x27;/commonPrd/008on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/008.gif" width="120" height="31" border="0" name="Img008" id="Img008" alt="Hi-Fi Sub Woofers"></a><br><a href="/en_products/hifiRPtweeter/index.html" onmouseover="swapImage(&#x27;Img009&#x27;,&#x27;&#x27;,&#x27;/commonPrd/009on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/009.gif" width="120" height="31" border="0" name="Img009" id="Img009" alt="Hi-Fi RP Tweeter"></a><br><a href="/en_products/paSpeakers/index.html" onmouseover="swapImage(&#x27;Img0010&#x27;,&#x27;&#x27;,&#x27;/commonPrd/0010on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/0010.gif" width="120" height="31" border="0" name="Img0010" id="Img0010" alt="PA Use Speakers"></a><br><a href="/en_products/multiBiasWoofers/index.html" onmouseover="swapImage(&#x27;Img0011&#x27;,&#x27;&#x27;,&#x27;/commonPrd/0011on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/0011.gif" width="120" height="31" border="0" name="Img0011" id="Img0011" alt="Multi-bisa Woofers"></a><br><a href="http://www.fostex.jp/p/products/" target="_blank" onmouseover="swapImage(&#x27;Img012&#x27;,&#x27;&#x27;,&#x27;/commonPrd/011on.gif&#x27;,1)" onmouseout="swapImgRestore()"><img src="/commonPrd/011.gif" width="120" height="40" name="Img012" id="Img012" alt="FOSTEX"></a><br>');
document.writeln('<img src="/commonPrd/sNavi_bottom.gif" width="120" height="110" alt="">');
}

/**********************************************
	TOPへ
**********************************************/
function scrollToPageTop () {
	if (window.scrollTo) {
		window.scrollTo (0, 0);
		return false;
	} else {
		return true;
	}
}


/**********************************************
	スワップイメージ
**********************************************/
function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function swapImgRestore() { //v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function 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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapImage() { //v3.0
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/****************************************************************
	フッター
****************************************************************/
function footerImg()
{
document.writeln('<div id="footer"><img src="/commonPrd/footer.gif" width="480" height="52" alt=""></div>');
}