var upper_limit = 4;
var urlnumber = 0;
var player = "http://www.webdesignsbyjr.com/smugsspjgpl/xspf_player_slim.swf";
var showsong1 = "?playlist_url=http://www.webdesignsbyjr.com/smugsspjgpl/mlist";
var showsong2 = ".xspf&autoplay=1&repeat_playlist=1&autoresume=1";

function RandomNumber() 
{ 
urlnumber = Math.round(upper_limit * Math.random());
}

RandomNumber();
var song = player + showsong1 + urlnumber + showsong2;






function swapBoxes() {
   box1 = YD.get("subcategoriesBox");
   box2 = YD.get("galleriesBox");
   if (box1 && box2)
   {
      swap = box1.innerHTML;
      box1.innerHTML = box2.innerHTML;
      box2.innerHTML = swap;
   }
}



function delpCategory() {
  re = /\/Portfolio$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}
 



function deloCategory() {
  re = /\/Other$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}



function delfCategory() {
  re = /\/Family$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}


function delhCategory() {
  re = /\/Hidden$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}


function deldCategory() {
  re = /\/Digital-Designs$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}


function delaCategory() {
  re = /\/Fine-Art$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}

rightClickWarning = "All images in this website copyrighted by Jaki Good Photography. All rights reserved.  The images and/or text may not be copied, transmitted, published, reproduced or used in any way without written permission.";


function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }


