<!--
//* Navigator Versions
var isIE = (navigator.appName == "Microsoft Internet Explorer") ? true : false ;
var isNS = (navigator.appName == "Netscape") ? true : false ;
var isOP = (navigator.appName == "Opera") ? true : false ;

//*************************************************************
//* Menu stuff
//*************************************************************
bCol = "dddddd"; // highlight bar colour when mouse is over menu item
fCol = "000000"; // text colour when mouse is over menu item
menuWidth = "180";

function ShowOver(sectionnumber) {
  sectionnumber.style.backgroundColor=bCol;
  sectionnumber.style.color=fCol;
}

function HideOver(sectionnumber) {
  sectionnumber.style.backgroundColor='';
  sectionnumber.style.color='';
}

function writeMenu(wid) {
  widT = ""
  if (wid != null){
    widT = 'width="' + wid + '" ' ;
    if (menuWidth == "0") {
       widT = "";
    }
  }
  document.write('<table border="0" cellspacing="0" style="border-collapse: collapse"' +  widT + 'cellpadding="6">');
}

function writeMenuEnd() {
  document.write('</table>');
}

function writeMenuGap() {
  document.write('<table><tr><td><img alt="" border="0" src="images/Filler.gif" width="1" height="20"></td></tr></table>');
}

function writeMenuHeader(text,cls,wid) {
  widText = menuWidth ;
  if (wid != null){
    widText = wid ;
  }
  classText = 'class="menuheader"'
  if (cls != null){
    classText = 'class="' + cls + '"' ;
  }
  writeMenu(widText);
  document.write('<tr ' + classText + '><td align="left" ' + classText + '>' + text + '</td></tr>');
  writeMenuEnd();
}
function writeMenuActive(text,cls,wid) {
  widText = menuWidth ;
  if (wid != null){
    widText = wid ;
  }
  classText = 'class="menuhighlight"';
  if (cls != null){
    classText = 'class="' + cls + '"' ;
  }
  if (PageSubID == "") {
    writeMenu(widText);
    document.write('<tr ' + classText + '><td align="right" ' + classText + '><b>' + text + '</b></td></tr>');
    writeMenuEnd();
  }
  else {
      document.write('<div id="' + PageSubID + 'o" style="border: 0px;">');
      writeMenu(widText);
      document.write('<tr ' + classText + '><td ' + classText + 'valign="bottom" style="cursor:pointer" onclick="hideSubMenu()"><font face="Arial">&#9650;</font></td><td align="right" ' + classText + '><b>' + text + '</b></td></tr>');
      writeMenuEnd();
      document.write('</div>')
      document.write('<div id="' + PageSubID + 'c" style="display: none; border: 0px;">');
      writeMenu(widText);
      document.write('<tr ' + classText + '><td ' + classText + 'valign="bottom" style="cursor:pointer" onclick="openSubMenu()"><font face="Arial">&#9660;</font></td><td align="right" ' + classText + '><b>' + text + '</b></td></tr>');
      writeMenuEnd();
      document.write('</div>')
  }
}
function writeMenuItem(link,text,target,cls,id,alg,wid) {
  alignText = "left"
  if (alg != null){
    alignText = alg ;
  }
  widText = menuWidth ;
  if (wid != null){
    widText = wid ;
  }
  classText = 'class="menu"';
  classHighText = 'menuhighlight';
  if (cls != null){
    classText = 'class="' + cls + '"' ;
    classHighText = cls + 'highlight' ;
  }
  linkText = ""
  if (link != null){
    linkText = "'" + link + "'" ;
  }
  tgtText = "location.href=" + linkText;
  if (target != null){
    if (target == "_top"){
      tgtText = "top.location.href=" + linkText;
    }
    else if (target == "_blank"){
      tgtText = "window.open(" + linkText + ")";
    }
    else if (target != "") { 
      tgtText = "parent." + target + ".location.href=" + linkText ;
    }
  }
  activeFlag = false;
  if ((id != null) & (PageID != null)){
    if (PageID == id){
      activeFlag = true;
    }
  }

  if (activeFlag) {
    writeMenuActive(text,classHighText,widText);
  }
  else {
    writeMenu(widText);
    document.write('<tr ' + classText + ' onclick=' + tgtText + ' onmouseover="ShowOver(this)" onmouseout="HideOver(this)">');
    document.write('<td title="' + text + '" width="' + widText + '" style="cursor:pointer" align="' + alignText + '" ' + classText + '>' + text + '</td>');
    document.write('</tr>');
    writeMenuEnd();
  }
}

