js=true; // GLOBAL //var toSite=(location.href.indexOf(flag)!=-1)? location.href.substring(0,location.href.indexOf(flag)) : location.href; var toSite=location.href; if (location.href.indexOf(flag)!=-1) { if (flag=='home') { toSite=location.href.substring(0,location.href.lastIndexOf(flag)) } else { toSite=location.href.substring(0,location.href.indexOf(flag)) } } var bar=new Array('home','about','events','results','gallery','projects','sponsor','contact','video','rules','join','chat','links','help'); // GENERAL function goPage(pth) { if (flag=='side'&&parent.main) parent.main.goPage(pth); else location=toSite+pth+'.htm' } function goAnc(anc) { if (flag=='side'&&parent.main&&parent.main.goAnc) parent.main.goAnc(anc); else location=(location.href.indexOf('#')!=-1) ? location.href.substring(0,location.href.indexOf('#'))+anc : location.href+anc; } function getFlag() { return (flag=='side'&&parent.main&&parent.main.flag) ? parent.main.flag : flag; } function noSide() { return (flag=='side'||!parent.side) ? true : false; } function barRef(n) { var ret=bar[n]; if (n>0&&n0) { var n=fontSize+pt+set.pts-8; if (n<8) n=8; return (' font-size : '+n+'pt;'); } else return (''); } function famLn() { return (set.fam) ? ' font-family : '+set.fam+';' : ''; } function bldLn() { return (set.bld) ? ' font-weight : bold;' : ''; } function colLn(col) { return (col) ? ' color : #'+col+';' : ''; } function cssLn(id,col,pt) { var txt=id+' {'; if (col) txt+=colLn(col); if (pt) txt+=ptsLn(pt); document.write(txt+'}\r') } function doCss() { document.write('