

function setfoot() {
  document.getElementById('topnav').innerHTML=document.getElementById('topnav').innerHTML+'&nbsp;|&nbsp;<a href=\'javascript:goHome();\'>HOME</a>&nbsp;&nbsp;';
  document.getElementsByTagName('span')[0].onclick = goHome;
  document.getElementsByTagName('span')[0].onmouseover = setCssover;
  document.getElementsByTagName('span')[0].onmouseout = setCssout;	

  document.getElementById('footer').innerHTML='Copyright &copy; 2010  Darwin All Rights Reserved <a href=\'contact_us.html\'>Taipei Office¢xHsin-Chu Office</a> ';
 
  var newDiv = document.createElement("div");
 
  newDiv.style.height = '110px';
  newDiv.style.width = '140px';
  newDiv.style.position = 'absolute';
  newDiv.style.top = '65px'; 
  newDiv.style.left = '45px';
  newDiv.style.border = '0px solid #CCC';
  newDiv.style.cursor='hand';
  newDiv.onclick=clickLink; 
  my_div = document.getElementById("wrapper");
  document.body.insertBefore(newDiv, my_div);
 

}
function clickLink(){
   location.href="index.html";
  
}

function set_lang(lng) {
   	
   var surl=location.href.split('/');
   var n=surl.length;
   var new_link='';
   //alert(surl[n-1].indexOf('ews'));
   //if(surl[n-1].indexOf('ews')==1)new_link='news.html'
   if(lng=='ENG'){
      if(surl[n-1].indexOf('ews')==1)location.href='../news.html';
	  else location.href=location.href.replace('/ch','');
   }
   else if(lng=='CH'){
      for(var i=0;i<n-1;i++){
         new_link +=surl[i]+'/';
      }
     //new_link +='ch/'+surl[n-1];
	  if(surl[n-1].indexOf('ews')==1) new_link +='ch/news.html';
      else new_link +='ch/'+surl[n-1];
      location.href=new_link;
     
  }
}
 
function goHome(){
    document.location.href='index.html';

}
function setCssover(){
  document.getElementsByTagName('span')[0].style.color='#0F0F3C';
  document.getElementsByTagName('span')[0].style.cursor='hand';
  document.getElementsByTagName('span')[0].style.fontWeight = 'bold' ;
}
function setCssout(){
   document.getElementsByTagName('span')[0].style.color='#3f4858';
}
function submenu(){
 
}
function productmenu(){
   document.getElementById('leftmenu').innerHTML=''+
	   	     '<span><A class=main href="portfolio_bio_medical.html">Bio-Medical</A></span><br>'+
	   /*  '<span><A  href="portfolio_consumer_electronics.html">Consumer Electronics</A></span><br>'+*/

	   
			   '<span><A class=main href="portfolio_internet.html">Internet</A></span><br>'+
	    '<span><A class=main href="portfolio_lifestyle.html">Consumer</A></span><br>'+
		 
          '<span><a  href="portfolio_materials.html">Materials & Equipment</A></span><br>'+
		  '<span><a  href="portfolio_semiconductor.html">Semiconductor</A></span><br>'+   
		  '<span><A href="portfolio_surveillance_security.html">Surveillance & Security</A></span><br>'+
              
          '<span><A class=main href="portfolio_wireless_communication.html">Wireless Communication</A></span><br>'+
			 
          '<span><A href="portfolio_others.html">Others</A></span><br>';
		 
}

function teammenu(){
	
	 
	 document.getElementById('teammenu').innerHTML=''+
	  '<span><A  href="team_members.html">Investment Team</A></span><br>'+
          '<sub><a  href="team-members-Simon.html">Simon Fang</A></sub><br>'+
		'<sub><a  href="team-members-YaoTing.html">Yao-Ting Wang</A></sub><br>'+  
		 '<sub><a  href="team_members_Dennis_Chung.html">Dennis Chung</A></sub><br>'+
         '<sub><A href="team_members_Fanny_Yu.html">Fanny Yu</A></sub><br>'+  
		  '<sub><a  href="team_members_Dean_Lee.html">Dean Lee</A></sub><br><br><br>'+  
		 
          '<span><A class=main href="technical_advisors.html">Technical Advisors</A></span><br>'+
			  '<sub><A href="technical_advisors_Jay_Chen.html">Jay Chen</A></sub><br>'+ 
			  '<sub><A href="technical_advisors_Jim_Hogan.html">Jim Hogan</A></sub><br>'+ 
          '<sub><A href="technical_advisors-chris.html">Chris Lin</A></sub><br>'+
          '<sub><A href="technical_advisors_Patrick.html">Patrick Lin</A></sub><br>'+
			
          '<sub> <A  href="technical_advisors_Steve.html">Steve Ro</A></sub><br>'+
          '<sub><A href="technical_advisors_Atul_Sharan.html">Atul Sharan</A></sub><br>'+ 
          '<sub><A href="technical_advisors_Semi_Wang.html">Semi Wang</A></sub><br>';
   
 
}

