window.defaultStatus="© Copyright 2002 -" + ThisYear() + " - Hillingdon Junior Canoe Club";

var popvid = null;
var message="All work and graphics are copyright";
function clickIE4(){if (event.button==2){alert(message);return false;}}
function clickNS4(e){if (document.layers||document.getElementById&&!document.all){if (e.which==2||e.which==3){alert(message);return false;}}}
if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}
document.oncontextmenu=new Function("alert(message);return false")

document.write("<style><!--a { text-decoration:none; color:blue}a:hover{text-decoration:none; color: red}--></style>");
document.write("<style fprolloverstyle>a:hover{ color: #FF0000; font-style: italic}</style>");

function Buttons(home){
  document.write("<center><a href='index.html' ONMOUSEOVER='self.status=\"Return to the home page\";return true'><img src='images/hjcc_logo.gif' alt='HJCC Logo' nosave border=0 height=117 width=66></a></center><p>")
  document.write("<a href='program.html' ONMOUSEOVER='self.status=\"Jump to the program page\";return true'><img src='images/m-program.gif' alt='Program' nosave border=0 height=32 width=131 align=abscenter></a><br>")
//document.write("<a href='newsletter.html' ONMOUSEOVER='self.status=\"Jump to the newsletter page\";return true'><img src='images/m-newsletter.gif' alt='Newsletter' nosave border=0 height=32 width=131 align=abscenter></a><br>") 
  document.write("<a href='membership.html' ONMOUSEOVER='self.status=\"Jump to the membership page\";return true'><img src='images/m-membership.gif' alt='Membership' nosave border=0 height=32 width=131 align=abscenter></a><br>") 
  document.write("<a href='constitution.html' ONMOUSEOVER='self.status=\"Jump to the constitution page\";return true'><img src='images/m-constitution.gif' alt='Constitution' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  document.write("<a href='coaches.html' ONMOUSEOVER='self.status=\"Jump to the coaches page\";return true'><img src='images/m-coaches.gif' alt='Your Coaches' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  document.write("<a href='contacts.html' ONMOUSEOVER='self.status=\"Jump to the contacts page\";return true'><img src='images/m-contacts.gif' alt='Contacts' nosave border=0 height=32 width=131 align=abscenter></a><br>") 
  document.write("<a href='polo.html' ONMOUSEOVER='self.status=\"Jump to the Polo page\";return true'><img src='images/m-polo.gif' alt='Polo' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  document.write("<a href='gallery.html' ONMOUSEOVER='self.status=\"Jump to the Photo Gallery\";return true'><img src='images/m-gallery.gif' alt='Photo Gallery' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  document.write("<a href='video.html' ONMOUSEOVER='self.status=\"Jump to the Video Gallery page\";return true'><img src='images/m-video.gif' alt='Video Gallery' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  document.write("<a href='resources.html' ONMOUSEOVER='self.status=\"Jump to the Coaching Resources page\";return true'><img src='images/m-resources.gif' alt='Coaching Resources' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  document.write("<a href='forsale.html' ONMOUSEOVER='self.status=\"Jump to the For Sale page\";return true'><img src='images/m-forsale.gif' alt='For Sale' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  document.write("<a href='links.html' ONMOUSEOVER='self.status=\"Jump to the links page\";return true'><img src='images/m-links.gif' alt='Links' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  document.write("<a href='coaches/coaches.html' ONMOUSEOVER='self.status=\"Jump to the password restricted coaches page\";return true'><img src='images/m-restrict.gif' alt='Restricted' nosave border=0 height=32 width=131 align=abscenter></a><br>")
  if (home != "NOHOME"){
    document.write("<a href='index.html' ONMOUSEOVER='self.status=\"Return to the home page\";return true'><img src='images/m-home.gif' alt='Home Page' nosave border=0 height=32 width=131 align=abscenter></a><br>")

document.write("<br><hr><center><b>Affiliated to</b><br>London Borough of<br>Hillingdon Youth Service<br><b>&amp;</b><br>")
document.write("<a href='http://www.bcu.org.uk' ONMOUSEOVER='self.status=\"Leave this site and go to the BCU national web site\";return true'><img src='images/bcu-logo.gif' alt='BCU Home Page' nosave border=0 height=45 width=98 align=abscenter></a></center><hr><br>&nbsp;")

  } 
}

function InitPage(){}

function Webmaster(){document.write("<h5>For queries regarding these pages contact the HCC <a href='mailto:%77%65%62%6D%61%73%74%65%72%40%68%6A%63%63%2E%6F%72%67%2E%75%6B' ONMOUSEOVER='self.status=\"Send mail to the webmaster\";return true'>webmaster</a><br>&nbsp;<br><a href='http://www.freevirtualservers.com/'>Web hosting by FreeVirtualServers</a></h5>")}

function LastUpdated(){
  var month_names = new Array("Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec");
  var now         = new Date(document.lastModified);
  var prnt_stuff_date;
  var cen_str;
  var TheYear=now.getYear();
  var stuff = new Array();
  stuff[1]="1<SUP>st</SUP>";
  stuff[2]="2<SUP>nd</SUP>";
  stuff[3]="3<SUP>rd</SUP>";
  stuff[21]="21<SUP>st</SUP>";
  stuff[22]="22<SUP>nd</SUP>";
  stuff[23]="23<SUP>rd</SUP>";
  stuff[31]="31<SUP>st</SUP>";
    if ((now.getDate()==1)||(now.getDate()==2)||(now.getDate()==3)||(now.getDate()==21)||(now.getDate()==22)||(now.getDate()==23) ||(now.getDate()==31)) 
          prnt_stuff_date = stuff[now.getDate()];
  else
          prnt_stuff_date = now.getDate()+"<SUP>th</SUP>";
  if(TheYear>=100 && TheYear<=1999)
    cen_str=TheYear+1900;
  else
    cen_str=TheYear;  
  print_str = prnt_stuff_date+" "+month_names[now.getMonth()]+" "+cen_str;
  document.write("<center><font face='Arial,Helvetica'><font size=-1>"+print_str+"</font></font></center>");
}


function OpenAdvert(file,size){
  var WinVar = "toolbar=no,location=no,status=no,scrollbars=no,directories=no, menubar=no,resizable=yes,copyhistory=no, "
  if(size=="P")
    {WinVar = WinVar + "width=700 height=950";}
  else
    {WinVar = WinVar + "width=950 height=700";}
  PhotoWindow=window.open('','PhotoWindow',WinVar);
  if(size=="P")
    {PhotoWindow.resizeTo(700,950);}
  else
    {PhotoWindow.resizeTo(950,700);}
  PhotoWindow.focus();
  PhotoWindow.status="All photos copyright Hillingdon Junior Canoe Club";
  PhotoWindow.document.close()
}

function OpenPicture(file,size){
  var WinVar = "toolbar=no,location=no,status=no,scrollbars=no,directories=no, menubar=no,resizable=yes,copyhistory=no, "
  if(size=="P")
    {WinVar = WinVar + "width=700 height=950";}
  else
    {WinVar = WinVar + "width=950 height=700";}
  PhotoWindow=window.open('','PhotoWindow',WinVar);
  if (PhotoWindow.document.photo)
    {PhotoWindow.document.photo.src = "photos/" + file;}
  else
    {PhotoWindow.document.writeln(unescape('%3C%68%74%6D%6C%3E'));     //ht
     PhotoWindow.document.writeln(unescape('%3C%68%65%61%64%3E'));     //he
     PhotoWindow.document.writeln("<title>Photo Copyright Hillingdon Junior Canoe Club</title>");
     PhotoWindow.document.writeln(unescape('%3C%2F%68%65%61%64%3E'));  //sl-he
     PhotoWindow.document.writeln(unescape('%3C%62%6F%64%79%3E'));     //bo
     PhotoWindow.document.writeln("<center><img SRC='photos/"+file+"' name='photo' alt='Photo'></center>");
     PhotoWindow.document.writeln(unescape('%3C%2F%62%6F%64%79%3E'));  //sl-bo
     PhotoWindow.document.writeln(unescape('%3C%2F%68%74%6D%6C%3E'));} //sl-ht
  if(size=="P")
    {PhotoWindow.resizeTo(700,950);}
  else
    {PhotoWindow.resizeTo(950,700);}
  PhotoWindow.focus();
  PhotoWindow.status="All photos copyright Hillingdon Junior Canoe Club";
  PhotoWindow.document.close()
}

function ThisYear(){var now=new Date();now.setTime(now.getTime());var cen_str;var TheYear=now.getYear();if(TheYear>=100 && TheYear<=1999) cen_str=TheYear+1900;else cen_str=TheYear;return cen_str;}

function BookmarkMe() {}
// function BookmarkMe() {docloc="http:\\\\www.hjcc.org.uk";doctit="Hillingdon Junior Canoe Club";if (navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) >= 4){top.user.inpad=2;document.write('<input type=\"button\" value=\"Bookmark This Page\" onclick=\"javascript:window.external.AddFavorite(docloc,doctit)\">');}else{top.user.inpad=1;var msg = "Don't forget to bookmark us!";if(navigator.appName == "Netscape") msg += "  (CTRL-D)";document.write(msg);}}

function newwin(url){var hccwin = window.open(url,'hccwin');hccwin.focus();return true;}

function inc_pic(picname,maxpic) {
  var currentpic=eval("document.pic"+picname+".src");
  var currentval=eval("document.pic"+picname+".value");
  var currentobj=eval("document.pic"+picname);
  if (currentval){}else{currentval=1};
  if (currentval < maxpic) {currentval=currentval+1;} else {}
  currentobj.alt=currentval+" of "+maxpic+": Click to enlarge"
  currentobj.src="./photos/s"+picname+"-"+currentval+".jpg";
  currentobj.value=currentval;
}

function dec_pic(picname,maxpic) {
  var currentpic=eval("document.pic"+picname+".src");
  var currentval=eval("document.pic"+picname+".value");
  var currentobj=eval("document.pic"+picname);
  if (currentval){}else{currentval=1};
  if (currentval > 1) {currentval=currentval-1;} else {}
  currentobj.alt=currentval+" of "+maxpic+": Click to enlarge"
  currentobj.src="./photos/s"+picname+"-"+currentval+".jpg";
  currentobj.value=currentval;
}

function OpenPic(picname) {
  var currentval=eval("document.pic"+picname+".value");
  if (currentval){}else{currentval=1};
  var fname=picname+"-"+currentval+".jpg"
  OpenPicture(fname,'L');
}

function Credit() {document.write("<a href='http://www.freevirtualservers.com/'>Web hosting by FreeVirtualServers</a>")}

function OpenVideo(picname) {
  var vid_loc="http://www.youtube.com/v/"+picname+"&autoplay=1&hd=1"
  var WinVar = "toolbar=no,location=no,status=no,scrollbars=no,directories=no, menubar=no,resizable=yes,copyhistory=no,width=950,height=700"
  VideoWindow=window.open(vid_loc,'VideoWindow',WinVar);
  VideoWindow.focus();
  VideoWindow.status="All videos copyright Hillingdon Junior Canoe Club";
  videoWindow.document.close()

}
