var p;
function MM_swapImgRestore(pos) { //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;
  ImagesChange(pos);
}

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];}
}

function scroll_top() {
	window.parent.scroll( 0 , 0) ;
}

function scroll_bottom() {
	//Y軸にありえない数値をいれてページの底まで移動する
	window.parent.scroll( 0 , 10000) ;
}


function ImagesChange(pos) { //v3.0
  Image16.src="images/m1.gif";
  Image17.src="images/m2.gif";
  Image18.src="images/m3.gif";
  Image19.src="images/m4.gif";
  Image20.src="images/m5.gif";
  switch (pos) {
    case 1:
      Image16.src="images/m11.gif";
      break;
    case 2:
      Image17.src="images/m21.gif";
      break;
    case 3:
      Image18.src="images/m31.gif";
      break;
    case 4:
      Image19.src="images/m41.gif";
      break;
    case 5:
      Image20.src="images/m51.gif";
      break;
  }
}

function WinHeaderFrame(pos) {
  document.write('	<TR>');
  document.write('		<TD>');
  document.write('			<TABLE WIDTH=766 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
  document.write('				<TR>');
  document.write('					<TD WIDTH=766 HEIGHT=17 ></TD>');
  document.write('				</TR>');
  document.write('				<TR>');
  document.write('					<TD>');
  document.write('						<TABLE WIDTH=766 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
  document.write('							<TR>');
  document.write('								<TD WIDTH=19 HEIGHT=193 ></TD>');
  document.write('								<TD>');
  document.write('									<TABLE WIDTH=519 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
  document.write('										<TR>');
  document.write('											<TD background="images/2.gif" WIDTH=519 HEIGHT=52 >');
  document.write('												<div style="padding-top:21px;padding-left:22px ">');
  document.write('													<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>');
  document.write('														<TR>');
  document.write('															<TD>');
  document.write('																<a href="index.html"><IMG SRC="images/l1.gif"  WIDTH=10 HEIGHT=10 border="0"><span class="white">&nbsp;トップ</span></a>');
  document.write('															</TD>');
  document.write('															<TD>');
  																				// 2010/06/09 Usui Mod Start
  document.write('																<IMG SRC="images/l4.gif" WIDTH=30 HEIGHT=10 ><a href="mailto:win_order@winsystem.jp"><IMG SRC="images/l3.gif"  WIDTH=11 HEIGHT=10 border="0"><span class="white">&nbsp;お問い合わせ</span></a>');
  																				// 2010/06/09 Usui Mod End
  document.write('															</TD>');
  document.write('															<TD>');
  document.write('																<IMG SRC="images/l4.gif" WIDTH=30 HEIGHT=10 ><a href="other_sitemap.html"><IMG SRC="images/l5.gif"  WIDTH=12 HEIGHT=10 border="0"><span class="white">&nbsp;サイトマップ</span></a>');
  document.write('															</TD>');
  document.write('														</TR>');
  document.write('													</TABLE>');
  document.write('												</div>');
  document.write('											</TD>');
  document.write('										</TR>');
  document.write('										<TR>');
  document.write('											<TD>');
  document.write('												<TABLE WIDTH=519 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
  document.write('													<TR>');
  document.write('														<TD><a href="index.html" onMouseOut="MM_swapImgRestore(' + pos + ')" onMouseOver="MM_swapImage(\'Image16\',\'\',\'images/m11.gif\',1)"><img src="images/m1.gif" name="Image16" width="103" height="34" border="0"></a></TD>');
  document.write('														<TD><a href="comp_information.html" onMouseOut="MM_swapImgRestore(' + pos + ')" onMouseOver="MM_swapImage(\'Image17\',\'\',\'images/m21.gif\',1)"><img src="images/m2.gif" name="Image17" width="104" height="34" border="0"></a></TD>');
  document.write('														<TD><a href="works_main.html" onMouseOut="MM_swapImgRestore(' + pos + ')" onMouseOver="MM_swapImage(\'Image18\',\'\',\'images/m31.gif\',1)"><img src="images/m3.gif" name="Image18" width="104" height="34" border="0"></a></TD>');
  document.write('														<TD><a href="soft_' + SoftwearTop() + '.html" onMouseOut="MM_swapImgRestore(' + pos + ')" onMouseOver="MM_swapImage(\'Image19\',\'\',\'images/m41.gif\',1)"><img src="images/m4.gif" name="Image19" width="104" height="34" border="0"></a></TD>');
  document.write('														<TD><a href="recruit_main.html" onMouseOut="MM_swapImgRestore(' + pos + ')" onMouseOver="MM_swapImage(\'Image20\',\'\',\'images/m51.gif\',1)"><img src="images/m5.gif" name="Image20" width="104" height="34" border="0"></a></TD>');
  document.write('													</TR>');
  document.write('												</TABLE>');
  document.write('											</TD>');
  document.write('										</TR>');
  document.write('										<TR>');
  document.write('											<TD background="images/3.jpg" WIDTH=519 HEIGHT=107 ><div style="padding-top:36px;padding-left:42px "><img src="images/text.jpg"></div></TD>');
  document.write('										</TR>');
  document.write('									</TABLE>');
  document.write('								</TD>');
  document.write('								<TD>');
  document.write('									<TABLE WIDTH=208 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
  document.write('										<TR>');
  document.write('											<TD background="images/4.gif" WIDTH=208 HEIGHT=86 ></TD>');
  document.write('										</TR>');
  document.write('										<TR>');
  document.write('											<TD><IMG SRC="images/5.jpg" WIDTH=208 HEIGHT=107 ></TD>');
  document.write('										</TR>');
  document.write('									</TABLE>');
  document.write('								</TD>');
  document.write('								<TD WIDTH=20 HEIGHT=193 ></TD>');
  document.write('							</TR>');
  document.write('						</TABLE>');
  document.write('					</TD>');
  document.write('				</TR>');
  document.write('			</TABLE>');
  document.write('		</TD>');
  document.write('	</TR>');
}

function WinFooterFrame() {
  document.write('	<TR>');
  document.write('		<TD background="images/1.gif" WIDTH=766 HEIGHT=54>');
  document.write('			<div style="padding-top:12px;padding-left:45px">');
  document.write('				<table border="0" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=700>');
  document.write('					<tr>');
  document.write('						<td>');
  document.write('							<a href="other_privacy.html" class="menu">個人情報保護方針</a>');
  document.write('							　<a href="other_privacy_handling.html" class="menu">個人情報の取り扱いについて</a>');
  document.write('							　<a href="other_security.html" class="menu">情報セキュリティ方針</a>');
  document.write('							　<a href="other_sitepolicy.html" class="menu">本サイトについて</a>');
  document.write('						</td>');
  document.write('						<td>');
  document.write('							<span style="padding-top:12px;padding-left:0px"><a href="javascript:scroll_top();" class="menu">△このページの先頭へ</a></span>');
  document.write('						</td>');
  document.write('					</tr>');
  document.write('					<tr><td><img src="images/spacer.gif" height="5px"></td></tr>');
  document.write('					<tr>');
  document.write('						<td colspan="2">');
  document.write('							<span class="copyright">copyright &copy; 2008-2011 WinSystem</span>');
  document.write('						</td>');
  document.write('					</tr>');
  document.write('				</table>');
  document.write('			</div>');
  document.write('		</td>');
  document.write('	</tr>');
}
//ソフトウェア左メニュータブの生成
//softname ソフトウェア名称
//pos  S:ソフト紹介 M:マニュアル
function SoftSubMenu(softname,pos) {
var i;
  SortNum();
  for (i=0; i<p.length; i++) {
    if (softname==p[i].split(",")[0]) {
      if (pos=="S") {
        //紹介ページの場合オレンジへを表示
        document.write('	<img src="images/spacer.gif" height="12px"><br><img src="images/1hline1.gif"><br><img src="images/spacer.gif" height="12px"><br>');
        document.write('	<strong class="orange"><img src="images/arr.gif" width="12" height="8">&nbsp;' + p[i].split(",")[1] + '</strong>');
        document.write('	<br>');

        //サブ(利用画面等)があるかどうか
        if (p[i].split(",")[2]!=0) {
          //マニュアルリンクを表示
          document.write('	<!-- 利用方法 -->');
          document.write('	<img src="images/spacer.gif" height="12px"><br>');
          document.write('	<strong>　　・<a href="manual_' + p[i].split(",")[0] + '.html" class="blue">&nbsp;利用方法</a></strong>');
          document.write('	</br>');
        }

        //sqlezbackupのみマニュアル２つ
        if (softname=="sqlezbackup") {
          //マニュアルリンクを表示
          document.write('	<!-- 利用方法 -->');
          document.write('	<img src="images/spacer.gif" height="12px"><br>');
          document.write('	<strong>　　・<a href="manual_sqlserver2005express.html" class="blue">&nbsp;Expressの設定方法</a></strong>');
          document.write('	</br>');
        }

      } else {
         //紹介ページリンクを表示
         document.write('	<img src="images/spacer.gif" height="12px"><br><img src="images/1hline1.gif"><br><img src="images/spacer.gif" height="12px"><br>');
         document.write('	<strong>・<a href="soft_' + p[i].split(",")[0] + '.html" class="blue">' + p[i].split(",")[1] + '</a></strong>');
         document.write('	<br>');

         //sqlezbackupのみマニュアル２つ
         if (softname=="sqlezbackup") {
           //利用画面等ページの場合オレンジへを表示
           if (pos=="M1") {
             // SQLEzBackup
             document.write('	<!-- 利用方法 -->');
             document.write('	<img src="images/spacer.gif" height="12px"><br>');
             document.write('	<strong class="orange">　　<img src="images/arr.gif" width="12" height="8">&nbsp;利用方法</strong>');
             document.write('	</br>');
             document.write('	<!-- 利用方法(express) -->');
             document.write('	<img src="images/spacer.gif" height="12px"><br>');
             document.write('	<strong>　　・<a href="manual_sqlserver2005express.html" class="blue">&nbsp;Expressの設定方法</a></strong>');
             document.write('	</br>');
           } else {
             // SQLServer2005Express
             document.write('	<!-- 利用方法 -->');
             document.write('	<img src="images/spacer.gif" height="12px"><br>');
             document.write('	<strong>　　・<a href="manual_' + p[i].split(",")[0] + '.html" class="blue">&nbsp;利用方法</a></strong>');
             document.write('	</br>');
             document.write('	<!-- 利用方法(express) -->');
             document.write('	<img src="images/spacer.gif" height="12px"><br>');
             document.write('	<strong class="orange">　　<img src="images/arr.gif" width="12" height="8">&nbsp;Expressの設定方法</a></strong>');
             document.write('	</br>');
           }
         //サブ(利用画面等)があるかどうか
         } else if (p[i].split(",")[2]!=0) {
           //利用画面等ページの場合オレンジへを表示
           document.write('	<!-- 利用方法 -->');
           document.write('	<img src="images/spacer.gif" height="12px"><br>');
           document.write('	<strong class="orange">　　<img src="images/arr.gif" width="12" height="8">&nbsp;利用方法</strong>');
           document.write('	</br>');
         }

      }
    } else {
      document.write('	<img src="images/spacer.gif" height="12px"><br><img src="images/1hline1.gif"><br><img src="images/spacer.gif" height="12px"><br>');
      document.write('	<strong>・<a href="soft_' + p[i].split(",")[0] + '.html" class="blue">' + p[i].split(",")[1] + '</a></strong>');
      document.write('	<br>');
    }
  }
}

//順番を配列で保持
function SortNum() {
  //名称+出力名称＋サブ（マニュアル等）が存在する：1
  //（注：HTML名称は「soft_名称.html」、「manual_名称.html」にしてください）
  //なお、ここを変える場合はother_sitemap.htmlも変更してください。
  p = new Array(7);
  p[0] = "reviewassistant,ReviewAssistant 1.0,1";
  p[1] = "sqlezbackup,SQLEzBackup 3.0,1";
  p[2] = "dbmask,DBMask 3.2,1";
  p[3] = "msdeinstaller,MSDEインストーラ 1.2,1";
  p[4] = "msdezbackup,MSDEzBackup 1.0,1";
  p[5] = "colorpicker,Color Picker 3.2,0";
  p[6] = "easyuploader,Easy Uploader,0";
}

//ソフトウェアの先頭ページを取得
function SoftwearTop() {
  SortNum();
  return p[5].split(",")[0];
}

//ソフトウェアの先頭ページを取得
function WinBodyEnd() {
    document.write('	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");');
    document.write('	document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));');
    document.write('	</script>');
    document.write('	<script type="text/javascript">');
    document.write('	try {');
    document.write('	var pageTracker = _gat._getTracker("UA-858656-2");');
    document.write('	pageTracker._trackPageview();');
    document.write('	} catch(err) {}');
}

