/* example how to replace text, e.g. in a title:
YE.onAvailable('keywordsTitle', function() {this.innerHTML = 'Top Keywords'});
*/


/*=== Change Breadcrumb Root Text and Link ===*/
function ModifyGalleryBreadcrumb () {
  this.innerHTML = this.innerHTML.replace('theartofthemoment.net"', 'theartofthemoment.net/galleries"');
  this.innerHTML = this.innerHTML.replace('>Markus Brosch<', '>The Art Of The Moment<');
  this.innerHTML = this.innerHTML.replace('http://markusbrosch.smugmug.com/MyPortfolio', 'http://markusbrosch.smugmug.com/gallery/7868102_D7xww');
  this.innerHTML = this.innerHTML.replace('>MyPortfolio<', '>Portfolio<');
}
YE.onContentReady('breadCrumbTrail', ModifyGalleryBreadcrumb);
 
function ModifyCategoryBreadcrumb () {
  this.innerHTML = this.innerHTML.replace('"/"', '"/galleries"');
  this.innerHTML = this.innerHTML.replace('>Markus Brosch<', '>The Art Of The Moment<');
}
YE.onContentReady('category', ModifyCategoryBreadcrumb);


/*=== END Change Breadcrumb Root Text and Link ===*/



/*========================================*/
/*== Bottom Javascript: Paypal shopping functionality    ==*/
/*========================================*/
function setPaypalForm(form) {
 urlToImage = webServer + "/gallery/" + AlbumID + "_" + AlbumKey + "/1/" + ImageID + "_" + ImageKey + "/Large"; 
 i = form.photoselection.selectedIndex
 
 sPhotoType = form.photoselection.options[i].text;
 sPhotoPrice = form.photoselection.options[i].value;

 /*var albumtitle = GetText( document.getElementById("albumTitle") );*/
 urlToImage = urlToImage + "#__" + photoInfo[ImageID].caption + "__" + sPhotoType;
 form.item_name.value = urlToImage;
 form.amount.value = sPhotoPrice;
}

