/* 此 code 用來判別 Browser 版本, 及什麼版本的搭配什麼樣的 Layout. 目前這 code 有 IE 和 NS 兩種 Layout. */


// Main code
function List_open()
{
	if (navigator.appName.charAt(0) == "M")
	{
		MMIE();		// Call function MMIE
    }
   if (navigator.appName.charAt(0) == "N")
	{
		NES();		// Call function NES
	}		
}

// Function MMIE
function MMIE()
{
	document.write("<tr>");
	document.write("<td height=\"25\" class=\"headmiddle_black\"> <span class=\"headmiddle_black\">Select FAQs Type </span>");
	document.write("<select name=\"select\" class=\"bodytext\" onChange=\"MM_jumpMenu('parent',this,0)\">");
	document.write("<option selected>---Select your faq type---</option>");
	document.write("<option value=\"#installation_download\">Installation/Download</option>");
	document.write("<option value=\"#capturing\">Capturing</option>");
	document.write("<option value=\"#editing_rendering\">Editing/Rendering</option>");
	//document.write("<option value=\"#burning\">Burning CD/DVD</option>");
	document.write("<option value=\"#burning\">Burning CD/DVD</option>");
	document.write("<option value=\"#other\">Other</option>");
	document.write("</select></td>");
	document.write("<td height=\"25\" class=\"headmiddle_black\"><input name=\"checkbox2\" type=\"checkbox\" id=\"toggle\" onClick=\"togglefaq()\" value=\"On!\"><label FOR=\"toggle\" class=\"bodytext\" accesskey=\"1\">Open All</label></td>");
	document.write("</tr>");
}

// Function NES
function NES()
{
	document.write("<tr>");
	document.write("<td height=\"25\" colspan=\"2\"> ")
    document.write("<div align=\"center\" class=\"bodytext10\"> ")
    document.write("<a href=\"#installation_download\">Installation/Download</a> | ")
    document.write("<a href=\"#capturing\">Capturing</a> | ")
    document.write("<a href=\"#editing_rendering\">Editing/Rendering</a> | ")
    //document.write("<a href=\"#burning\">Burning CD/DVD</a> | ")
    document.write("<a href=\"#audio\">Audio</a>")
    document.write("<a href=\"#other\">Other</a>")
    document.write("</div></td>")
	document.write("</tr>");
}

// Function togglefaq is for open all faq/close all faq at the same time 
function togglefaq()
{
  if (toggle.checked == true)
  {
         expandTree('tree1');
	 expandTree('tree2'); 
	 expandTree('tree3');
	 expandTree('tree4');
	 expandTree('tree5');
	 expandTree('tree6');          
  	 return false;
   }
   else
   {
         collapseTree('tree1'); 
	 collapseTree('tree2'); 
	 collapseTree('tree3'); 
	 collapseTree('tree4'); 
	 collapseTree('tree5'); 
	 collapseTree('tree6');
	 return false;
    }
}
	 
function MM_jumpMenu(targ,selObj,restore)
{ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}