// JavaScript Document

function headerMenu(mName){
  var hostname = window.location.hostname;
  
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.write('  <tr>');
    document.write('    <td><div id="menu-left"></div></td>');
	if(mName == 'home'){
	document.write('    <td><a href="http://' + hostname + '/Insage/index.html"><img src="images/menu/m-home-on.gif" width="70" height="58" alt="HOME" title="HOME" border="0"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');
	}else{
	document.write('    <td><a href="http://' + hostname + '/Insage/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m-home\',\'\',\'images/menu/m-home-on.gif\',1)"><img src="images/menu/m-home-off.gif" width="70" height="58" alt="HOME" title="HOME" border="0" name="m-home" id="m-home"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');	
	}
	if(mName == 'aboutUs'){
	document.write('    <td><a href="http://' + hostname + '/Insage/about-us.html"><img src="images/menu/m-aboutus-on.gif" width="94" height="58" alt="ABOUT US" title="ABOUT US" border="0"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');
	}else{
	document.write('    <td><a href="http://' + hostname + '/Insage/about-us.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m-aboutus\',\'\',\'images/menu/m-aboutus-on.gif\',1)"><img src="images/menu/m-aboutus-off.gif" width="94" height="58" alt="ABOUT US" title="ABOUT US" border="0" name="m-aboutus" id="m-aboutus"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');	
	}
	if(mName == 'products'){
	document.write('    <td><a href="http://' + hostname + '/Insage/products.html"><img src="images/menu/m-products-on.gif" width="103" height="58" alt="PRODUCTS" title="PRODUCTS" border="0" /></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');
	}else{
	document.write('    <td><a href="http://' + hostname + '/Insage/products.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m-products\',\'\',\'images/menu/m-products-on.gif\',1)"><img src="images/menu/m-products-off.gif" width="103" height="58" alt="PRODUCTS" title="PRODUCTS" border="0" name="m-products" id="m-products"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');	
	}
	if(mName == 'ir'){
	document.write('    <td><a href="http://' + hostname + '/Insage/investor-relations.html"><img src="images/menu/m-ir-on.gif" width="171" height="58" alt="INVESTOR RELATIONS" title="INVESTOR RELATIONS" border="0"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');
	}else{
	document.write('    <td><a href="http://' + hostname + '/Insage/investor-relations.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m-ir\',\'\',\'images/menu/m-ir-on.gif\',1)"><img src="images/menu/m-ir-off.gif" width="171" height="58" alt="INVESTOR RELATIONS" title="INVESTOR RELATIONS" border="0" name="m-ir" id="m-ir"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');	
	}
	if(mName == 'featured'){
	document.write('    <td><a href="http://' + hostname + '/Insage/featured.html"><img src="images/menu/m-featured-on.gif" width="176" height="58" alt="FEATURED COMPANIES" title="FEATURED COMPANIES" border="0"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');
	}else{
	document.write('    <td><a href="http://' + hostname + '/Insage/featured.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m-featured-companies\',\'\',\'images/menu/m-featured-on.gif\',1)"><img src="images/menu/m-featured-off.gif" width="176" height="58" alt="FEATURED COMPANIES" title="FEATURED COMPANIES" border="0" name="m-featured-companies" id="m-featured-companies"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');	
	}
	if(mName == 'resources'){
	document.write('    <td><a href="http://' + hostname + '/Insage/resources.html"><img src="images/menu/m-resources-on.gif" width="111" height="58" alt="RESOURCES" title="RESOURCES" border="0"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');
	}else{
	document.write('    <td><a href="http://' + hostname + '/Insage/resources.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m-resources\',\'\',\'images/menu/m-resources-on.gif\',1)"><img src="images/menu/m-resources-off.gif" width="111" height="58" alt="RESOURCES" title="RESOURCES" border="0"  name="m-resources" id="m-resources"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');	
	}
	if(mName == 'subscription'){
	document.write('    <td><a href="https://' + hostname + '/Insage/subscription.html"><img src="images/menu/m-subscription-on.gif" width="125" height="58" alt="SUBSCRIPTION" title="SUBSCRIPTION" border="0"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');
	}else{
	document.write('    <td><a href="https://' + hostname + '/Insage/subscription.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m-subscription\',\'\',\'images/menu/m-subscription-on.gif\',1)"><img src="images/menu/m-subscription-off.gif" width="125" height="58" alt="SUBSCRIPTION" title="SUBSCRIPTION" border="0" name="m-subscription" id="m-subscription"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');	
	}
	if(mName == 'contact'){
	document.write('    <td><a href="http://' + hostname + '/Insage/contact.html"><img src="images/menu/m-contact-on.gif" width="90" height="58" alt="CONTACT" title="CONTACT" border="0"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');
	}else{
	document.write('    <td><a href="http://' + hostname + '/Insage/contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m-contact\',\'\',\'images/menu/m-contact-on.gif\',1)"><img src="images/menu/m-contact-off.gif" width="90" height="58" alt="CONTACT" title="CONTACT" border="0" name="m-contact" id="m-contact"/></a><img src="images/menu/menu-separator.gif" width="1" height="58" /></td>');	
	}
	if(mName == 'others'){
	}else{
	}
    document.write('    <td><div id="menu-right"></div></td>');
    document.write('  </tr>');
    document.write('</table>');
}

