function insertSlideshowNoClick(width, height, parms, transparency)
{
	var isClickURL = false;
	var gifHeight = height;
	var gifWidth = width;
	
	// it appears that the default for showThumbs is true
	if ((!parms.showThumbs) || ((parms.showThumbs == "true") && (height > 100)))
	{
		gifHeight -= 87;
	}
	// can't support the startButton because it will never get clicked
	if (parms.showStartButton)
	{
		delete parms.showStartButton;
	}
	// can't support the buttons because they will never get clicked
	if (parms.showButtons)
	{
		parms.showButtons = "false";		
	}
	document.write('<div id="slideshowContainerWrapper" style="position:relative;">\n');
	if (parms.clickUrl && (parms.clickUrl != "blank") && (parms.clickUrl != "false"))
	{
		isClickURL = true;
		var newWindowText = "";
		if (parms.newWindow && (parms.newWindow == "true"))
		{
			newWindowText = ' target="_blank" ';
		}
		document.write('<a href="' + parms.clickUrl + '"' + newWindowText + '>');
	}
	document.write('<img src="/img/spacer.gif" border="0" style="position:absolute;" height="' + gifHeight + '" width="' + gifWidth + '" oncontextmenu="return false;">\n');
	if (isClickURL)
	{
		document.write('</a>');
	}
	SM.flash.insertSlideshow(width, height, parms, transparency);
	document.write("</div>");
}

// Removes Photo Numbers in Description
function changeCategoryInfo() {
  re = /^([0-9]+ )(galler(y|ies))/;

  oEl = YD.get("categoriesBox")? YD.get("categoriesBox") : YD.get("subcategoriesBox");
  if (oEl) {
    oList = YD.getElementsByClassName("miniBox", "div", oEl);

    for (i=0; i<oList.length; i++) {
      pTags = oList[i].getElementsByTagName("p");
      re.exec(pTags[1].innerHTML);
      pTags[1].innerHTML = RegExp.$1 + RegExp.$2;
    }
  }
}
	
function removeKeywords() {
 var aKeywords = ['alex','between the lines', 'album', 'between', 'cindis farewell', 'fibre', 'julie', 'lines', 'northern', 'territory', '2006', '2007', '2008', 'stewart', 'maree', 'mitchell', 'jac', 'jack', 'jane','janes', 'janes birthday', 'janes dinner', 'jemma', 'jenelle', 'kate', 'kath c', 'kaye', 'ken', 'kirsty', 'laura', 'lyn', 'mack', 'mal', 'nanna', 'nathan', 'noel', 'pregnancy', 'pregnant', 'project radar', 'radar', 'rastas', 'reg', 'remy', 'ruth', 'sally', 'simone', 'steve', 'stew', 'sue', '13th january', '14th august', '30th', 'adam', 'btl', 'carol', 'cassius', 'chris', 'cindy', 'clearing', 'cole', 'd10', 'dad', 'dee', 'ellengowan drive', 'faye', 'fayes house', 'ferne', 'fred', 'gavin', 'hannah', 'harry', 'isaac', 'susan', 'trish', 'wayne', 'wendy', 'yvonnes farewell', '31', 'Stewart Lines', '2004', '2005', '2009'];

 var oBox = YD.get('keywordsBox');
 oKeywords = YD.getElementsByClassName('keyword', 'a', oBox);

 for (i=0; i<oKeywords.length; i++) {
   for (j=0; j<aKeywords.length; j++) {
     if (aKeywords[j] == oKeywords[i].innerHTML) {
       try {
         oKeywords[i].parentNode.removeChild(oKeywords[i].previousSibling);
       } catch(e){}
       try {
         oKeywords[i].parentNode.removeChild(oKeywords[i].nextSibling);
       } catch(e){}
       try {
         oKeywords[i].parentNode.removeChild(oKeywords[i].nextSibling);
       } catch(e){}
       try {
         oKeywords[i].parentNode.removeChild(oKeywords[i]);
       } catch(e){}
       break;
     }
   }
 }
}


var vanityTable = 
 {
     northernstars: "http://warragul.smugmug.com/gallery/7977221_snD3H#518342075_yMm9x",
     mitchell: "http://www.smugmug.com/gallery/7961374_4YmaK#517015753_YTshs"
     
 };

function CheckRedirects()
 {
     if (YD.hasClass(document.body, 'homepage'))    // only run this code on the home page
     {
         // get the path from the current URL, 
         // convert it to lowercase and remove the leading slash
         var path = window.location.pathname.toLowerCase().substr(1);
         
         var newURL = vanityTable[path];        // look it up in our table
         
         // if we found it in the table && newURL is different than where we are
         if (newURL && (newURL != window.location))
         {
             window.location.replace(newURL);        // go to the new URL
         }
     }
 }


