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_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_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];}
}

function popEvents(URL,w,h) {
 //URL = "s/"+URL+".html#"+ex;
 l = (screen.width - w)/2;
 t = (screen.height - h)/2;
 window.open(URL,'viewevents','width='+w+',height='+h+',left='+l+',top='+t+',scrollbars=no,status=no,menu=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
}

function popMap(URL,w,h) {
 //URL = "s/"+URL+".html#"+ex;
 l = (screen.width - w)/2;
 t = (screen.height - h)/2;
 window.open(URL,'viewmap','width='+w+',height='+h+',left='+l+',top='+t+',scrollbars=no,status=no,menu=no,noresize');
}

function popCourse(URL,ex) {
 URL = "courses/"+URL+".html#"+ex;
 window.open(URL,'_blank','width=650,height=530,scrollbars=yes,status=no,menu=no,noresize');
}

function popEvent(URL,ex) {
 //URL = "events/"+URL+".html#"+ex;
 window.open(URL,'_blank','width=650,height=530,scrollbars=no,status=no,menu=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');
}

function popSoon(URL,ex) {
 URL = "../"+URL+".html#"+ex;
 window.open(URL,'_blank','width=330,height=155,scrollbars=no,status=no,toolbar=no,noresize');
}

function popPic(URL,ex) {
 URL = "../"+URL+".html#"+ex;
 window.open(URL,'_blank','width=650,height=530,scrollbars=no,status=no,toolbar=no,menu=no,location=no,directories=no,status=no,menubar=no,resizable=no');
}

function popMem(pic,w,h) {
 var URL = "../images/member/"+pic;
 var t = (screen.height - h)/2;
 var l = (screen.width - w)/2;
 var cwin;
 cwin=window.open('','_blank','width='+w+',height='+h+',left='+l+',top='+t+',scrollbars=no,status=no,toolbar=no');
 cwin.document.write("<html>\n<head><title>大中華文化全球協會</title>\n");
 cwin.document.write("</head>\n");
 cwin.document.write("<body topmargin=0 leftmargin=0 onDragStart=\"window.event.returnValue=false\" onSelectStart=\"event.returnValue=false\">\n");
 cwin.document.write("<a href=\"javascript:window.close();\"><img alt=\"關閉視窗\" src="+URL+" width="+w+" height="+h+" border=0\"></a>");
 cwin.document.write("</body>\n</html>");
 cwin.document.close();
 cwin.focus();
}

function popgenpic(pic,w,h) {
 var URL = pic;
 var t = (screen.height - h)/2;
 var l = (screen.width - w)/2;
 var cwin;
 cwin=window.open('','_blank','width='+w+',height='+h+',left='+l+',top='+t+',scrollbars=no,status=no,toolbar=no');
 cwin.document.write("<html>\n<head><title>大中華文化全球協會</title>\n");
 cwin.document.write("</head>\n");
 cwin.document.write("<body topmargin=0 leftmargin=0 onDragStart=\"window.event.returnValue=false\" onSelectStart=\"event.returnValue=false\">\n");
 cwin.document.write("<a href=\"javascript:window.close();\"><img alt=\"關閉視窗\" src="+URL+" width="+w+" height="+h+" border=0\"></a>");
 cwin.document.write("</body>\n</html>");
 cwin.document.close();
 cwin.focus();
}
/*
function menu(mode) {
 if(mode==1) { lan="big5"; }
 if(mode==2) { lan="zh"; }
 if(mode==3) { lan="eng"; }

 document.write("<a href=\"main.html\" onMouseOver=\"MM_swapImage('m01','','../images/"+lan+"/m01-2.gif',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src=\"../images/"+lan+"/m01-1.gif\" width=\"72\" height=\"23\" border=\"0\" name=\"m01\"></a>\n");
 document.write("<a href=\"consultant.html\" onMouseOver=\"MM_swapImage('m02','','../images/"+lan+"/m02-2.gif',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src=\"../images/"+lan+"/m02-1.gif\" width=\"86\" height=\"23\" border="0" name=\"m02\"></a>\n");
 document.write("<a href=\"course.html\" onMouseOver=\"MM_swapImage('m03','','../images/"+lan+"/m03-2.gif',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src=\"../images/"+lan+"/m03-1.gif\" width=\"72\" height=\"23\" border=\"0\" name=\"m03\"></a>\n");
 document.write("<a href=\"###\" onMouseOver=\"MM_swapImage('m04','','../images/"+lan+"/m04-2.gif',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src=\"../images/"+lan+"/m04-1.gif\" width=\"72\" height=\"23\" border=\"0\" name=\"m04\"></a>\n");
 document.write("<a href=\"###\" onMouseOver=\"MM_swapImage('m05','','../images/"+lan+"/m05-2.gif',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src=\"../images/"+lan+"/m05-1.gif\" width=\"72\" height=\"23\" border=\"0\" name=\"m05\"></a>\n");
 document.write("<a href=\"###\" onMouseOver=\"MM_swapImage('m06','','../images/"+lan+"/m06-2.gif',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src=\"../images/"+lan+"/m06-1.gif\" width=\"72\" height=\"23\" border=\"0\" name=\"m06\"></a>\n");
 document.write("<a href=\"contact.html\" onMouseOver=\"MM_swapImage('m07','','../images/"+lan+"/m07-2.gif',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src=\"../images/"+lan+"/m07-1.gif\" width=\"72\" height=\"23\" border=\"0\" name=\"m07\"></a>\n");
}





*/

