var defaultMenuWidth="210px"

 //--------------------------------set default menu width.

var linkset=new Array()
//---------------------------------SPECIFY MENU SETS AND THEIR LINKS

//---------global sites

linkset[0]='<a href="http://www.andalucian-experience.co.uk" target="_blank">Andalucian Experience</a>'
linkset[0]+='<a href="http://www.horizonte-vertical.net"target="_blank">Horizonte Vertical</a>'
linkset[0]+='<a href="http://www.hotelcaliforniaspain.com"target="_blank">Hotel California</a>'
linkset[0]+='<a href="http://www.doyouwanna.net"target="_blank">Do you wanna</a>'
linkset[0]+='<a href="http://www.flypiedrahita.com"target="_blank">Fly Piedrahita</a>'
linkset[0]+='<a href="http://www.escapexc.com"target="_blank">Escape-XC</a>'
linkset[0]+='<a href="http://www.maison-du-moulin.co.uk"target="_blank">Annecy-mdm</a>'
linkset[0]+='<a href="http://www.lastresort.info"target="_blank">The Last Resort</a>'
linkset[0]+='<a href="http://www.xtc-paragliding.com"target="_blank">XTC-Slovenia</a>'
linkset[0]+='<a href="http://www.lejair.com"target="_blank">Lijair</a>'
linkset[0]+='<a href="http://www.austrianarena.com"target="_blank">Austrian Arena</a>'
linkset[0]+='<a href="http://www.fly1166.com"target="_blank">Clear Skies-Pyrenees</a>'
linkset[0]+='<a href="http://www.flyspain.co.uk"target="_blank">Fly Spain</a>'
linkset[0]+='<a href="http://www.ikarus.com.tr/english/index.htm"target="_blank">Oludeniz:Live</a>'
linkset[0]+='<a href="http://www.skynomad.com/holiday_cross-country.htm"target="_blank">SkyNomad:Bulgaria</a>'
linkset[0]+='<a href="http://www.absolute-adventure.com/engleski/letenje.php"target"_blank">Absolute:Croatia</a>'

//-------------asia  http://www.nirvanaadventures.com/home/home.html

linkset[1]='<a href="http://www.nepal-paragliding.com"target="_blank">Nepal</a>'
linkset[1]+='<a href="http://www.pgashram.com/paragliding.html"target="_blank">Ashram:India</a>'
linkset[1]+='<a href="http://www.adventure-x.com"target="_blank">Adventure-X</a>'
linkset[1]+='<a href="http://www.flyingfever.net"target="_blank">Flying Fever</a>'
linkset[1]+='<a href="http://www.hkpa.net"target="_blank">Hong Kong</a>'
linkset[1]+='<a href="http://www.wingstaiwan.com/"target="main">Wings:Taiwan</a>'
linkset[1]+='<a href="http://www.nirvanaadventures.com/home/home.html"target="main">Nirvana:India</a>'
linkset[1]+='<a href="http://www.thai-paragliding.com/"target="_blank">ThaiPara-Thailand</a>'
linkset[1]+='<a href="http://www.airfield.co.kr/english/English_index.asp"target="_blank">Airfield-Korea</a>'
linkset[1]+='<a href="http://parafly-china.com/about%20us.htm"target="_blank">Parafly-China</a>'


//----------------------Annecy----------------photopage-------------------------------

linkset[7]='<a href="index.php?page=new_annecy&amp;section=photos"target="_self">Annecy 2006</a>'
linkset[7]+='<a href="index.php?page=new_annecy07&amp;section=photos"target="_self">Annecy 2007</a>'

//----------------------extras----------------photopage-------------------------------

linkset[8]='<a href="index.php?page=new_macedonia3&amp;section=photos"target="_self">Acro Macedonia</a>'
linkset[8]+='<a href="index.php?page=new_turkey3&amp;section=photos"target="_self">Olu Deniz</a>'

//---------------------------towing08-------------------------------------------------

linkset[9]='<a href="index.php?page=new_hangtow3&amp;section=photos"target="_self">Towing&amp;Hangies(old)</a>'
linkset[9]+='<a href="index.php?page=new_towing08&amp;section=photos"target="_self">New Towing  Crew 2008</a>'

//----------------------Piedrahita-------xc---tandem-------------------------------------

linkset[11]='<a href="index.php?page=new_espania&amp;section=photos"target="_self">Espania Various</a>'
linkset[11]+='<a href="index.php?page=new_atandemxc&amp;section=photos"target="_self">Piedrahita Open</a>'

//---------------------------------------------------------------------

