function redirect_url(pagelink) {

   var golink=pagelink

   switch (golink)
   {
      case "memberlogin" : location.href="http://www.ulead.com.tw/ulead/member/member2006/member.cfm?FS=us&pg=9"
      break;

      case "memberreg" : location.href="http://www.ulead.com.tw/ulead/member/member2006/member.cfm?FS=us&pg=2"
      break;

      case "productreg" : location.href="http://www.ulead.com.tw/ulead/member/member2006/member.cfm?feature=PR&FS=us"
      break;

      case "uleadmall" : location.href="http://www.ulead.com/store/store.htm"
      break;

     /* case "searchlink" : location.href=hostname+"ULSearchView?storeId="+storeId+"&catalogId="+catalogId+"&langId="+langId
      break;*/

      case "member" : location.href="http://www.corel.com/servlet/Satellite?pagename=us-Ulead/UleadProcessLayout&ppg=CorelCorp/Account/Controller&lc=en"
      break;

      case "shopping" : location.href="http://www.ulead.com/store/cart.htm"
      break;

      case "productlist" : location.href="http://www.ulead.com/store/product_list.htm"
      break;

     case "supportform" : location.href="http://www.ulead.com.tw/ulead/member/member2006/member.cfm?FS=us&feature=TS"
      break;
	  
	  case "worldwide" : location.href="http://www.ulead.com/aboutulead/worldwide.htm"
      break;

   }

}

/* call mouse over image on top navig */
<!--
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_swapImgRestore() { //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;
}

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];}
}
//-->


 /* this function "showbgtable()" shows the background image fo "Top-Navigation" */

function showbgtable(){
document.write("<table width='780' height='58' border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr><td rowspan='2' width='160' height='58' valign='top'><a href='http://www.ulead.com/runme.htm'><img src='/images/2010_top_navi/header_01.gif' border='0'></a></td><td valign='top' colspan='6' width='440' height='30'><img src='/images/2010_top_navi/header_02.gif'></td>");		
document.write("<td width='70' height='30'><a href='javascript:redirect_url(\"member\")'><img src='/images/2010_top_navi/header_04.gif' border='0'></a></td>");
document.write("<td colspan='2' align='left' width='110' height='30'><a href='javascript:redirect_url(\"shopping\")'><img src='/images/2010_top_navi/header_05.gif'  border='0'></a></td></tr>");
document.write("<tr><td width='440' colspan='6' background='/images/2010_top_navi/nav_bottombg.gif'>");
document.write("<td width='180' height='28' colspan='3' background='/images/2010_top_navi/nav_bottombg.gif'><div align='center'><img src='/images/2010_top_navi/header_phone.gif'></div></td>");																																																																															document.write("</tr><tr height='0'>");																																																																																document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='160'height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='82' height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='69' height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='78' height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='62' height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='63' height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='86' height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='70' height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='82' height='1'></td>");
document.write("<td><img src='/images/2010_top_navi/spacer.gif' width='28' height='1'</td></tr>");
document.write("</table>");
}


/* the function "showlayer()" and "autolayer()" control the "Ulead World Wide" Onclick-Action Button */
function showlayer(){
P7_autoLayers("dropdownLayer","closer")
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openproductlist() { //v2.0
  window.open('http://www.ulead.com/store/product_list.htm','scrollbars=yes,width=307,height=400');
}

/* compatibility */

function VideoWin(loc) {    

	 win = window.open(loc,'Video','width=590,height=470,toolbar=No,location=No,directoryies=Yes,resizable=Yes,scrollbars=Yes,top=0,left=100');    
	 win.focus();
}