<!-- Hide script from older browsers      

/*******************************************************************************
 *       Copyright (C) 2007 Pillera Photography, All Rights Reserved
 *******************************************************************************
 */
// Global variabes used in functions below.
var qsParm = new Array();

/***************************************************************************//**
 * Get HTML parameters.
 *******************************************************************************
 */
function GetSlidshowFolder() 
  {  
  qsParm['name'] = null;
  qsParm['value'] = null;
  
  var query = window.location.search.substring(1);
  var parms = query.split('&');
  
  for (var i=0; i<parms.length; i++) 
    {
    var pos = parms[i].indexOf('=');
    if (pos > 0) 
      {
      var key = parms[i].substring(0,pos);
      var val = parms[i].substring(pos+1);
      qsParm[key] = val;
      }
    }
  //alert ("You clicked OK"+val);
  return (val);
  }

/***************************************************************************//**
 * Call sliedshow swf with value passed to html file.
 *******************************************************************************
 */
function SendDataToFlashMovie()
  {
  document.writeln('<object clsid:"D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.writeln('width="100%" height="640"');
  document.writeln('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">');
  document.writeln('<param name="movie" value="gallery/resources/gallery.swf"/>');
  document.writeln('<param name="WMode" value="Transparent">');
  document.writeln('<param name="flashvars"');
  document.writeln('value="livePreview=false');
  document.writeln('&baseRefUrl=gallery/resources/'+GetSlidshowFolder()+'/');
  document.writeln('&groupxml=mediaGroupData/group.xml');
  document.writeln('&stylexml=../styles/style.xml');
  document.writeln('&localText=../localization/localText.xml"/>');
  document.writeln('<param name="id" value="gallery"/>');
  document.writeln('<param name="quality" value="high"/>');
  document.writeln('<param name="align" value="middle"/>');
  document.writeln('<param name="name" value="gallery"/>');
  document.writeln('<param name="bgcolor" value="#f7f7f7"/>');
  document.writeln('<param name="allowScriptAccess" value="sameDomain"/>');
  document.writeln('<param name="menu" value="true"/>');
  document.writeln('<embed src="gallery/resources/gallery.swf"');
  document.writeln('type="application/x-shockwave-flash"');
  document.writeln('pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.writeln('flashvars="livePreview=false');
  document.writeln('&baseRefUrl=gallery/resources/'+GetSlidshowFolder()+'/');
  document.writeln('&groupxml=mediaGroupData/group.xml');
  //alert ("return value "+GetSlidshowFolder());
  document.writeln('&stylexml=../styles/style.xml');
  document.writeln('&localText=../localization/localText.xml"');
  document.writeln('width="100%" height="640" quality="high" align="middle"	wmode="transparent"');
  document.writeln('allowScriptAccess="sameDomain">');
  document.writeln('</embed>');
  document.writeln('</object>');
  }

/***************************************************************************//**
 * Call slideshow swf with passed value.
 *******************************************************************************
 */
function StartSlideShow(typeofshow)
  {
  document.writeln('<object clsid:"D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.writeln('width="100%" height="640"');
  document.writeln('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">');
  document.writeln('<param name="movie" value="gallery/resources/gallery.swf"/>');
  document.writeln('<param name="WMode" value="Transparent">');
  document.writeln('<param name="flashvars"');
  document.writeln('value="livePreview=false');
  document.writeln('&baseRefUrl=gallery/resources/'+typeofshow+'/');
  document.writeln('&groupxml=mediaGroupData/group.xml');
  document.writeln('&stylexml=../styles/style.xml');
  document.writeln('&localText=../localization/localText.xml"/>');
  document.writeln('<param name="id" value="gallery"/>');
  document.writeln('<param name="quality" value="high"/>');
  document.writeln('<param name="align" value="middle"/>');
  document.writeln('<param name="name" value="gallery"/>');
  document.writeln('<param name="bgcolor" value="#f7f7f7"/>');
  document.writeln('<param name="allowScriptAccess" value="sameDomain"/>');
  document.writeln('<param name="menu" value="true"/>');
  document.writeln('<embed src="gallery/resources/gallery.swf"');
  document.writeln('type="application/x-shockwave-flash"');
  document.writeln('pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.writeln('flashvars="livePreview=false');
  document.writeln('&baseRefUrl=gallery/resources/'+typeofshow+'/');
  document.writeln('&groupxml=mediaGroupData/group.xml');
  //alert ("return value "+GetSlidshowFolder());
  document.writeln('&stylexml=../styles/style.xml');
  document.writeln('&localText=../localization/localText.xml"');
  document.writeln('width="100%" height="640" quality="high" align="middle"	wmode="transparent"');
  document.writeln('allowScriptAccess="sameDomain">');
  document.writeln('</embed>');
  document.writeln('</object>');
  }

// End hiding script from old browsers -->