if (window.location == "http://www.robinallen-photography")
{
document.getElementById("homeSlide").style.display = 'block';
}

rightClickWarning = "All photos are © Robin Allen - Robin Allen Photography. All rights reserved. Unauthorized use is prohibited."

function createSWF( w, h, params) {
 var args = "";
 for (var i in params) {
     args += i + "=" + params[i] + "&amp;";
 }
 document.writeln('<object width="100%" height="100%" align="middle">'+
'<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'" />'+
'<param name="wmode" value="transparent" />'+
'<embed src="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'"   wmode="transparent" width="' + w + '" height="\
' + h + '" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"/><\/object>');
return 1;
}


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

function tableWorkaround(cols) { if (document.all) { document.write('<tr>'); for (var i = 0; i < cols; i++) { document.write('<td></td>'); } document.write('</tr>') }; }
      function tableWorkaround2_colheader() { if (document.all) { document.write('<col width="0">') }; }
      function tableWorkaround2(rowHeight) { if (document.all) { document.write('<td height="' + rowHeight + '">'); document.write('</td>') }; }

function checkForm6() {
if (document.forms.Form6.elements['email'].value.length == 0) {
    alert('Please enter a value for the "Your email address" field');
    return false;
}
if (document.forms.Form6.elements['comments'].value.length == 0) {
    alert('Please enter a value for the "Comments" field');
    return false;
}
  return true;
}

addEvent(window, "load", rem_pipes);

function rem_pipes () {
   for (var i = 0; i<3; i++) {
      var objElement = document.getElementById("footer")
      if (objElement != null) 
      {
         var str = new String(objElement.innerHTML);
         str = str.replace('|', '')
         objElement.innerHTML = str;
      }
   }
}

