// copyright www.fanzone.co.uk 2002.  All rights reserved.
<!--
/*
Disable right click script II (on images) - By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/
var gstrPopup='Copyright © 2001- 2005 FanZone.co.uk. All rights reserved.';
function disableclick(e) {
 if (document.all){
  if (event.button==2||event.button==3){
   if (event.srcElement.tagName=="IMG"){
    alert(gstrPopup);
    return false;
   }
  }
 }
 else if (document.layers){
  if (e.which == 3) {
   alert(gstrPopup);
   return false;
  }
 }
 else if (document.getElementById){
  if (e.which==3&&e.target.tagName=="IMG"){
   alert(gstrPopup);
   return false;
  }
 }
}
function associateimages(){
 for(i=0;i<document.images.length;i++)
  document.images[i].onmousedown=disableclick;
}
if (document.all||document.getElementById)
 document.onmousedown=disableclick
else if (document.layers)
 associateimages()
function trim(pText){
 return pText.replace(/^\s{1,}/, '').replace(/\s{1,}$/, '');
}
function displaySection(pTab){
 if(document.getElementById)
  showSection_W3C(pTab);
 else if (document.all)
  showSection_IE4(pTab);
}
function showAll(){
 if(document.getElementById)
  showAll_W3C();
 else if (document.all)
  showAll_IE4();
}
function showSection_W3C(pTab){
 if (location.href.indexOf('/prnt/')==-1){
  document.getElementById('mnuSection7').className='tabColour';
  for (var i=1; i<7; i++){
   var objTab=document.getElementById('divSection'+i);
   var objCell=document.getElementById('mnuSection'+i);
   if (objTab!=null){
    if (i==pTab){
     objTab.style.display='block';
     objCell.className='tabSelected';
    }else{
     objTab.style.display='none';
     objCell.className='tabColour';
    }
   }
  }
 }else{
  redirectToAnchor(pTab);
 }
}
function showSection_IE4(iTab){
 for (var i=1; i<7; i++){
  var tabObj=document.all('divSection'+i);
  if (tabObj!=null){
   if (i==iTab){
    tabObj.style.display='block';
    document.all.tblTabs.rows[0].cells[i-1].className='tabSelected';
   }else{
    tabObj.style.display='none';
    document.all.tblTabs.rows[0].cells[i-1].className='tabColour';
   }
  }else{
   location.href=location.href.substring(0,location.href.indexOf('#')) + '#' +iTab;
  }
 }
}
function showAll_W3C(){ 
 for (var i=1; i<7; i++){
  var objTab=document.getElementById('divSection'+i);
  var objCell=document.getElementById('mnuSection'+i);
  if (objTab!=null) objTab.style.display='block';
  if (objCell.className!='tabNone') objCell.className='tabColour';
 }
 document.getElementById('mnuSection7').className='tabSelected';
}
function showAll_IE4(){ 
 for (var i=1; i<7; i++){
  var tabObj=document.all('divSection'+i);
  var objCell=document.all.tblTabs.rows[0].cells[i-1];
  if (tabObj!=null){tabObj.style.display='block'}
  if(objCell.className!="tabNone"){objCell.className='tabColour'}
 }
 document.all.tblTabs.rows[0].cells[6].className='tabSelected';
}
function redirectToAnchor(pTab){
 var intHash = location.href.indexOf('#');
 if (intHash==-1){
  location.href=location.href + '#' + pTab;
 }else{
  location.href=location.href.substring(0,intHash) + '#' + pTab;
 }
}
// cookie scripts
function saveRoute(){
 if(trim(strSport)!='' && strSport!='National~Stadiums'){
   var dteExpires=new Date();
   dteExpires.setTime(dteExpires.getTime()+(365*24*60*60*1000));
   setCookie('sport', strSport, dteExpires, null, '/')
   setCookie('league', strLeague, dteExpires, null, '/')
 }
}
function setCookie(pName, pValue, pExpires, pDomain, pPath){
  var strTotal = pName + '=' + pValue +
  ((pExpires) ? '; expires=' + pExpires.toGMTString() : '') + 
  ((pPath) ? '; path=' + pPath : '') + 
  ((pDomain) ? '; domain=' + pDomain : '');
  document.cookie=strTotal;
}
// misc scripts
function searchGo(pQuery){
 if (trim(pQuery)==''){
  alert('You must specify a search term before proceeding.');
  return false;
 }else{
  return true;
 }
}
// header highlight scripts
function hlMenu(pNo){
 if(document.getElementById){
  var objCell=document.getElementById('hdr'+pNo);
  var objCellLeft=document.getElementById('hdr'+(pNo-1));
  var objCellRight=document.getElementById('hdr'+(pNo+1));
  if(objCell.className=='hdrMenu'){
   hl('hdrMenuHL', objCell, objCellLeft, objCellRight, 'hLeft.gif', 'hRight.gif', pNo);
  }else{
   hl('hdrMenu', objCell, objCellLeft, objCellRight, 'hMiddle.gif', 'hMiddle.gif', pNo);
  }
 }
}
function hl(pStyle, pCell, pCellLeft, pCellRight, pImgLeft, pImgRight, pNo){
 var imgLeft=document.getElementById('hdrImg'+(pNo-1));
 var imgRight=document.getElementById('hdrImg'+(pNo+1));
 imgLeft.src=pImgLeft;
 imgRight.src=pImgRight;
 pCell.className=pStyle;
 pCellLeft.className=pStyle;
 pCellRight.className=pStyle;
}
function createBookmark(){
 if (window.external){
  external.AddFavorite(location.href, document.title)
 }else{
  alert('Please press Ctrl+D to bookmark this page.')
 } 
}
function gotoValue(pURL){
 if(trim(pURL)!=''){location.href=pURL}
}
// -->