function clientsOption(mName){
	document.write('<strong>Our Clients :</strong>');
	document.write('        <select onchange="OpenLinkOption(this)" id="our clients">');
	if(mName == 'featured' || mName == 'ir' ){
		document.write('<option value="" selected>Please select from the list</option>');
		document.write('<option value="divAMEDIA">Asia Media Group Berhad</option>');
		document.write('<option value="divCNOUHUA">China Ouhua Winery Holdings Limited</option>');
		document.write('<option value="divEFORCE">Excel Force MSC Berhad</option>');
		document.write('<option value="divFRONTKN">Frontken Corporation Berhad</option>');
		document.write('<option value="divGHLSYS">GHL Systems Berhad</option>');
		document.write('<option value="divINGRESS">Ingress Corporation Berhad</option>');
		document.write('<option value="divHIGHTEC">Kumpulan H&amp;L High-Tech Berhad</option>');
		document.write('<option value="divKIMLUN">Kimlun Corporation Berhad</option>');
		document.write('<option value="divKONSORT">Konsortium Logistik Berhad</option>');
		document.write('<option value="divLNGRES">LNG Resources Berhad</option>');
		document.write('<option value="divMAXWELL">Maxwell International Holdings Berhad</option>');
		document.write('<option value="divMINETEC">Minetech Resources Berhad</option>');
		document.write('<option value="divNIHSIN">Ni Hsin Resources Berhad</option>');
		document.write('<option value="divSCC">SCC Holdings Berhad</option>');
		document.write('<option value="divSINOTOP">Sinotop Holdings Berhad</option>');
		document.write('<option value="divTENAGA">Tenaga Nasional Berhad</option>');
		document.write('<option value="divUOADEV">UOA Development Bhd</option>');
	}
}

