
<!--hide
/* Copyright notice 
 * This code is Copyright (c) 1996-2010 Alan S. Dalinka 
 * (webmaster@asdhollywood.com).
 * all rights reserved*/

var button="http://graphics.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";
}

//define variables for multi-slideshow pages


function imageSwitchOn(imageName) {

     if (rollover == "yes") {
        var LastDigit= imageName.charAt(imageName.length-1)+"";

         if ((LastDigit>="1") && (LastDigit<=Shows))
//correct for multiple left-right arrows
{	   var TempName="";
         for (var i=0; i<imageName.length-1; i+=1) {
         TempName=TempName+imageName.charAt(i);	   }
           imageOn = eval(TempName + 'On.src');
           document [imageName].src = imageOn;
}

else
{          imageOn = eval(imageName + 'On.src');
          document [imageName].src = imageOn;
}
     }
}

function imageSwitchOff(imageName) {
      if (rollover == "yes") {
        var LastDigit= imageName.charAt(imageName.length-1)+"";

         if (LastDigit=="1" | "2" | "3")
//correct for pages with multiple left-right arrows

{	   var TempName="";
         for (var i=0; i<imageName.length-1; i+=1) {
         TempName=TempName+imageName.charAt(i);	   }
           imageOff = eval(TempName + 'Off.src');
           document [imageName].src = imageOff;
}
else
{          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!

Modifications by ASD: 8-10-2010
*/
function showimage(WhichShow,WhichPic)
{
if (!document.images) 
return

Pointer= document[WhichShow].picture.selectedIndex;

document.images[WhichPic].src=
document[WhichShow].picture.options[Pointer].value;
}
/* end of credited script */


function advance(WhichShow,WhichPic,WhichMax) {
   if (document[WhichShow].picture.selectedIndex+1==WhichMax) document[WhichShow].picture.selectedIndex=0
   else 
document[WhichShow].picture.selectedIndex=document[WhichShow].picture.selectedIndex+1;
showimage(WhichShow,WhichPic);
  } 

function back(WhichShow,WhichPic,WhichMax) {
   if (document[WhichShow].picture.selectedIndex==0) document[WhichShow].picture.selectedIndex= WhichMax-1
   else 
document[WhichShow].picture.selectedIndex=document[WhichShow].picture.selectedIndex-1;
showimage(WhichShow,WhichPic);
}


function SpecificPic(WhichIndex,WhichShow,WhichPic,WhichMax) {
   document[WhichShow].picture.selectedIndex=WhichIndex-1;
   showimage(WhichShow,WhichPic);
}


function randPic(WhichShow,WhichPic,WhichMax) {
   document[WhichShow].picture.selectedIndex=randNum(WhichMax-1);
   showimage(WhichShow,WhichPic);
}


// Automation Tools


function slidePlay(SHOW)
{
if (SHOW==1)
{
Timer1=setInterval("advance('mygallery1','pictures1',max1);", 3000);
State1=State1*(-1);
}
if (SHOW==2)
{
Timer2=setInterval("advance('mygallery2','pictures2',max2);", 3000);
State2=State2*(-1);
}
if (SHOW==3)
{
Timer3=setInterval("advance('mygallery3','pictures3',max3);", 3000);
State3=State3*(-1);
}
if (SHOW==4)
{
Timer4=setInterval("advance('mygallery4','pictures4',max4);", 3000);
State4=State4*(-1);
}

}

var ASDxyz="The combo script loaded.";

// End ComboCode
//---end hide--->

