var activeSub=0;
var SubNum=0;


    //Define global variables

	    var timerID = null;
		var timerOn = false;
		var timecount = 1000;
		var what = null;
		var newbrowser = true;
		var check = false;

    	function init(){
    	//  alert ("Running Init");
          if (document.layers) {
                      //  alert ("Running Netscape 4");
                        layerRef="document.layers";
                        styleSwitch="";
                        visibleVar="show";
			screenSize = window.innerWidth;
			what ="ns4";


          }else if(document.all){
                      //  alert ("Running IE");
                        layerRef="document.all";
                        styleSwitch=".style";
                        visibleVar="visible";
			screenSize = document.body.clientWidth + 18;
			what ="ie";

		  }else if(document.getElementById){
                      //  alert ("Running Netscape 6");
                        layerRef="document.getElementByID";
                        styleSwitch=".style";
                        visibleVar="visible";
			what="moz";
		  
		  }else{
		  	//alert("Older than 4.0 browser.");
			what="none";
			newbrowser = false;
		  }
		  
 
		window.status='Server Based Computing.';
		check = true;
  	 	}

	// Turns the layers on and off
        function showLayer(layerName){
        	if(check){
        		if (what =="none"){
        			return;
        			}
	        	else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="visible";
        			}
        		else{
                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
                  }
		 }
        	else {// alert ("Please wait for the page to finish loading.");
        		return;}
		}

        function hideLayer(layerName){
        	if(check){
        		if (what =="none"){
        			return;
        			}
        		else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="hidden";
        			}
        		else{
                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
				}
        
        	}
        	else {// alert ("Please wait for the page to finish loading.");
        		return;}
        }


		function hideAll(){
				hideLayer('productsNav');
				hideLayer('supportNav');
				hideLayer('downloadsNav');
				hideLayer('partnersNav');
				hideLayer('downloadsNav');
				hideLayer('demoNav');
				hideLayer('companyNav');
				hideLayer('newsNav');
				hideLayer('customersNav');
				hideLayer('contactNav');
				RestoreImageSwap();
				}


		function startTime() {
	        if (timerOn == false) {
                timerID=setTimeout( "hideAll()" , timecount);
                timerOn = true;

	        }

		}


		function stopTime() {
	        if (timerOn) {
    	        clearTimeout(timerID);
                timerID = null;
                timerOn = false;
	        }
		}

		function onLoad(){
			init();
			
			}
			
			
			
		function findObject(n, d) { //v3.0
		  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=findObject(n,d.layers[i].document); return x;
		}

		function imageSwap() {//v3.0
		  var i,j=0,x,a=imageSwap.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		   if ((x=findObject(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
		}
		function RestoreImageSwap() {//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;
		}

		if (document.images) {
		  topnav_r1_c1_f2 = new Image(56 ,30); topnav_r1_c1_f2.src = "../images/topnav_r1_c1_f2.gif";
		  topnav_r1_c1_f1 = new Image(56 ,30); topnav_r1_c1_f1.src = "../images/topnav_r1_c1.gif";
		  topnav_r1_c2_f2 = new Image(49 ,30); topnav_r1_c2_f2.src = "../images/topnav_r1_c2_f2.gif";
		  topnav_r1_c2_f1 = new Image(49 ,30); topnav_r1_c2_f1.src = "../images/topnav_r1_c2.gif";
		  topnav_r1_c3_f2 = new Image(58 ,30); topnav_r1_c3_f2.src = "../images/topnav_r1_c3_f2.gif";
		  topnav_r1_c3_f1 = new Image(58 ,30); topnav_r1_c3_f1.src = "../images/topnav_r1_c3.gif";
		  topnav_r1_c4_f2 = new Image(51 ,30); topnav_r1_c4_f2.src = "../images/topnav_r1_c4_f2.gif";
		  topnav_r1_c4_f1 = new Image(51 ,30); topnav_r1_c4_f1.src = "../images/topnav_r1_c4.gif";
		  topnav_r1_c5_f2 = new Image(62 ,30); topnav_r1_c5_f2.src = "../images/topnav_r1_c5_f2.gif";
		  topnav_r1_c5_f1 = new Image(62 ,30); topnav_r1_c5_f1.src = "../images/topnav_r1_c5.gif";
		  topnav_r1_c6_f2 = new Image(36 ,30); topnav_r1_c6_f2.src = "../images/topnav_r1_c6_f2.gif";
		  topnav_r1_c6_f1 = new Image(36 ,30); topnav_r1_c6_f1.src = "../images/topnav_r1_c6.gif";
		  topnav_r1_c7_f2 = new Image(54 ,30); topnav_r1_c7_f2.src = "../images/topnav_r1_c7_f2.gif";
		  topnav_r1_c7_f1 = new Image(54 ,30); topnav_r1_c7_f1.src = "../images/topnav_r1_c7.gif";
		  topnav_r1_c8_f2 = new Image(53 ,30); topnav_r1_c8_f2.src = "../images/topnav_r1_c8_f2.gif";
		  topnav_r1_c8_f1 = new Image(53 ,30); topnav_r1_c8_f1.src = "../images/topnav_r1_c8.gif";
		  industries2 = new Image(58 ,30); industries2.src = "../images/industries2.gif";
		  industries1 = new Image(58 ,30); industries1.src = "../images/industries1.gif";
		  demo2 = new Image(38 ,30); industries2.src = "../images/topnav_demo2.gif";
		  demo1 = new Image(38 ,30); industries1.src = "../images/topnav_demo1.gif";
		}
		

	
	
	if (document.layers || document.all || document.getElementById){
		
		document.write("<STYLE TYPE='text/css'>");
		  document.write("#companyNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 0px; TOP: 39px; WIDTH:100px;}");
		  document.write("#productsNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 60px; TOP: 39px; WIDTH:100px;}");
		  document.write("#supportNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 115px; TOP: 39px; WIDTH:100px;}");
		  document.write("#downloadsNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 168px; TOP: 39px; WIDTH:100px;}");
		  document.write("#demoNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 230px; TOP: 39px; WIDTH:100px;}");
		  document.write("#partnersNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 275px; TOP: 39px; WIDTH:100px;}");
		  document.write("#newsNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 330px; TOP: 39px; WIDTH:100px;}");
		  document.write("#customersNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 372px; TOP: 39px; WIDTH:100px;}");
		  document.write("#contactNav {POSITION: absolute; Z-INDEX: 90; VISIBILITY: hidden; LEFT: 445px; TOP: 39px; WIDTH:100px;}");
		document.write("</STYLE>");



<!----- Products ----->
	document.write("<DIV ID='productsNav'>");
	document.write("<table border='0' cellspacing='0' cellpadding='0'  width='100'>");
	document.write("<tr>");
	document.write("<td valign='center' align='center' bgcolor='#324173'>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../products/e3/index.html'>Sun SGD</a></p>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../products/vision.html'>Vision製品</a></p>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../products/brochure/index.html'>製品カタログ</a></p>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../whitepapers/index.html'>White Papers</a></p>");

	document.write("</td>");
	document.write("</tr>");
	document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
	document.write("</table>");
	document.write("</DIV>");

<!-----サポート----->
			document.write("<DIV ID='supportNav'>");
				document.write("<table border='0' cellspacing='0' cellpadding='0' width='100'>");
					
				document.write("<tr>");
				document.write("<td valign='center' align='center' bgcolor='#324173'><center>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../support/eii/faq_index.html'>FAQ</a></p>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../support/document.html'>ドキュメント</a></p>");
				      
				document.write("</center>");
				document.write("</td>");
				document.write("</tr>");
				document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
				document.write("</table>");
			document.write("</DIV>");

<!----- Downloads ----->
			document.write("<DIV ID='downloadsNav'>");
				document.write("<table border='0' cellspacing='0' cellpadding='0' width='100'>");
					
				document.write("<tr>");
				document.write("<td valign='center' align='center' bgcolor='#324173'><center>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../download/index.html'>ダウンロード</a></p>");
			    document.write("</center>");
				document.write("</td>");
				document.write("</tr>");
				document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
				document.write("</table>");
			document.write("</DIV>");


<!-----デモ----->			
			document.write("<DIV ID='demoNav'>");
				document.write("<table border='0' cellspacing='0' cellpadding='0' width='100'>");
					
				document.write("<tr>");
				document.write("<td valign='center' align='center' bgcolor='#324173'><center>");
				document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../demo/index.html'>オンラインデモ</a></p>"); 
				document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='http://www.tarantella.com/demo/other.html'>WW Demo Sites</a></p>");
				document.write("</center>");
				document.write("</td>");
				document.write("</tr>");
				document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
				document.write("</table>");
			document.write("</DIV>");

<!----- パートナー ----->
			document.write("<DIV ID='partnersNav'>");
				document.write("<table border='0' cellspacing='0' cellpadding='0' width='100'>");
					
				document.write("<tr>");
				document.write("<td valign='center' align='center' bgcolor='#324173'><center>");
                                document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../partner/index.html'>代理店</a></p>");
                                document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../partner/partner.html'>パートナー</a></p>");
			        document.write("</center>");
				document.write("</td>");
				document.write("</tr>");
				document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
				document.write("</table>");
			document.write("</DIV>");


<!-----アバウトアス ----->
			document.write("<DIV ID='companyNav'>");
				document.write("<table border='0' cellspacing='0' cellpadding='0' width='100'>");
					
				document.write("<tr>");
				document.write("<td valign='center' align='center' bgcolor='#324173'><center>");
				      document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='http://www.tcbtech.co.jp/company_index.html'>会社概要</a></p>");
				      document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='http://www.tcbtech.co.jp/company_map.html'>地図</a></p>");
				      document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='http://www.tcbtech.co.jp/recruit_index.html'>採用情報</a></p>");
				document.write("</center>");
				document.write("</td>");
				document.write("</tr>");
				document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
				document.write("</table>");
			document.write("</DIV>");


<!----- News & Events ----->

			document.write("<DIV ID='newsNav'>");
				document.write("<table border='0' cellspacing='0' cellpadding='0' width='100'>");
					
				document.write("<tr>");
				document.write("<td valign='center' align='center' bgcolor='#324173'><center>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../news_event/index.html'>NEWS</a></p>");
     document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../news_event/event/index.html'>イベント情報</a></p>");
				      document.write("</center>");
				document.write("</td>");
				document.write("</tr>");
				document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
				document.write("</table>");
			document.write("</DIV>");


			
<!-----カスタマーズ----->
			document.write("<DIV ID='customersNav'>");
				document.write("<table border='0' cellspacing='0' cellpadding='0' width='100'>");
					
				document.write("<tr>");
				document.write("<td valign='center' align='center' bgcolor='#324173'><center>");
				      document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../customer/index.html'>事例（日本語）</a></p>");
                      document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='http://www.tarantella.com/customers/'>事例（英語）</a></p>");
				      document.write("</center>");
				document.write("</td>");
				document.write("</tr>");
				document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
				document.write("</table>");
			document.write("</DIV>");
			

<!----- Contact ----->			
			document.write("<DIV ID='contactNav'>");
				document.write("<table border='0' cellspacing='0' cellpadding='0' width='100'>");
					
				document.write("<tr>");
				document.write("<td valign='center' align='center' bgcolor='#324173'><center>");
	 document.write("<p class='menu'><a onmouseover='stopTime();' onmouseout='startTime();' href='../que/index.html'>お問い合わせ</a></p>");
				      document.write("</center>");
				document.write("</td>");
				document.write("</tr>");
				document.write("<tr><td><img src='../images/tab_bottom4.gif' width='100'></td></tr>");
				document.write("</table>");
			document.write("</DIV>");


			}
