function addToCart () { if (window.location.toString().indexOf("addToCart=yes") > -1 ) { var uri = window.location.toString(); var hashLocation = uri.indexOf ("#"); if (hashLocation > -1) { var qmLocation = uri.indexOf ("?"); var img = uri.substring(hashLocation+1, qmLocation); var imgSplit = img.split ("_"); addCartSingle(imgSplit[0],imgSplit[1]); } } } YE.onDOMReady ( addToCart ); function handleAlbumCategories () { // Handle the Album category section if (window.location.toString().indexOf("/Album") > -1 ) { var fr = document.createElement ("iframe"); fr.setAttribute ("src", "http://www.photokandy.com/categories.php"); fr.setAttribute ("width", "980px"); fr.setAttribute ("height", "500px"); fr.setAttribute ("frameBorder", "0"); fr.setAttribute ("border", "0"); fr.setAttribute ("scrolling", "no"); fr.setAttribute ("marginheight", "0"); fr.setAttribute ("marginwidth", "0" ) fr.style.border = "0"; if (document.getElementById ("category")) { document.getElementById ("category").appendChild(fr); } } } YE.onDOMReady ( handleAlbumCategories ); function mySlideShow() { var e = document.getElementById('bioBox'); if (e) { /* redirect to new home page */ window.location = "http://www.photokandy.com/" var whichSS = Math.floor(Math.random()*4) + 1; var uri = window.location.toString(); var qmLocation = uri.indexOf ("?"); if (qmLocation > -1 ) { whichSS = uri.substring(qmLocation+1, 255); } var ss = document.createElement ("div"); ss.setAttribute ("id", "homepageSlideshowContainer"); e.appendChild ( ss ); ss.innerHTML = "
" + "" + "
" + "
" + "
" + mnuText + "
" + ""; var se = document.createElement ("script"); se.setAttribute ("language", "javascript"); se.setAttribute ("src", "http://www.photokandy.com/smssjs.php?ss=" + whichSS ); e.appendChild ( se ); } } function slideShow () { var e = document.getElementById('bioBox'); if ( e ) { var ss = document.createElement ("div"); ss.setAttribute ("id", "homepageSlideshowContainer"); e.appendChild ( ss ); ss.innerHTML = "
" + mnuText + "
"; } } YE.onDOMReady ( mySlideShow );