function writeSubMenuStart(id){
  document.write('<div id="' + id +'" style="display: none; border: 0px;">');
}

function writeSubMenuEnd(){
  document.write('</div>');
  if (document.getElementById([PageSubID]) != null){
    document.getElementById([PageSubID]).style.display='';
    PageSubIDOpen = true;
  }  
}

function writeSubMenuItem(link,text,target,cls,id,alg,wid) {
  sArray = location.pathname.split('/') ;
  pageName = sArray[sArray.length-1] ;
  if (link != pageName) {
    writeMenuItem(link,text,target,cls,id,alg,wid);
  }
}

function hideSubMenu(){
  if (document.getElementById([PageSubID]) != null){
    IDOpen = PageSubID + "o";
    IDClosed = PageSubID + "c";
    document.getElementById([PageSubID]).style.display='none';
    document.getElementById([IDOpen]).style.display='none';
    document.getElementById([IDClosed]).style.display='';
    parent.activeSubIDOpen = false;
  }  
}
function openSubMenu(){
  if (document.getElementById([PageSubID]) != null){
    IDOpen = PageSubID + "o";
    IDClosed = PageSubID + "c";
    document.getElementById([PageSubID]).style.display='';
    document.getElementById([IDOpen]).style.display='';
    document.getElementById([IDClosed]).style.display='none';
    parent.activeSubIDOpen = true;
  }  
}

