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>");
}




function delHover() {
  oLst = YD.getElementsBy(function(el) {return (YD.hasClass(el,'imgBorder') || YD.hasClass(el,'imgBorderOn'))},'img');
  for (i=0; i < oLst.length ; i++)  {
    if (oLst[i].title && oLst[i].title != '') oLst[i].title = '';
    if (oLst[i].alt && oLst[i].alt != '') oLst[i].alt = '';
  }
}
YE.onContentReady('bodyWrapper', function() {if (!YD.hasClass(document.body, 'smugmug_ajax')) delHover()});
onPhotoShow.subscribe(function(){YE.onAvailable('mainImage', delHover)});





YE.onAvailable('featuredTitle', function() {this.innerHTML = '  '});

showImagePreview = false;


function getCookie(name) {
  var start = document.cookie.indexOf(name + "=");
  var len = start + name.length + 1;
  
  if ((!start) && (name != document.cookie.substring(0, name.length)))
    return null;

  if (start == -1)
    return null;

  var end = document.cookie.indexOf(";", len);

  if (end == -1)
    end = document.cookie.length;

  return unescape(document.cookie.substring(len, end));
}


function deleteCookie(name, path, domain) {
  if (getCookie(name))
    document.cookie = name + "=" + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

document.oncontextmenu = rightProtect;
  function rightProtect(e) 
{ if (window.event) 
{ var srcEl = event.srcElement ? event.srcElement : event.target; }
  else 
{ var srcEl = e.srcElement ? e.srcElement : e.target; }
  if (srcEl.tagName.toLowerCase() == 'img') {
  window.alert(rightClickWarning);
  return false; }
  else 
{ return true; } }

// make the photobar come out on the bottom
// SM.PhotoBar.config.position = 'bottom';



rightClickWarning = "All photos are property of HooliganUnderground.com. All rights reserved. Unauthorized use is prohibited. For usage rights contact Rich56k@dragbike.com. Most images posted here can be purchased for personal use directly through these galleries.";
