
function month_en(i)
{return "January,February,March,April,May,June,July,August,September,October,November,December".split(",")[i-1];}

function date_en(date)
{pdate = "";
 if(date.substring(4,6)!="")
 {var m=date.charAt(4)=='0'?parseInt(date.substring(5,6)):parseInt(date.substring(4,6));
  if(!isNaN(m))pdate=month_en(m)+" ";
 }
 if(date.substring(6,8)!="")
 {var d=date.charAt(6)=='0'?parseInt(date.substring(7,8)):parseInt(date.substring(6,8));
  if(!isNaN(d)&&d>0) pdate=pdate+d+", ";
 }
 return pdate+date.substring(0,4);
}

function month_du(i)
{return "januari,februari,maart,april,mei,juni,juli,augustus,september,oktober,november,december".split(",")[i-1];}

function date_du(date)
{pdate = "";
 if(date.substring(6,8)!="")
 {var d=date.charAt(6)=='0'?parseInt(date.substring(7,8)):parseInt(date.substring(6,8));
  if(!isNaN(d)&&d>0) pdate=d+" ";
 }
 if(date.substring(4,6)!="")
 {var m=date.charAt(4)=='0'?parseInt(date.substring(5,6)):parseInt(date.substring(4,6));
  if(!isNaN(m))pdate=pdate+month_du(m)+" ";
 }
 return pdate+date.substring(0,4);
}

function abr_month_du(i)
{return "jan,feb,mrt,apr,mei,jun,jul,aug,sep,okt,nov,dec".split(",")[i-1];}

function abr_date_du(date)
{pdate = "";
 if(date.substring(6,8)!="")
 {var d=date.charAt(6)=='0'?parseInt(date.substring(7,8)):parseInt(date.substring(6,8));
  if(!isNaN(d)&&d>0) pdate=d+" ";
 }
 if(date.substring(4,6)!="")
 {var m=date.charAt(4)=='0'?parseInt(date.substring(5,6)):parseInt(date.substring(4,6));
  if(!isNaN(m))pdate=pdate+abr_month_du(m)+" ";
 }
 return pdate+date.substring(0,4);
}

function imgNB(I,T)
{document.write("<IMG SRC=\""+I+"\" BORDER=\"0\" ALT=\""+T+"\">");}
function imgLink(I,T,L)
{document.write("<A HREF=\""+L+".html\" TITLE=\""+T+"\">");imgNB(I,T);document.writeln("</A>");}

function item(A,I)
{v=A[I];if(typeof v=="undefined")v="";return v;}

function nav_en(N)
{args=N.split("|");
 L=item(args,0);U=item(args,1);R=item(args,2);A=item(args,3);
 document.writeln("<TABLE ALIGN=\"RIGHT\" BORDER=\"0\" BACKGROUND=\"main_bg.gif\" BGCOLOR=\"#FF80F0\" CELLSPACING=\"0\ CELLPADDING=\"4\"><TR><TD>");
 if(L=="")imgNB("Ls.gif","No previous"); else imgLink("L.gif","Previous",L);
 imgLink("U.gif","Up",U);
 if(R=="")imgNB("Rs.gif","No next"); else imgLink("R.gif","Next",R);
 if(A!="")document.writeln("</TD></TR><TR><TD><CENTER><A HREF=\""+A+".html\">Dutch / Nederlands</A></CENTER>");
 document.writeln("</TD></TR></TABLE>");
}
function nav_du_alt(L,U,R,A)
{document.writeln("<TABLE ALIGN=\"RIGHT\" BORDER=\"0\" BACKGROUND=\"main_bg.gif\"><TR><TD>");
 if(L=="") imgNB("Ls.gif","Geen vorige"); else imgLink("L.gif","Vorige",L);
 imgLink("U.gif","Naar boven",U);
 if(R=="") imgNB("Rs.gif","Geen volgende"); else imgLink("R.gif","Volgende",R);
 if(A!="")document.writeln("</TD></TR><TR><TD><CENTER><A HREF=\""+A+".html\">Engels / English</A></CENTER>");
 document.writeln("</TD></TR></TABLE>");
}
function nav_du(L,U,R) {nav_du_alt(L,U,R,"");}

function onlyDutch()
{	if (location.search != "")
		document.writeln("<H3 ALIGN=CENTER><FONT COLOR=\"#F00000\">This page is only available in Dutch</FONT></H3>");
}

function tarrow(a,d,g,s)
{document.writeln(a==""?"<IMG SRC=\""+d+"s.gif\" BORDER=\"0\" ALT=\""+s+"\">":"<A HREF=\"D"+a.substring(0,4)+".html#"+a.substring(4)+"\" TITLE=\""+g+"\"><IMG SRC=\""+d+".gif\" BORDER=\"0\" ALT=\""+g+"\"></A>")}

var prev_l;
function tag(t,a,p,n)
{document.writeln(prev_l+" <A HREF=\""+a+"\">"+t+"</A>");prev_l=","
if(p!=""||n!="")
{document.write(" (")
if(p!="")document.write("<A HREF=\"D"+p.substring(0,4)+".html#"+p.substring(4)+"\">previous</A>")
if(n!=""){if(p!="")document.write(", ");document.write("<A HREF=\"D"+n.substring(0,4)+".html#"+n.substring(4)+"\">next</A>")}
document.write(")")}
}

function tags(){prev_l="<P><B>tags:</B>"}
function tchina(p,n){tag("China Trip 2006","China2006.html",p,n)}
function tan(p,n){tag("Annabel","DAnnabel.html",p,n)}
function tad(p,n){tag("Andy","Andy.html",p,n)}
function tgo(p,n){tag("Go","Go.html",p,n)}
function tlx(p,n){tag("Li-Xia","LiXia.html",p,n)}
function tsn(p,n){tag("Snow","Snow.html",p,n)}
function tck(p,n){tag("Curly Kail","Dhouse.html#CK",p,n)}
function tho(p,n){tag("House","Dhouse.html",p,n)}
function tch(p,n){tag("Chestnuts","Dchestnuts.html",p,n)}
