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;
} 


YE.onAvailable('featuredTitle', function() {this.innerHTML = 'Feature Galleries'}); 

YE.onAvailable('categoryTitle', function() {this.innerHTML = 'More Galleries & Past Events'});

// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {

this.href = "http://www.kylenowlinphotography.com";

this.firstChild.alt = "Kyle Nowlin Photography";

this.firstChild.title = "Kyle Nowlin Photography";

});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {

this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");

});


rightClickWarning = "© 2007-2010 Kyle Nowlin. All rights reserved. Unauthorized use is prohibited."; 




function AddReferralCode() {
var links = this.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=aKR3Fw4DFsDLA";
}
}
YE.onAvailable('footer', AddReferralCode);

SM.PhotoBar.config.position = 'bottom';
