
<!--hide
/* Copyright notice 
 * This code is Copyright (c) 1996-2009 Alan S. Dalinka 
 * (webmaster@asdhollywood.com).
 * all rights reserved*/

var button="http://menus.asdhollywood.com/";
var PickedPic=1;

if (document.images) rollover = "yes";
     else rollover = "no";

if (rollover == "yes") {
     LeftOn = new Image();
     RandomOn = new Image();
     RightOn = new Image();
     LeftOff = new Image();
     RandomOff = new Image();
     RightOff = new Image();

     LeftOn.src = button+"LeftOn.gif";
     RandomOn.src = button+"RandomOn.gif";
     RightOn.src = button+"RightOn.gif";
     LeftOff.src = button+"Left.gif";
     RandomOff.src = button+"Random.gif";
     RightOff.src = button+"Right.gif";
}

function imageSwitchOn(imageName) {
     if (rollover == "yes") {
          imageOn = eval(imageName + 'On.src');
          document [imageName].src = imageOn;
     }
}

function imageSwitchOff(imageName) {
     if (rollover == "yes") {
          imageOff = eval(imageName + 'Off.src');
          document [imageName].src = imageOff;
     }
}

function randNum (num) {
   var now = new Date();
   var rand = Math.round(num * Math.cos(now.getTime()));
   if (rand < 0) rand = - rand; if (rand == 0) rand++;
   return rand;
}

/*Combo Box Image Selector:
By Website Abstraction (www.wsabstract.com)
Over 200+ free JavaScript here!
*/
function showimage()
{
if (!document.images) 
return


document.images.pictures.src=
document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value;
}
/* end of credited script */


function switcher(WhichOne)
{
if (!document.images)
return
document.images.pictures.src=WhichOne;
}


function advance() {
   if (document.mygallery.picture.selectedIndex+1==max) document.mygallery.picture.selectedIndex=0
   else 
document.mygallery.picture.selectedIndex=document.mygallery.picture.selectedIndex+1;
showimage();
  } 

function back() {
   if (document.mygallery.picture.selectedIndex==0) document.mygallery.picture.selectedIndex=max-1
   else 
document.mygallery.picture.selectedIndex=document.mygallery.picture.selectedIndex-1;
showimage();
}


function SpecificPic() {
   document.mygallery.picture.selectedIndex=PickedPic-1;
   showimage();
}

function randPic() {
   document.mygallery.picture.selectedIndex=randNum(max-1);
   showimage();
}

var ASDxyz="The combo script loaded.";

// End Time & Date
//---end hide--->