function writeNoLimitsMenu(){
  writeMenuItem('../home/index.htm','Home Page','_top','menuL','hom');
  writeMenuItem('../news/index.htm','News & Results','_top','menuL','new');
  writeMenuItem('../events/index.htm','Upcoming events','_top','menuL','eve');
  writeMenuItem('../nolimitsopen/index.htm','No Limits Open','_top','menuL','nlo');
  writeSubMenuStart('nloa');
    writeSubMenuItem('index.htm','&nbsp;&nbsp;&nbsp;No Limits Open','_top','menuS','','left');
  writeSubMenuEnd();  
  writeMenuItem('../archive/index.htm','Archive','_top','menuL','arc');
  writeSubMenuStart('arca');
    writeSubMenuItem('index.htm','&nbsp;&nbsp;&nbsp;Archive','_top','menuS','','left');
    writeSubMenuItem('amber.htm','&nbsp;&nbsp;&nbsp;Amber Heijdens','_top','menuS','','left');
    writeSubMenuItem('gymnasts.htm','&nbsp;&nbsp;&nbsp;Astrid de Mul','_top','menuS','','left');
    writeSubMenuItem('gymnasts.htm','&nbsp;&nbsp;&nbsp;Tamara Aliev','_top','menuS','','left');
    writeSubMenuItem('gymnasts.htm','&nbsp;&nbsp;&nbsp;Sabine de Schutter','_top','menuS','','left');
    writeSubMenuItem('ekaterina.htm','&nbsp;&nbsp;&nbsp;Ekaterina Sarsatskich','_top','menuS','','left');
    writeSubMenuItem('jackie.htm','&nbsp;&nbsp;&nbsp;Jackie Steinke','_top','menuS','','left');
  writeSubMenuEnd();  
//  writeMenuGap();
  writeMenuItem('../club/index.htm','The Club','_top','menuL','clu');
  writeSubMenuStart('clua');
    writeSubMenuItem('index.htm','&nbsp;&nbsp;&nbsp;The Club','_top','menuS','','left');
    writeSubMenuItem('subscribe.htm','&nbsp;&nbsp;&nbsp;Subscription Form','_top','menuS','','left');
    writeSubMenuItem('statutenvzw2006.pdf','&nbsp;&nbsp;&nbsp;Club Statutes (Dutch)','_blank','menuS','','left');
  writeSubMenuEnd();  
  writeMenuItem('../gymnasts/index.htm','Gymnasts','_top','menuL','gym');
  writeSubMenuStart('gyma');
    writeSubMenuItem('index.htm','&nbsp;&nbsp;&nbsp;Gymnasts','_top','menuS','','left');
//    writeSubMenuItem('charlotte.htm','&nbsp;&nbsp;&nbsp;Charlotte Nuyens','_top','menuS','','left');
    writeSubMenuItem('elenag.htm','&nbsp;&nbsp;&nbsp;Elena Gontcharova','_top','menuS','','left');
//    writeSubMenuItem('elena.htm','&nbsp;&nbsp;&nbsp;Elena Meeusen','_top','menuS','','left');
//    writeSubMenuItem('eveline.htm','&nbsp;&nbsp;&nbsp;Eveline Aerts','_top','menuS','','left');
    writeSubMenuItem('ilona.htm','&nbsp;&nbsp;&nbsp;Ilona Gevorkyan','_top','menuS','','left');
    writeSubMenuItem('june.htm','&nbsp;&nbsp;&nbsp;June van Craenenbroeck','_top','menuS','','left');
    writeSubMenuItem('laura.htm','&nbsp;&nbsp;&nbsp;Laura Aerts','_top','menuS','','left');
    writeSubMenuItem('laurah.htm','&nbsp;&nbsp;&nbsp;Laura Hermans','_top','menuS','','left');
    writeSubMenuItem('lauren.htm','&nbsp;&nbsp;&nbsp;Lauren Rubbens','_top','menuS','','left');
//    writeSubMenuItem('liselot.htm','&nbsp;&nbsp;&nbsp;Liselot Van de kerckhoven','_top','menuS','','left');
//    writeSubMenuItem('lotje.htm','&nbsp;&nbsp;&nbsp;Lieselotte Diels','_top','menuS','','left');
    writeSubMenuItem('luna.htm','&nbsp;&nbsp;&nbsp;Luna Batens','_top','menuS','','left');
    writeSubMenuItem('kaylie.htm','&nbsp;&nbsp;&nbsp;Kaylie Terauds','_top','menuS','','left');
    writeSubMenuItem('kelly.htm','&nbsp;&nbsp;&nbsp;Kelly de Block','_top','menuS','','left');
    writeSubMenuItem('milane.htm','&nbsp;&nbsp;&nbsp;Milane Rubbens','_top','menuS','','left');
    writeSubMenuItem('muyi.htm','&nbsp;&nbsp;&nbsp;Mu-Yi Shih','_top','menuS','','left');
//    writeSubMenuItem('sonya.htm','&nbsp;&nbsp;&nbsp;Sonya Hopman','_top','menuS','','left');
//    writeSubMenuItem('tess.htm','&nbsp;&nbsp;&nbsp;Tess Wouters','_top','menuS','','left');
//    writeSubMenuItem('tine.htm','&nbsp;&nbsp;&nbsp;Tine Verboven','_top','menuS','','left');
  writeSubMenuEnd();  
  writeMenuItem('../coaches/index.htm','Coaches & Staff','_top','menuL','coa');
  writeSubMenuStart('coaa');
    writeSubMenuItem('index.htm','&nbsp;&nbsp;&nbsp;No Limits Staff','_top','menuS','','left');
    writeSubMenuItem('jana.htm','&nbsp;&nbsp;&nbsp;Jana Veselá','_top','menuS','','left');
    writeSubMenuItem('lena.htm','&nbsp;&nbsp;&nbsp;Jelena Surovaja','_top','menuS','','left');
    writeSubMenuItem('coaches.htm','&nbsp;&nbsp;&nbsp;Myriam de Ridder','_top','menuS','','left');
    writeSubMenuItem('coaches.htm','&nbsp;&nbsp;&nbsp;Judith Kovacs','_top','menuS','','left');
    writeSubMenuItem('coaches.htm','&nbsp;&nbsp;&nbsp;Iris van Camp','_top','menuS','','left');
    writeSubMenuItem('coaches.htm','&nbsp;&nbsp;&nbsp;Emilie Thys','_top','menuS','','left');
    writeSubMenuItem('pres.htm','&nbsp;&nbsp;&nbsp;Erik Moers','_top','menuS','','left');
    writeSubMenuItem('pres.htm','&nbsp;&nbsp;&nbsp;Noëlla Rusch','_top','menuS','','left');
  writeSubMenuEnd();  
  writeMenuItem('../links/index.htm','Links','_top','menuL','lin');
//  writeSubMenuStart('lina');
//    writeSubMenuItem('index.htm','&nbsp;&nbsp;&nbsp;Links','_top','menuS','','left');
//    writeSubMenuItem('sponsor.htm','&nbsp;&nbsp;&nbsp;Our Sponsors','_top','menuS','','left');
//  writeSubMenuEnd();  
}


