var maxwidth=600;
var barwidth=228;
var barheight=82;

var browser = '';
var usr = 0;

// Detect browser
if (navigator.appName.indexOf('Microsoft') != -1) { browser = 'IE' }
else if (navigator.appName.indexOf('Netscape') != -1) { browser = 'Netscape' }
else { browser = 'IE' } // bit pointless
var version = navigator.appVersion;

function moveBar(andHeight) {
if (browser=='IE') { var w = document.body.clientWidth; var h = document.body.clientHeight; }
else if (browser=='Netscape') { var w = window.innerWidth - 20; var h = window.innerHeight; }
else { var w = 800; var h = 400; }

if (document.getElementById) { var photostrip = document.getElementById('photostrip') }
else if (document.all) { var photostrip = document.all['photostrip'] }
else if (document.layers) { var photostrip = document.layers['photostrip'] }

if (photostrip)
  {
  if (w-barwidth > maxwidth) { photostrip.style.left = w-barwidth }
  if (barheight) { photostrip.style.top = barheight }
  if (andHeight) { photostrip.style.height = h-barheight-12 }
  }
}

function printMenu(thispage) {
document.write('<table cellpadding=0 cellspacing=0 border=0 onMouseOver="stayopen=1"><tr height=2><td colspan=15><img src="images/mask.gif" alt="" width=400 height=4 border=0></td></tr><tr valign=top>');

if (thispage=='home') { document.write('<td><img src="images/bhome1.gif" alt="" width=43 height=16 border=0 onMouseOver="showMenu(\'home\')" onMouseOut="hideMenu(\'home\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=home.html"><img src="images/bhome0.gif" alt="" width=43 height=16 border=0 onMouseOver="this.src=\'images/bhome1.gif\'; showMenu(\'home\')" onMouseOut="this.src=\'images/bhome0.gif\'; hideMenu(\'home\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

if (thispage=='info') { document.write('<td><img src="images/binfo1.gif" alt="" width=80 height=18 border=0 onMouseOver="showMenu(\'info\')" onMouseOut="hideMenu(\'info\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=info.html"><img src="images/binfo0.gif" alt="" width=80 height=18 border=0 onMouseOver="this.src=\'images/binfo1.gif\'; showMenu(\'info\')" onMouseOut="this.src=\'images/binfo0.gif\'; hideMenu(\'info\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

if (thispage=='gallery') { document.write('<td><img src="images/bgallery1.gif" alt="" width=53 height=21 border=0 onMouseOver="showMenu(\'gallery\')" onMouseOut="hideMenu(\'gallery\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=gallery"><img src="images/bgallery0.gif" alt="" width=53 height=21 border=0 onMouseOver="this.src=\'images/bgallery1.gif\'; showMenu(\'gallery\')" onMouseOut="this.src=\'images/bgallery0.gif\'; hideMenu(\'gallery\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

if (thispage=='portfolios') { document.write('<td><img src="images/bportfolios1.gif" alt="" width=66 height=16 border=0 onMouseOver="showMenu(\'portfolios\')" onMouseOut="hideMenu(\'portfolios\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=portfolios.html"><img src="images/bportfolios0.gif" alt="" width=66 height=16 border=0 onMouseOver="this.src=\'images/bportfolios1.gif\'; showMenu(\'portfolios\')" onMouseOut="this.src=\'images/bportfolios0.gif\'; hideMenu(\'portfolios\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

if (thispage=='brochure') { document.write('<td><img src="images/bbrochure1.gif" alt="" width=150 height=19 border=0 onMouseOver="showMenu(\'brochure\')" onMouseOut="hideMenu(\'brochure\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=brochure.html"><img src="images/bbrochure0.gif" alt="" width=150 height=19 border=0 onMouseOver="this.src=\'images/bbrochure1.gif\'; showMenu(\'brochure\')" onMouseOut="this.src=\'images/bbrochure0.gif\'; hideMenu(\'brochure\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

if (thispage=='photostories') { document.write('<td><img src="images/bphotostories1.gif" alt="" width=92 height=16 border=0 onMouseOver="showMenu(\'photostories\')" onMouseOut="hideMenu(\'photostories\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=photostories.html"><img src="images/bphotostories0.gif" alt="" width=92 height=16 border=0 onMouseOver="this.src=\'images/bphotostories1.gif\'; showMenu(\'photostories\')" onMouseOut="this.src=\'images/bphotostories0.gif\'; hideMenu(\'photostories\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

if (thispage=='tutorials') { document.write('<td><img src="images/btutorials1.gif" alt="" width=59 height=16 border=0 onMouseOver="showMenu(\'tutorials\')" onMouseOut="hideMenu(\'tutorials\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=tutorials.html"><img src="images/btutorials0.gif" alt="" width=59 height=16 border=0 onMouseOver="this.src=\'images/btutorials1.gif\'; showMenu(\'tutorials\')" onMouseOut="this.src=\'images/btutorials0.gif\'; hideMenu(\'tutorials\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

if (thispage=='workshops') { document.write('<td><img src="images/bworkshops1.gif" alt="" width=79 height=19 border=0 onMouseOver="showMenu(\'workshops\')" onMouseOut="hideMenu(\'workshops\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=workshops.html"><img src="images/bworkshops0.gif" alt="" width=83 height=23 border=0 onMouseOver="this.src=\'images/bworkshops1.gif\'; showMenu(\'workshops\')" onMouseOut="this.src=\'images/bworkshops0.gif\'; hideMenu(\'workshops\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

if (thispage=='contact') { document.write('<td><img src="images/bcontact.gif" alt="" width=60 height=20 border=0 onMouseOver="showMenu(\'contact\')" onMouseOut="hideMenu(\'contact\')"></td>') }
else { document.write('<td><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=contactus.html"><img src="images/bcontact0.gif" alt="" width=60 height=20 border=0 onMouseOver="this.src=\'images/bcontact1.gif\'; showMenu(\'contact\')" onMouseOut="this.src=\'images/bcontact0.gif\'; hideMenu(\'contact\')"></a></td>') }
document.write('<td><img src="images/mask.gif" alt="" width=4 height=21 border=0></td>');

document.write('</tr></table>');

var currentLink=thispage;
printSubmenus();
}

var xpos = 0;
var left = 0;
var top = 0;
var right = 0;

var stayopen = 0;
var currentmenu = '';
var currentLink='';
var menuID = '';
var count = 0;

var substayopen = 0;
var currentsubmenu = '';
var currentSubLink='';
var submenuID = '';
var subcount = 0;

function showMenu(menuID) {
  if (currentmenu != '') { stayopen = 0; closeMenu(); }
  if (document.getElementById) { var element = document.getElementById(menuID).style }
  else if (document.all) { var element = document.all[menuID].style }
  else if (document.layers) { var element = document.layers[menuID] }

  element.visibility = 'visible';
  stayopen = 1;
  currentmenu = menuID;
}

function hideMenu(menuID) {
  stayopen = 0;
  if (document.getElementById) { var element = document.getElementById(menuID).style }
  else if (document.all) { var element = document.all[menuID].style }
  else if (document.layers) { var element = document.layers[menuID] }

  setTimeout("closeMenu()", 2000);
  element.stayopen = 0;
}

function closeMenu() {
  if (stayopen == 1) { setTimeout("closeMenu()", 2000); return; }
  if (!currentmenu) { return }

  closeSubMenu();

  if (document.getElementById) { var element = document.getElementById(currentmenu).style }
  else if (document.all) { var element = document.all[currentmenu].style }
  else if (document.layers) { var element = document.layers[currentmenu] }

  element.visibility = 'hidden';
  currentmenu = '';
}

function showSubMenu(submenuID) {
  if (currentsubmenu != '') { substayopen = 0; closeSubMenu(); }
  if (document.getElementById) { var element = document.getElementById(submenuID).style }
  else if (document.all) { var element = document.all[submenuID].style }
  else if (document.layers) { var element = document.layers[submenuID] }

  // Find position for sub menu
  if (document.getElementById) { var e = document.getElementById(currentmenuitem) }
  else if (document.all) { var e = document.all[currentmenuitem] }
  else if (document.layers) { var e = document.layers[currentmenuitem] }

  findPos(e);
  var width = e.offsetWidth;

  element.visibility = 'visible';
  element.left = left+width+2;
  element.top = top;
  stayopen = 1;
  currentsubmenu = submenuID;
}

function findPos(obj) {
var curleft = curtop = 0;
if (obj.offsetParent) {
  curleft = obj.offsetLeft
  curtop = obj.offsetTop
  while (obj = obj.offsetParent) {
    curleft += obj.offsetLeft
    curtop += obj.offsetTop
  }
}
left = curleft;
top = curtop;
}


function hideSubMenu(submenuID) {
  substayopen = 0;
  if (document.getElementById) { var element = document.getElementById(submenuID).style }
  else if (document.all) { var element = document.all[submenuID].style }
  else if (document.layers) { var element = document.layers[submenuID] }

  setTimeout("closeSubMenu()", 2000);
  element.stayopen = 0;
}

function closeSubMenu() {
  if (substayopen == 1) { setTimeout("closeSubMenu()", 2000); return; }
  if (!currentsubmenu) { return }

  if (document.getElementById) { var element = document.getElementById(currentsubmenu).style }
  else if (document.all) { var element = document.all[currentsubmenu].style }
  else if (document.layers) { var element = document.layers[currentsubmenu] }

  element.visibility = 'hidden';
  currentsubmenu = '';
  stayopen = 0;
  hideMenu(currentmenu);
}

function printSubmenus() {

printMenustart('home', -2);
printMenuitem('home.html', 'Home - Welcome');
printMenuitem('links', 'Links to Related Sites');
printMenuitem('contactus.html', 'Contact Us');
printMenuend();

printMenustart('info', 46);
printMenuitem('image.html', '01. What Makes a Good Image?', 0);
printMenuitem('crit.html', '01i RPS Licentiate Criteria', 0);
printMenuitem('succrps.html', '01ii Successful LRPS Panels', 0);
printMenuitem('.html', '01iia Ian Wright ARPS Panel', 0);
printMenuitem('failings.html', '01iii Common Failings', 0);
printMenuitem('projects.html', '01iv. Guest Photographers', 0);
printMenuitem('exem.html', '01v. Image Exemplars', 0);
printMenuitem('sheila.html', '01vi. Editing in Photoshop', 0);
printMenuitem('kitty.html', '01vi. The Making of an L Panel Kitty Wright', 0);
printMenuitem('bloggo.html', '01viia  Image Blog June-July 2010', 0);
printMenuitem('linksuse.html', '01viii Useful Links', 0);
printMenuitem('street.html', '01x. Street and Documentary Photography', 0);
printMenuitem('rpsgroup.html', '02i. Exeter Camera Club RPS Groups', 0);
printMenuitem('twoten.html', '02ii. Exeter Camera Club 2010 LRPS Group 1 Gallery', 0);
printMenuitem('twogallery.html', '02iii. Exeter Camera Club 2010 LRPS Group 2  Gallery', 0);
printMenuitem('di.html', '04. Exeter Camera Club Di Wilkins LRPS', 0);
printMenuitem('js.html', '05. Exeter Camera Club John Sanders LRPS', 0);
printMenuitem('pell.html', '06. Exeter Camera Club Di Pell LRPS', 0);
printMenuitem('fran.html', '07. Exeter Camera Club : Fran Taylor LRPS', 0);
printMenuitem('mel.html', '08. Exeter Camera Club  Melanie McLoughlin LRPS', 0);
printMenuitem('ken.html', '09. Exeter Camera Club Ken Barrett ARPS', 0);
printMenuitem('ship.html', '10. Exeter Camera Club John Shipman ARPS', 0);
printMenuitem('shel.html', '12. Exeter Camera Club Sheila Haycox', 0);
printMenuitem('trev.html', '14. Exeter Camera Club Trevor Cullen', 0);
printMenuitem('snow.html', '15. Exeter Camera Club David Snowden', 0);
printMenuitem('jp.html', '16. Exeter Camera Club John Perriam', 0);
printMenuitem('info.html', 'Info', 0);

printMenuend();

printMenustart('gallery', 131);
printMenuitem('gallery&sid=134', '1. Portfolio 2010', 0);
printMenuitem('gallery&sid=128', '2. Aida Camp, Bethlehem 2008', 0);
printMenuitem('gallery&sid=135', '3. India 2009', 0);

printMenuend();

printMenustart('portfolios', 188);
printMenuitem('', 'Cuba by subject', 'submenu1');

printMenuitem('', 'Havana by location', 'submenu2');

printMenuitem('', 'Nepal by location', 'submenu3');

printMenuitem('', 'Thailand by location', 'submenu4');

printMenuitem('', 'Cuba by location', 'submenu5');

printMenuitem('', 'Brochure Photography by location', 'submenu6');

printMenuitem('', 'Hong Kong by subject', 'submenu7');

printMenuitem('', 'Venice by location', 'submenu8');


printMenuend();

printMenustart('brochure', 258);

printMenuend();

printMenustart('photostories', 413);
printMenuitem('', 'Photo Stories Palestine', 'submenu9');

printMenuitem('', 'Photo Stories Morocco', 'submenu10');

printMenuitem('', 'Photo Stories Nepal', 'submenu11');

printMenuitem('', 'Photo Stories Cuba', 'submenu12');

printMenuitem('', 'Photo Stories Europe', 'submenu13');

printMenuitem('', 'Photo Stories USA', 'submenu14');

printMenuitem('', 'Photo Stories UK', 'submenu15');

printMenuitem('', 'Photo Stories Egypt', 'submenu16');

printMenuitem('', 'Photo Stories Portraits', 'submenu17');

printMenuitem('', 'Photo Stories : An Introduction', 'submenu18');


printMenuend();

printMenustart('tutorials', 510);
printMenuitem('think.html', '1. Thinking Photography', 0);
printMenuitem('vision.html', '2. Photography and Personal Vision', 0);
printMenuitem('tutorials.html', '3. An Introduction to the Tutorials', 0);
printMenuitem('encounters.html', '4. Encounters and Engagement', 0);
printMenuitem('', '5. Design Elements', 'submenu19');

printMenuitem('', '6. Web Resources', 'submenu20');

printMenuitem('', '7. Travel Photography Subjects', 'submenu21');

printMenuitem('', 'Sources of Information', 'submenu22');

printMenuitem('', '9. Photographic Wisdom (Selected Quotes)', 'submenu23');


printMenuend();

printMenustart('workshops', 574);
printMenuitem('workshops.html', 'Workshops 01 - Introduction to Trips for 2010-2011', 0);
printMenuitem('approach.html', 'Workshops 02 : My Approach to Travel Photography', 0);
printMenuitem('structure.html', 'Workshops 03 : Location Photography', 0);
printMenuitem('streetphoto.html', 'Workshops 03i : Street Photography', 0);
printMenuitem('bio.html', 'Workshops 03ii  Ian Wright Biography', 0);
printMenuitem('booking.html', 'Workshops 04 : Booking Process', 0);
printMenuitem('trips.html', 'Workshops 05:  Trip Itineraries and Details', 0);
printMenuitem('india.html', 'Workshops 06 : India Through the Lens', 0);
printMenuitem('nepal.html', 'Workshops 07 : Nepal Through the Lens', 0);
printMenuitem('combined.html', 'Workshops 08: Nepal and India Combined', 0);
printMenuitem('viet.html', 'Workshops 09 : Viet Nam Through the Lens', 0);
printMenuitem('sapa.html', 'Workshops 10 : Sapa Extension to Viet Nam Through the Lens', 0);
printMenuitem('cubaone.html', 'Workshops 11 : Cuba Through the Lens', 0);
printMenuitem('west.html', 'Workshops 12 : Cuba West Through the Lens', 0);
printMenuitem('est.html', 'Workshops 13 : Cuba East Through the Lens', 0);
printMenuitem('turkey.html', 'Workshops 14 : Turkey Through the Lens', 0);
printMenuitem('las.html', 'Workshops 15: Cambodia and Laos', 0);
printMenuitem('camcmb.html', 'Workshops 16 : Cambodia, Laos and Viet Nam', 0);
printMenuitem('mor.html', 'Workshops 18  : Morocco 2009', 0);
printMenuitem('reflects.html', 'Workshops 19 :  Cuba 2009 - A Photographer Reflects', 0);
printMenuitem('indgall.html', 'Workshops 20 : India Gallery', 0);
printMenuitem('cubgall.html', 'Workshops 21 : Cuba Gallery', 0);
printMenuitem('nepgl.html', 'Workshops 22:Nepal Gallery', 0);

printMenuend();

printMenustart('contact', 658);
printMenuitem('contactus.html', 'Contact Us');
printMenuend();


printSubMenustart('submenu1');
printSubMenuitem('portfolio&sid=86', 'A Gallery of Cuban Images 2007 Part 1');
printSubMenuitem('portfolio&sid=87', 'A Gallery of Cuban Images 2007 Part 2');
printSubMenuitem('portfolio&sid=90', 'A Gallery of Cuban Street Photography 2007 Part 1');
printSubMenuitem('portfolio&sid=91', 'A Gallery of Cuban Street Photography 2007 Part 2');
printSubMenuitem('portfolio&sid=82', 'A Gallery of Cuban Streetscapes 2007  Part 1');
printSubMenuitem('portfolio&sid=83', 'A Gallery of Cuban Streetscapes 2007 Part 2');
printSubMenuitem('portfolio&sid=105', 'A Photographic Tour of Cuba 2007');
printSubMenuitem('portfolio&sid=92', 'A Portrait of Cuba 2007 Part 1');
printSubMenuitem('portfolio&sid=93', 'A Portrait of Cuba 2007 Part 2');
printSubMenuitem('portfolio&sid=94', 'A Portrait of Cuba 2007 Part 3');
printSubMenuitem('portfolio&sid=85', 'American Cars : Details 2007');
printSubMenuitem('portfolio&sid=84', 'American Cars, Cuban Streets 2007');
printSubMenuitem('portfolio&sid=98', 'Cuba : Buses, Bikes and Trains 2007');
printSubMenuitem('portfolio&sid=99', 'Cuba : Hotels 2007');
printSubMenuitem('portfolio&sid=101', 'Cuba : Museums 2007');
printSubMenuitem('portfolio&sid=102', 'Cuba : Schools 2007');
printSubMenuitem('portfolio&sid=88', 'Cuba in Monochrome 2007 Part 1');
printSubMenuitem('portfolio&sid=89', 'Cuba in Monochrome 2007 Part 2');
printSubMenuitem('portfolio&sid=106', 'Cuban Buildings and Architecture 2007');
printSubMenuitem('portfolio&sid=100', 'Cuban Interiors 2007');
printSubMenuitem('portfolio&sid=107', 'Cuban Landscapes 2007');
printSubMenuitem('portfolio&sid=74', 'GAP Travellers 2007 Cuba Colonial');
printSubMenuitem('portfolio&sid=75', 'GAP Travellers 2007 Cuba Libre');
printSubMenuitem('portfolio&sid=123', 'Viva Cuba Libre : Political Signs and Slogans');

printSubMenuend();

printSubMenustart('submenu2');
printSubMenuitem('portfolio&sid=125', 'A Photographic Tour of Havana 2007');
printSubMenuitem('portfolio&sid=109', 'Havana  Cuba The Capitolio and Vicinity 2007');
printSubMenuitem('portfolio&sid=55', 'Havana Cuba 2007 Bahia de la Habana');
printSubMenuitem('portfolio&sid=108', 'Havana Cuba 2007 Buildings and Architecture');
printSubMenuitem('portfolio&sid=57', 'Havana Cuba 2007 Market on Tacon');
printSubMenuitem('portfolio&sid=111', 'Havana Cuba 2007 Museo de la Revolucion and Vicinity');
printSubMenuitem('portfolio&sid=58', 'Havana Cuba 2007 Necropolis de Colon');
printSubMenuitem('portfolio&sid=112', 'Havana Cuba 2007 Old Town Streets');
printSubMenuitem('portfolio&sid=113', 'Havana Cuba 2007 Parque Central and Vicinity');
printSubMenuitem('portfolio&sid=60', 'Havana Cuba 2007 Parque Morro-Cabana');
printSubMenuitem('portfolio&sid=114', 'Havana Cuba 2007 Paseo del Prado and Vicinity');
printSubMenuitem('portfolio&sid=61', 'Havana Cuba 2007 Plaza de Armas');
printSubMenuitem('portfolio&sid=77', 'Havana Cuba 2007 Plaza de la Catedral');
printSubMenuitem('portfolio&sid=80', 'Havana Cuba 2007 Plaza del Christo');
printSubMenuitem('portfolio&sid=110', 'Havana Cuba 2007 Plaza Veija');
printSubMenuitem('portfolio&sid=63', 'Havana Cuba 2007 Street Entertainers Havana Vieja');
printSubMenuitem('portfolio&sid=64', 'Havana Cuba 2007 Street Photography');
printSubMenuitem('portfolio&sid=65', 'Havana Cuba 2007 The Malecon');
printSubMenuitem('portfolio&sid=56', 'Havana Cuba 2007 The Nacional and Along the Malecon');
printSubMenuitem('portfolio&sid=66', 'Havana Cuba 2007 Universidad de Habana and Vicinity');
printSubMenuitem('portfolio&sid=124', 'Havana Cuba 2007 Vedado');
printSubMenuitem('portfolio&sid=67', 'Havana Cuba 2007 Wedding on Paseo del Prado');

printSubMenuend();

printSubMenustart('submenu3');
printSubMenuitem('portfolio&sid=126', 'ARPS in Travel Photography 2006');
printSubMenuitem('portfolio&sid=12', 'Nepal Bhaktapur');
printSubMenuitem('portfolio&sid=15', 'Nepal Children of the Kathmandu Valley');
printSubMenuitem('portfolio&sid=20', 'Nepal Pathan');
printSubMenuitem('portfolio&sid=24', 'Nepal Town and Country');

printSubMenuend();

printSubMenustart('submenu4');
printSubMenuitem('portfolio&sid=13', 'Bangkok Royal Palace and Temples 2007');

printSubMenuend();

printSubMenustart('submenu5');
printSubMenuitem('portfolio&sid=96', 'Baracoa, Cuba 2007, Part 1');
printSubMenuitem('portfolio&sid=97', 'Baracoa, Cuba 2007, Part 2');
printSubMenuitem('portfolio&sid=48', 'Camaguey Cuba Street Photography 2007');
printSubMenuitem('portfolio&sid=54', 'Manaca Iznaga Cuba Old Sugar Plantation');
printSubMenuitem('portfolio&sid=116', 'Pinar del Rio and Maria La Gorda Cuba');
printSubMenuitem('portfolio&sid=68', 'Santa Clara Cuba Monumento al Che');
printSubMenuitem('portfolio&sid=69', 'Santa Clara Cuba Parque Vidal');
printSubMenuitem('portfolio&sid=70', 'Santa Clara Cuba Revolutionary Sites');
printSubMenuitem('portfolio&sid=71', 'Santa Clara Cuba Street Photography');
printSubMenuitem('portfolio&sid=117', 'Santiago Cuba  Architecture and Sites of Interest');
printSubMenuitem('portfolio&sid=118', 'Santiago Cuba Musicians');
printSubMenuitem('portfolio&sid=119', 'Santiago Cuba Street Photography');
printSubMenuitem('portfolio&sid=121', 'Trinidad Cuba Part 1');
printSubMenuitem('portfolio&sid=122', 'Trinidad Cuba Part 2');
printSubMenuitem('portfolio&sid=103', 'Vinales Valley Part 1');
printSubMenuitem('portfolio&sid=104', 'Vinales Valley Part 2');
printSubMenuitem('portfolio&sid=95', 'Vinales Village, Cuba');

printSubMenuend();

printSubMenustart('submenu6');
printSubMenuitem('portfolio&sid=17', 'Greece The Ancient Sites: Greece The Ancient Sites');
printSubMenuitem('portfolio&sid=16', 'Ski Season: Ski Brochure');
printSubMenuitem('portfolio&sid=29', 'Sovereign Hill: Sovereign Hill, Ballarat, Victoria');
printSubMenuitem('portfolio&sid=14', 'VSO in Nepal: VSO in Nepal');

printSubMenuend();

printSubMenustart('submenu7');
printSubMenuitem('portfolio&sid=19', 'Hong Kong 2007 Brides and Maids');

printSubMenuend();

printSubMenustart('submenu8');
printSubMenuitem('portfolio&sid=21', 'Venice Carnevale');
printSubMenuitem('portfolio&sid=23', 'Venice Carnevale Portraits');

printSubMenuend();

printSubMenustart('submenu9');
printSubMenuitem('boy.html', 'A Boy Looks On : Fatah Rally, Bethlehem');
printSubMenuitem('west.html', 'Fatah Activist, The West Bank');
printSubMenuitem('chalking.html', 'Girl Chalking, Aida Camp, Bethlehem');
printSubMenuitem('nursery.html', 'Girl in a Nursery, Bethlehem');
printSubMenuitem('hand.html', 'Handshake, Aida Camp, Bethlehem');
printSubMenuitem('tomatoes.html', 'Selling Tomatoes, Bethlehem');
printSubMenuitem('gang.html', 'The Gang, Aida Camp, Bethlehem');
printSubMenuitem('flag.html', 'The National Flag, Aida Camp, Bethlehem');
printSubMenuitem('wall.html', 'The Separation Wall, Aida Camp, Bethehem');

printSubMenuend();

printSubMenustart('submenu10');
printSubMenuitem('shopkeeper.html', 'A Portrait of a Shopkeeper, Meknes, Morocco');
printSubMenuitem('ait.html', 'Ait Benhaddou');
printSubMenuitem('weavers.html', 'Carpet Weavers, Todra Gorge, Morocco');

printSubMenuend();

printSubMenustart('submenu11');
printSubMenuitem('durbarsquare.html', 'At The Barricades, Durbar Square, Kathmandu');
printSubMenuitem('bathtimebhkatapur.html', 'Bathtime, Bhaktapur');
printSubMenuitem('boyinalleybhaktapur.html', 'Boy in Alley, Bhaktapur');
printSubMenuitem('fetchingwaterbhaktapur.html', 'Fetching Water, Bhaktapur');
printSubMenuitem('temple.html', 'Man at a Temple, Bhaktapur');
printSubMenuitem('farmer.html', 'Nepali Farmer');
printSubMenuitem('market.html', 'Pathan Market');
printSubMenuitem('potterysquarebhaktapur.html', 'Pottery Square, Bhaktapur');
printSubMenuitem('boys.html', 'Schoolboys, Kathmandu');
printSubMenuitem('kathmandu.html', 'Shopkeeper, Kathmandu');
printSubMenuitem('break.html', 'The Smoking Break, Pathan');
printSubMenuitem('pathan.html', 'Three Generations, Pathan');
printSubMenuitem('wash.html', 'Washday, Bhaktapur');

printSubMenuend();

printSubMenustart('submenu12');
printSubMenuitem('back.html', 'Backstreet, Havana');
printSubMenuitem('plaza.html', 'Couple, Plaza Veija, Havana');
printSubMenuitem('libre.html', 'Cuba libre');
printSubMenuitem('che.html', 'Cuban Interior With Che');
printSubMenuitem('girlhavana.html', 'Girl in the Backstreets, Havana');
printSubMenuitem('telephonegirlvinales.html', 'Girl on the Telephone, Vinales, Cuba');
printSubMenuitem('girlsonabushavana.html', 'Girls on a Bus, Havana');
printSubMenuitem('camaguey.html', 'Grandma and Grandson, Camaguey, Cuba');
printSubMenuitem('ladywithtypewritercamageuycuba.html', 'Lady with Typewriter, Camaguey, Cuba');
printSubMenuitem('cigarmanvinales.html', 'Man With Cigar, Vinales, Cuba');
printSubMenuitem('camera.html', 'Old Camera, Capitolio, Havana');
printSubMenuitem('school.html', 'School\'s Out! Trinidad du Cuba');
printSubMenuitem('tenement.html', 'Tenement, Havana');
printSubMenuitem('barber.html', 'The Barber\'s Shop, Havana');
printSubMenuitem('ball.html', 'The Baseball Game, Havana');
printSubMenuitem('naughty.html', 'The Naughty Step, Baracoa, Cuba');
printSubMenuitem('valley.html', 'The Vinales Valley, Cuba');
printSubMenuitem('shops.html', 'Waiting for the Shops to Open, Havana');
printSubMenuitem('grafittiibaracoa.html', 'Young Man with Political Graffiti, Baracoa, Cuba');

printSubMenuend();

printSubMenustart('submenu13');
printSubMenuitem('peter.html', 'Boy on a Balcony, St Petersburg');
printSubMenuitem('carnevale.html', 'Carnevale Portaits');
printSubMenuitem('gondola.html', 'Gondola, Venice');
printSubMenuitem('sicily.html', 'Graffiti, \'No Fascism\', Palermo, Sicily');
printSubMenuitem('greece.html', 'Hydra, Greece');
printSubMenuitem('paris.html', 'Pere la Chase Cemetery, Paris');
printSubMenuitem('venice.html', 'St Mark\'s Square, Venice');
printSubMenuitem('cleder.html', 'Sunset, Cleder, France');

printSubMenuend();

printSubMenustart('submenu14');
printSubMenuitem('grafitti.html', 'Graffiti, New York');
printSubMenuitem('sky.html', 'Manhattan Skyscape');

printSubMenuend();

printSubMenustart('submenu15');
printSubMenuitem('speke.html', 'Hedgerow, Brampford Speke, Devon');
printSubMenuitem('air.html', 'Hot Air');
printSubMenuitem('ploughing.html', 'The Ploughing Contest, Woolsgrove, Devon');

printSubMenuend();

printSubMenustart('submenu16');
printSubMenuitem('cairo.html', 'Lady on a Train, Cairo');

printSubMenuend();

printSubMenustart('submenu17');
printSubMenuitem('music.html', 'Musicians\' Studio Portrait');

printSubMenuend();

printSubMenustart('submenu18');
printSubMenuitem('photostories.html', 'Photo Stories');

printSubMenuend();

printSubMenustart('submenu19');
printSubMenuitem('intro.html', '5. Design Elements 01 : Designing a Photograph');
printSubMenuitem('framing.html', '5. Design Elements 02 : Framing');
printSubMenuitem('line.html', '5. Design Elements 03 : Figure and Ground and Principles of Perception');
printSubMenuitem('compositiontheruleofthirds.html', '5. Design Elements 04 : Harmony, Balance, Dominance, Tension, Proportion');
printSubMenuitem('juxtaposition.html', '5. Design Elements 05 : Light and Contrast');
printSubMenuitem('focus.html', '5. Design Elements 06 :  Focus, Sharpness, Depth of Field');
printSubMenuitem('compositionusingnaturalframing1.html', '5. Design Elements 07 : Design Elements - Line, Shape, Perspective, Texture, Pattern\' Rythm');
printSubMenuitem('pattern.html', '5. Design Elements 08 : The Decisive Moment');
printSubMenuitem('texture.html', '5. Design Elements 09 : Evaluating Images');

printSubMenuend();

printSubMenustart('submenu20');
printSubMenuitem('quotes.html', '6. Web Resources : Photo Quotes');
printSubMenuitem('advice.html', '6. Web Resources : Sources of Information and Advice');
printSubMenuitem('photographers.html', '6. Web Resources : Travel and Documentary Photographers');
printSubMenuitem('networks.html', '6. Web Resources : Travel Photography Networks');
printSubMenuitem('adventure.html', '6. Web Resources Travel Companies');
printSubMenuitem('guides.html', '6. Web Resources Travel Guides');
printSubMenuitem('digitalbasics.html', '6. Web Resources: Digital Basics');

printSubMenuend();

printSubMenustart('submenu21');
printSubMenuitem('subjectmattertheengedportrait1.html', '7 Subject Matter : The Engaged Portrait');
printSubMenuitem('subintro.html', '7. Subject Matter 1 : An Introduction');
printSubMenuitem('street1.html', '7. Subject Matter 2 : Street Photography 1');
printSubMenuitem('street2.html', '7. Subject Matter 3 : Street Photography 2');
printSubMenuitem('docphot.html', '7. Subject Matter 4 : Documentary Photography');
printSubMenuitem('barber1.html', '7. Subject Matter : Environmental Portrait');
printSubMenuitem('formone.html', '7. Subject Matter : Portraits - Formal');
printSubMenuitem('farm1.html', '7. Subject Matter : Rural Life and Farming');
printSubMenuitem('can1.html', '7. Subject Matter : The Candid Portrait');
printSubMenuitem('subjectmatterwork1.html', '7. Subject Matter : Work 1');

printSubMenuend();

printSubMenustart('submenu22');
printSubMenuitem('photoshopguide.html', '8. Photoshop');

printSubMenuend();

printSubMenustart('submenu23');
printSubMenuitem('wisssy.html', '9. Photographic Wisdom');

printSubMenuend();

}

function printMenustart(menuname, xpos) {
document.write("<div id=\"" + menuname + "\" style=\"position: absolute; top: 99; left: " + xpos + "; visibility: hidden; background: #074b8f; z-index: 3; border: 1px solid #000000; opacity: 0.9; filter: alpha(opacity=90)\" onMouseOver=\"stayopen=1; substayopen=1\" onMouseOut=\"stayopen=0\"><table cellpadding=0 cellspacing=0 border=0 bgcolor=#074b8f>");
}

function printSubMenustart(menuname) {
document.write("<div id=\"" + menuname + "\" style=\"position: absolute; top: 99; left: " + xpos + "; visibility: hidden; background: #074b8f; z-index: 3; border: 1px solid #000000; opacity: 0.9; filter: alpha(opacity=90)\" onMouseOver=\"substayopen=1\" onMouseOut=\"substayopen=0\"><table cellpadding=0 cellspacing=0 border=0 bgcolor=#074b8f>");
}

function printMenuitem(link, item, hassub) {
count++;
if (hassub) {
  if (!link) { document.write("<tr height=17><td class=nav id='cell"+count+"' nowrap onMouseOver=\"stayopen=1; currentmenuitem='cell"+count+"'; this.className='navHi'; tab" + count + ".className='menuhi'; showSubMenu('"+hassub+"')\" onMouseOut=\"this.className='nav'; tab" + count + ".className='menu'; hideSubMenu('"+hassub+"')\"><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td>&nbsp;<span class=menunolink>" + item + "</span></td><td width=10><img src=\"images/submenu.gif\" alt=\"\" width=10 height=12 border=0 hspace=2></td></tr></table></td></tr>\n") }
  else if (link==currentLink) { document.write("<tr height=17><td class=navon id='cell"+count+"' nowrap onMouseOver=\"currentmenuitem=this; showSubMenu('"+hassub+"')\" onMouseOut=\"hideSubMenu()\">&nbsp;"+item+"<table cellpadding=0 cellspacing=0 border=0 width=10 align=right><tr><td>&gt;&gt;</td></tr></table></td></tr>\n") }
  else { document.write("<tr height=17><td class=nav id='cell"+count+"' nowrap onClick=\"top.location='iwt.cgi?usr="+usr+"&page="+link+"'\" onMouseOver=\"stayopen=1; currentmenuitem='cell"+count+"'; this.className='navHi'; tab" + count + ".className='menuhi'; showSubMenu('"+hassub+"')\" onMouseOut=\"this.className='nav'; tab" + count + ".className='menu'; hideSubMenu('"+hassub+"')\"><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td>&nbsp;<a href=\"cgi-bin/iwt.cgi?usr="+usr+"&page="+link+"\" id='tab"+count+"' class=menu>" + item + "</a></td><td width=10><img src=\"images/submenu.gif\" alt=\"\" width=10 height=12 border=0 hspace=2></td></tr></table></td></tr>\n") }
  }
else {
  if (link==currentLink) { document.write("<tr height=17><td class=navon nowrap>&nbsp;"+item+"</td></tr>\n") }
  else { document.write("<tr height=17><td class=nav nowrap onClick=\"top.location='iwt.cgi?usr="+usr+"&page="+link+"'\" onMouseOver=\"stayopen=1; this.className='navHi'; tab" + count + ".className='menuhi'; substayopen=0; closeSubMenu()\" onMouseOut=\"this.className='nav'; tab" + count + ".className='menu'\">&nbsp;<a href=\"cgi-bin/iwt.cgi?usr="+usr+"&page="+link+"\" id='tab"+count+"' class=menu>" + item + "</a></td></tr>\n") }
  }
}

function printSubMenuitem(link, item) {
subcount++;
if (link==currentLink) { document.write("<tr height=17><td class=navon nowrap>&nbsp;"+item+"</td></tr>\n") }
else { document.write("<tr height=17><td class=nav nowrap onClick=\"top.location='iwt.cgi?usr="+usr+"&page="+link+"'\" onMouseOver=\"stayopen=1; substayopen=1; this.className='navHi'; tab"+subcount+".className='menuhi'\" onMouseOut=\"this.className='nav'; tab"+subcount+".className='menu'\">&nbsp;<a href=\"cgi-bin/iwt.cgi?usr="+usr+"&page="+link+"\" id='tab"+subcount+"' class=menu>"+item+"</a></td></tr>\n") }
}

function printMenuend() {
document.write("</table></div>");
}

function printSubMenuend() {
document.write("</table></div>");
}

// Testimonials: View at random
function testy(classname) {
if (!classname) { classname ='' }
testimonials = new Array(
'testimonial 1',
'testimonial 2',
'testimonial 3',
'testimonial 4',
'testimonial 5'
);

var testy = Math.floor(Math.random() * testimonials.length);
document.write('<div align=center><p class=testimonial'+classname+'>'+testimonials[testy]+'<br><a href="cgi-bin/iwt.cgi?usr='+usr+'&page=references.html">View more references</a></p></div>');
}
