/**************************************************************************************************************************/
// JAVASCRIPT LIBRARY
function getElementsByClass(searchClass,node,tag) {
  var classElements = new Array();
  if ( node == null )
    node = document;
  if ( tag == null )
    tag = '*';
  var els = node.getElementsByTagName(tag);
  var elsLen = els.length;
  var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
  for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els[i].className) ) {
	    classElements[j] = els[i];
	    j++;
    }
  }
  return classElements;
}

// IE6 fixes
if(navigator.userAgent.toLowerCase().indexOf('msie 6') != -1)
{
  with(document.getElementById("photo1"))
    {src = "Img/photo1.gif"; style.top = "25px"};
  with(document.getElementById("photo2"))
    {src = "Img/photo2.gif"; style.top = "25px"};
  with(document.getElementById("photo3"))
    {src = "Img/photo3.gif"; style.top = "32px"};
  with(document.getElementById("photo4"))
    {src = "Img/photo4.gif"; style.marginLeft = "-30px"};
}