//*************************************************************
//* This function resizes an iFrame to it's content size
//*************************************************************
function resizeIframe(frameid){
    if (frameid != null) {
		var oFrame = document.getElementById(frameid);
		if (oFrame.document) 
		  var oBody	= oFrame.document.body ;
		else 
		  var oBody	= oFrame.contentDocument.body ;
		  
		if (oBody.scrollHeight) 
		  var nHeight = oBody.scrollHeight ;
		else  
		  var nHeight = oBody.offsetHeight ;
		  
		if (isIE)
		  var nExtraHeight = 10 ; 
		else 
		  var nExtraHeight = 0 ;
		  
	    oFrame.style.height = nHeight + nExtraHeight;
	}    
}

//*************************************************************
//* This function pops up a new window with no toolbars etc.
//*************************************************************
function popUpN(URL, ScrollBars, ReSizable, Width, Height) {
  if (ScrollBars == null) { 
    ScrollBars = "yes" ;
  }
  if (ReSizable == null) { 
    ReSizable = "yes" ;
  }
  if (Width == null) { 
    Width = "640" ;
  }
  if (Height == null) { 
    Height = "400" ;
  }
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbars=no,scrollbars=" + ScrollBars + ",location=no,statusbars=no,menubar=no,resizable=" + ReSizable + ",width=" + Width + ",height=" + Height + ",left=100,top=100');");
}

//*************************************************************
//* These functions write the headers and footers
//*************************************************************
function writeHeader() {
    document.write('<img alt="No Limits Gymnastics" src="../images/nlghead.png">')
//    document.write('<h1 class="nloHead">No Limits Gymnastics</h1>')
}

function writeFooter() {
    document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>');
    document.write('<p class="nloFoot"><font face="Times New Roman">©</font> No Limits Gymnastics 2000-2009, All Rights Reserved</p>');
    document.write('</td><td align="right">');
    document.write('<p class="nloFoot"></p>');
    document.write('</td></tr></table>');
}

//*************************************************************
//* This function writes a string to the status bar
//*************************************************************
function winStat(message){
  top.window.status = message ;
  return true ;
}

//*************************************************************
//* functions to display a popup window set to the size of the 
//* selected picture.
//*************************************************************
var Photo1 = new Image();
var pURL
var pWindow

function OpenPhoto() { 
  ScrollBars = "no" ;
  ReSizable = "no" ;
  Width = Photo1.width ;
  Height = Photo1.height ;
  Left = 50 ;
  day = new Date();
  id = day.getTime();
  eval("pWindow = window.open(pURL, '" + id + "', 'toolbars=no,scrollbars=" + ScrollBars + ",location=no,statusbars=no,menubar=no,resizable=" + ReSizable + ",width=" + Width + ",height=" + Height + ",left=" + Left + ",top=50');");
  winStat(" ");
} 

function ViewPhoto(URL, root) {
  winStat("Picture Loading...");
  if (pWindow != null) {
    pWindow.close();
  }
  pURL = URL ;
  sArray = URL.split("=") ;
  pic = sArray[1] ;
  Photo1.onload = OpenPhoto;
  Photo1.src = root + pic ;
}
//*************************************************************
//* Open window to view a Youtube video
//*************************************************************
function ViewTube(itemA) {
  pURL = "../tubeview.htm?item=" + itemA
  day = new Date();
  id = day.getTime();
  eval("pWindow = window.open(pURL, '" + id + "', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubar=no,resizable=no,width=425,height=344,left=50,top=50');");
}

//*************************************************************
//* Writes out the counter only if we are on Ritmiek
//*************************************************************
function writeCounter(){
  loc = location.href.toLowerCase() ;
  sArray = loc.split("/");
  SiteName = sArray[3];
  if (SiteName == "ritmiek") {
    document.write('<scr' + 'ipt language="JavaScript" type="text/javascript" src="http://pub20.bravenet.com/counter/code.php?id=365251&usernum=1653151196&cpv=2"></scr' + 'ipt>')
  }
}

// -->