function irSubmenu(mName){
	document.write('<table border="0" cellspacing="0" cellpadding="0">');
	document.write('    <tr>');
	document.write('      <td>');
	if(mName == 'whatIsIR'){
	document.write('    <td><a href="investor-relations.html"><img src="images/submenu/sm-what-is-ir-on.gif" alt="WHAT IS IR?" name="sm-what-is-ir" width="166" height="38" border="0" class="submenu-img-spacing" id="sm-what-is-ir" title="WHAT IS IR?" /></a></td>');
	}else{
	document.write('    <td><a href="investor-relations.html"><img src="images/submenu/sm-what-is-ir-off.gif" alt="WHAT IS IR?" name="sm-what-is-ir" width="166" height="38" border="0" class="submenu-img-spacing" id="sm-what-is-ir" title="WHAT IS IR?" /></a></td>');	
	}
	if(mName == 'ourValue'){
	document.write('    <td><a href="investor-relations-our-value.html"><img src="images/submenu/sm-our-value-on.gif" alt="OUR VALUE" title="OUR VALUE" name="sm-our-value" width="166" height="38" border="0" class="submenu-img-spacing" id="sm-our-value" /></a></td>');
	}else{
	document.write('    <td><a href="investor-relations-our-value.html"><img src="images/submenu/sm-our-value-off.gif" alt="OUR VALUE" title="OUR VALUE" name="sm-our-value" width="166" height="38" border="0" class="submenu-img-spacing" id="sm-our-value" /></a></td>');	
	}
	if(mName == 'insageIRSystem'){
	document.write('    <td><a href="investor-relations-insage-ir-system.html"><img src="images/submenu/sm-insage-ir-system-on.gif" alt="INSAGE IR SYSTEM" name="sm-insage-ir-system" width="166" height="38" border="0" class="submenu-img-spacing" id="sm-insage-ir-system" title="INSAGE IR SYSTEM" /></a></td>');
	}else{
	document.write('    <td><a href="investor-relations-insage-ir-system.html"><img src="images/submenu/sm-insage-ir-system-off.gif" alt="INSAGE IR SYSTEM" name="sm-insage-ir-system" width="166" height="38" border="0" class="submenu-img-spacing" id="sm-insage-ir-system" title="INSAGE IR SYSTEM" /></a></td>');	
	}
	if(mName == 'sharePriceModule'){
	document.write('    <td><a href="investor-relations-share-price-module.html"><img src="images/submenu/sm-share-price-module-on.gif" alt="SHARE PRICE MODULE" name="sm-share-price-module" width="166" height="38" border="0" class="submenu-img-spacing" id="sm-share-price-module" title="SHARE PRICE MODULE" /></a></td>');
	}else{
	document.write('    <td><a href="investor-relations-share-price-module.html"><img src="images/submenu/sm-share-price-module-off.gif" alt="SHARE PRICE MODULE" name="sm-share-price-module" width="166" height="38" border="0" class="submenu-img-spacing" id="sm-share-price-module" title="SHARE PRICE MODULE" /></a></td>');	
	}
	if(mName == 'ourClients'){
	document.write('    <td><a href="investor-relations-our-clients.html"><img src="images/submenu/sm-our-clients-on.gif" alt="OUR CLIENTS" name="sm-our-clients" width="166" height="38" border="0" id="sm-our-clients" title="OUR CLIENTS" /></a></td>');
	}else{
	document.write('    <td><a href="investor-relations-our-clients.html"><img src="images/submenu/sm-our-clients-off.gif" alt="OUR CLIENTS" name="sm-our-clients" width="166" height="38" border="0" id="sm-our-clients" title="OUR CLIENTS" /></a></td>');	
	}
	document.write('      </td>');	
    document.write('    </tr>');
    document.write('</table>');
}

function login(){
    document.write('  <table width="100%" border="0" cellspacing="0" cellpadding="0" id="user-login">');
    document.write('    <tr>');
    document.write('      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.write('        <tr>');
    document.write('          <td width="145"><div id="login">');
    document.write('            <table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.write('              <tr>');
    document.write('                <td><div id="login-left"></div></td>');
    document.write('                <td><div id="login-center" align="left">');
    document.write('                  <input name="Login" type="text" id="login-input" value="Login ID" style="color:#5f5e5e; font-size:12px;"/>');
    document.write('                </div></td>');
    document.write('                <td><div id="login-right"></div></td>');
    document.write('              </tr>');
    document.write('            </table>');
    document.write('          </div></td>');
    document.write('          <td width="10"></td>');
    document.write('          <td width="145"><div id="password">');
    document.write('            <table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.write('              <tr>');
    document.write('                <td><div id="password-left"></div></td>');
    document.write('                <td><div id="password-center" align="left">');
    document.write('                  <input name="Password" type="text" id="password-input" value="Password" style="color:#5f5e5e; font-size:12px"/>');
    document.write('                </div></td>');
    document.write('                <td><div id="password-right"></div></td>');
    document.write('              </tr>');
    document.write('            </table>');
    document.write('          </div></td>');
    document.write('          <td width="10"></td>');
    document.write('          <td width="25"><div id="go"><img src="images/login-go.gif" alt="Go" title="Go" width="25" height="25" /></div></td>');
    document.write('        </tr>');
    document.write('      </table>');
    document.write('        <table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.write('          <tr>');
    document.write('            <td><a href="#"><span style="padding-left:8px;">Forgot your User ID / Password?</span></a></td>');
    document.write('          </tr>');
    document.write('        </table></td>');
    document.write('    </tr>');
    document.write('  </table>	');
}