linkset[12]='<a href="index.php?page=new_espania3&amp;section=photos"target="_self">Espania Various</a>'
linkset[12]+='<a href="index.php?page=new_atandemxc3&amp;section=photos"target="_self">Piedrahita Open</a>'

//---------------------------------------------------------------------------------

linkset[13]='<a href="index.php?page=new_macedonia3&amp;section=photos"target="_self">Acro Macedonia</a>'
linkset[13]+='<a href="index.php?page=new_turkey3&amp;section=photos"target="_self">Olu Deniz</a>'

//-----------------------------------------------------------------------------------

linkset[14]='<a href="index.php?page=new_hangtow3&amp;section=photos"target="_self">Towing&amp;Hangies(old)</a>'
linkset[14]+='<a href="index.php?page=new_towing08&amp;section=photos"target="_self">New Towing  Crew 2008</a>'

//-------------------------------------------------------------------------------------

linkset[15]='<a href="index.php?page=new_annecy&amp;section=photos">Annecy 2006</a>'
linkset[15]+='<a href="index.php?page=new_annecy07&amp;section=photos">Annecy 2007</a>'

//-------------------------------------------------------------------------------------

linkset[16]='<a href="index.php?page=new_thurnham3&amp;section=photos"target="_self">Thurnham:Detling</a>'
linkset[16]+='<a href="index.php?page=new_thurnhamxc&amp;section=photos"target="_self">Xc:Thurnham</a>'



//-------------------------------skybirds------------------

linkset[17]='<a href="../skybird/skybird_may_09.pdf"target="_blank">Skybird May 2009.pdf</a>'
linkset[17]+='<a href="../skybird/skybird_march_09.pdf"target="_blank">Skybird March 2009.pdf</a>'
linkset[17]+='<a href="../skybird/skybird_jan_09.pdf"target="_blank">Skybird January 2009.pdf</a>'
linkset[17]+='<a href="../skybird/skybird_july_08.pdf"target="_blank">Skybird July 2008.pdf</a>'
//------------------------------acuracy.pdf--------------------------------------------------

linkset[18]='<a href="../skybird/2009_CAN_Flier.pdf"target="_blank">2009 Classic National Accuracy Championships Flier</a>'
linkset[18]+='<a href="../skybird/2009_CAN_Main_Entry_Form.pdf"target="_blank">2009 Classic National Accuracy Championships Main Entry Form</a>'
linkset[18]+='<a href="../skybird/2009_CAN_Novice_Entry_Form.pdf"target="_blank">2009 Classic National Accuracy Championships Novice Entry Form</a>'
linkset[18]+='<a href="../skybird/2009_Wing_Affidavit.pdf"target="_blank">2009 Wing Affidavit (required)</a>'
linkset[18]+='<a href="../skybird/Direction_N_Luffenham.pdf"target="_blank">2009 Directions &amp; Map to North Luffenham Airfield (The Competition Site)</a>'
linkset[18]+='<a href="../skybird/2009_NAC_Programme.pdf"target="_blank">2009 Programme,39th BHPA National &amp; International Classic Accuracy Competition</a>'

//-------------------------------skybirds--php-open-index-page-------------

linkset[19]='<a href="skybird/skybird_may_09.pdf"target="_blank">Skybird May 2009.pdf</a>'
linkset[19]+='<a href="skybird/skybird_march_09.pdf"target="_blank">Skybird March 2009.pdf</a>'
linkset[19]+='<a href="skybird/skybird_jan_09.pdf"target="_blank">Skybird January 2009.pdf</a>'
linkset[19]+='<a href="skybird/skybird_july_08.pdf"target="_blank">Skybird July 2008.pdf</a>'

//-----------------------------------the warren photos--------------------------------

linkset[20]='<a href="index.php?page=new_thewarren3B&amp;section=photos"target="_self">Folkestone Cliffs 2009</a>'
linkset[20]+='<a href="index.php?page=new_thewarren3&amp;section=photos"target="_self">Folkestone Cliffs 2007-08</a>'

//---------------------------non dfhgc but uk site photos-----------------------------------------

linkset[21]='<a href="index.php?page=andyprice_mainlid&amp;section=photos"target="_self">Andy Price - Snow 2009</a>'

//----------------------------new xc league-----------------------
linkset[22]='<a href="http://www.xcleague.com/xc/index.php"target="_blank">UK XC League 2010(beta)</a>'
linkset[22]+='<a href="http://www.pgcomps.org.uk/"target="_blank">UK XC League 2009(old)</a>'
//----------------------------------------------------------//
var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element is contained in another
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

