function rand ( n )
{
  return ( Math.floor ( Math.random ( ) * n + 1 ) );
}

<!---
// Use Freely as long as following disclaimer is intact ::
//---------------------------------------------------------------
// Cross Browser Multi-Orientation Menu v1.5 17th August 2004
// This script written by Rik Comery. www.ricom.co.uk
// For support, visit the "Resources" section at www.ricom.co.uk           
// All rights reserved.   
// Featured in the SimplytheBest DHTML Scripts Library at http://simplythebest.net/scripts/

//  MENU ITEMS //
// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///   
var Menu1 = new Array ()
var subMenu1 = new Array ()

   Menu1[0] = new Array("About Us","none")
     subMenu1[0] = new Array()


 subMenu1[0][0] = new Array ("Our New Viewbook", "pdf/TAviewbook.pdf","_blank")

     subMenu1[0][1] = new Array ("Mission Statement", "pdf/mission.pdf","_blank")
     subMenu1[0][2] = new Array ("History", "pdf/history.pdf","_blank")
     subMenu1[0][3] = new Array ("Early Childhood Program", "pdf/ECP.pdf","_blank")

subMenu1[0][4] = new Array ("Elementary & Middle School (Grades 1-8)", "pdf/Academics.pdf","_blank")


     
     subMenu1[0][5] = new Array ("Administration", "pdf/Admin.pdf","_blank")
   subMenu1[0][6] = new Array ("Outside the Classroom", "pdf/Activities.pdf","_blank")

subMenu1[0][7] = new Array ("TA Girls High School", "http://www.torahacademyonline.org/contacttaghs.asp","_blank")

   Menu1[1] = new Array("Admissions","none")
     subMenu1[1] = new Array()
     subMenu1[1][0] = new Array ("Admissions Policy", "pdf/admission.pdf","_blank")
     subMenu1[1][1] = new Array ("Admission Application Packet", "pdf/application_packet.pdf","_blank")
     subMenu1[1][2] = new Array ("Health Form-All Students!!", "pdf/health.pdf","_blank")

subMenu1[1][3] = new Array ("Dental Form (Grades K/1/3/7) ", "pdf/DentalForm.doc","_blank")


     subMenu1[1][4] = new Array ("Scholarship Policy ", "pdf/fapolicy.pdf","_blank")
     subMenu1[1][5] = new Array ("Financial Aid Form", "pdf/faform.pdf","_blank")

 subMenu1[1][6] = new Array ("Financial Aid Short Form Form", "pdf/fashortform.pdf","_blank")

subMenu1[1][7] = new Array ("Our New Viewbook", "pdf/TAviewbook.pdf","_blank")


   Menu1[2] = new Array("Curriculum","none")
     subMenu1[2] = new Array()
     subMenu1[2][0] = new Array ("Judaic & Hebrew Studies Curriculum Guide", "pdf/TAKodeshOutline.pdf","_blank")
subMenu1[2][1] = new Array ("Plans for our Ivrit Department", "pdf/IvritPlans.ppt","_blank")



subMenu1[2][2] = new Array ("Middle School Tefilla", "pdf/BiurTefilla.pdf","_blank")

   subMenu1[2][3] = new Array ("<I>Yediot Klaliyot</I> - Basic Jewish Knowledge Graduation Test", "yediot.asp","_parent")


     subMenu1[2][4] = new Array ("Language Arts Curriculum Guide", "pdf/TALanguageArts.pdf","_blank")
     subMenu1[2][5] = new Array ("TA Literature Reading List", "pdf/TAreadinglist.pdf","_blank")

  subMenu1[2][6] = new Array ("MCIU Reading Olympics '12: Grades 6-8 list", "pdf/MCIUMiddleReading.pdf","_blank")
subMenu1[2][7] = new Array ("MCIU Reading Olympics '12: Grades 4-6 list", "pdf/MCIUElemReading.pdf","_blank")



 subMenu1[2][8] = new Array ("Math Curriculum Guide", "pdf/TAMath.pdf" ,"_blank")
     subMenu1[2][9] = new Array ("Science Curriculum Guide", "pdf/TAScienceoutline.pdf" ,"_blank")
     subMenu1[2][10] = new Array ("Social Studies Curriculum Guide", "pdf/TASocialoutline.pdf","_blank")

 subMenu1[2][11] = new Array ("Early Childhood Program Curriculum Outline", "pdf/ECPcurriculum.pdf","_blank")


subMenu1[2][12] = new Array ("Physical Education Curriculum Guide", "pdf/TAPEcurriculum.pdf","_blank")

 subMenu1[2][13] = new Array ("Social Emotional Education Curriculum Guide", "pdf/socialemotional.pdf","_blank")





subMenu1[2][14] = new Array ("Middle School Study Skills-Binders", "pdf/studybinders.pdf","_blank")

  subMenu1[2][15] = new Array ("Sample Report Cards", "samplerc.html","_blank")

     
   
     subMenu1[2][16] = new Array ("Yom Yerushalayim Torah Fair Assignment", "pdf/TorahFair.pdf","_blank")
  
 subMenu1[2][17] = new Array ("8th Grade Service Learning Project", "pdf/servicelearning.pdf","_blank")
     



subMenu1[2][18] = new Array ("6th Grade Gemara Resources", "pdf/6Gemara.pdf","_blank")

subMenu1[2][19] = new Array ("5th Grade Gemara Resources", "pdf/5Gemara.pdf","_blank")


subMenu1[2][20] = new Array ("Pesach Haggadah (with Students' Divrei Torah", "pdf/PesachRSilver.pdf","_blank")


  
        subMenu1[2][21] = new Array ("Some Samples of Our Students' Work", "csamples.asp","_blank")



   Menu1[3] = new Array("Our Faculty","none")
     subMenu1[3] = new Array()
  
 subMenu1[3][0] = new Array ("Read About Our Teachers", "pdf/teachers.pdf","_blank")


 subMenu1[3][1] = new Array ("Administration", "pdf/Admin.pdf","_blank")
   subMenu1[3][2] = new Array ("Faculty Roster and Directory", "pdf/faculty.pdf","_blank")




   
   Menu1[4] = new Array("Parent Center","none")
     subMenu1[4] = new Array()
     



subMenu1[4][0] = new Array ("5772/2011-12 Calendar", "pdf/5772calendar.pdf","_blank")


subMenu1[4][1] = new Array ("Tentative 5773/2012-13 Calendar", "pdf/5773calendar.pdf","_blank")



 subMenu1[4][2] = new Array ("5772/2011-12 Family Handbook", "pdf/2011-12newfamilyhandbook.doc","_blank")

 subMenu1[4][3] = new Array ("We Want/Need Parent Feedback!", "feedback.asp","_blank")

 subMenu1[4][4] = new Array ("School Closing Info (KYW)- T.A. is #1107", "http://philadelphia.cbslocal.com/schools/","_blank")

  subMenu1[4][5] = new Array ("Homework Now", "http://www.homeworknow.com/fetch/?number=S10000000260","_blank")

subMenu1[4][6] = new Array ("Middle School Test/Project Calendar", "mstests.asp","_blank")

subMenu1[4][7] = new Array ("PTO", "pto.asp","_parent")
       
     subMenu1[4][8] = new Array ("Early Childhood Schedule 5772/2011-12", "pdf/schedec.pdf","_blank")
     subMenu1[4][9] = new Array ("Elementary School Schedule 5772/2011-12", "pdf/schede.pdf","_blank")
     subMenu1[4][10] = new Array ("Middle School Schedule 5772/2011-12", "pdf/schedm.pdf","_blank")
    
         
subMenu1[4][11] = new Array ("New!  Math By Mail Program!", "pdf/mathbymail.pdf","_blank")
    subMenu1[4][12] = new Array ("Form to Allow us To Give Medicine", "pdf/medicineform.pdf","_blank")


   Menu1[5] = new Array("News &amp; Events","news.asp")
     subMenu1[5] = new Array()
     subMenu1[5][0] = new Array ("B'Kehilla Magazine", "BKehilla/iyar5769.pdf","_blank")
     subMenu1[5][1] = new Array ("Our New Viewbook", "pdf/TAviewbook.pdf","_blank")

   Menu1[6] = new Array("Support TA","support.asp")
     subMenu1[6] = new Array()
     subMenu1[6][0] = new Array ("Annual Scholarship Dinner", "http://www.torahacademyonline.org/Dinner10.htm","_blank")
    

 subMenu1[6][1] = new Array ("Annual Dinner Invitation", "pdf/dinnerinvite.pdf","_blank")

 subMenu1[6][2] = new Array ("EITC Program Information", "pdf/eitc_1.pdf","_blank")
     subMenu1[6][3] = new Array ("EITC Program Form", "pdf/eitc_2.pdf","_blank")

    subMenu1[6][4] = new Array ("Areivim Legacy Giving", "pdf/LegacyGiving.pdf","_blank")


   Menu1[7] = new Array("Alumni","alumni.asp")
     subMenu1[7] = new Array()



 Menu1[8] = new Array("Jewish Philly Links","links.asp")
     subMenu1[8] = new Array()


   Menu1[9] = new Array("Contact Us","contact.asp")
     subMenu1[9] = new Array()
  
/// FORMAT MENU  ///
menuStyle = "flat"                                  // Menu Style (flat, 3d)
cellPadding = "0"                                   // Cell Padding
cellBorder = 0                                      // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS
verticalOffset = "0"                                // Vertical offset of Sub Menu. 
horizontalOffset = "0"                              // Horizontal offset of Sub Menu. 
subMenuDelay = 1                                    // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS
subIndicate2 = 1                                     // Show if a sub menu is present (use 0 for "no")  THIS VALUE APPLIES TO ALL MENUS
subIndicate = 0                                     // Show if a sub menu is present (use 0 for "no")  THIS VALUE APPLIES TO ALL MENUS
indicator = "<img src='images/arrow-down.gif' border='0'>" // Symbol to show if a sub menu is present (subIndicate must be to set to 1)
                                                    // Use standard HTML <img> tag. You can use a character instead of an image. 
                                                    // e.g.      indicator = ">"
// Main Menu Items
menuWidth = "0"                  // Width of menu item.  Use 0 for default
borderColor = "white"            // Border Colour (flat mode only)
borderHighlight = "#97BBD3"      // Border Highlight Colour (3d mode only)
borderShadow = "#31556D"         // Border Shadow Colour (3d mode only)
menuBackground = "022799"       // Cell Background Colour
menuHoverBackground = "4a75ff"    // Cell Background Colour on mouse rollover
fontFace = "verdana"               // Font Face
fontColour = "white"           // Font Colour
fontHoverColour = "white"      // Font Colour on mouse rollover
fontSize = "13px"                 // Font Size
fontDecoration = "none"          // Style of the link text (none, underline, overline, line-through)
fontWeight = "bold"            // Font Weight (normal, bold)

// Sub Menu Items
smenuWidth = "121"                 // Width of sub menu item.  Use 0 for default
sborderColor = "Black"           // Border Colour (flat mode only)
sborderHighlight = "#E9E9E2"     // Border Highlight Colour (3d mode only)
sborderShadow = "#83837C"        // Border Shadow Colour (3d mode only)
smenuBackground = "022799"        // Cell Background Colour
smenuHoverBackground = "4a75ff" // Cell Background Colour on mouse rolloverr
sfontFace = "verdana"              // Font Face
sfontColour = "white"          // Font Colour
sfontHoverColour = "white"     // Font Colour on mouse rollover
sfontSize = "11px"                // Font Size
sfontDecoration = "none"         // Style of the link text (none, underline, overline, line-through)
sfontWeight = "bold"           // Font Weight (normal, bold)

quantity = 1
/// END FORMAT MENU  ////

/// DO NOT EDIT BELOW THIS LINE  ///
// Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;
var timer;
var obj = (isIE)?"document.all":"document.getElementById"
// Menu Styles
function createStyles(quant){
styleBorder=(menuStyle.split(",")[quant-1].toLowerCase() == "flat")?cellBorder:0 
  document.writeln ('<style>');
  document.writeln ('.rcMenuStatic'+quant+' {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuBackground.split(",")[quant-1]+'; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcMenuHover'+quant+'  {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontHoverColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+'; text-decoration:'+fontDecoration.split(",")[quant-1]+';background-color:'+menuHoverBackground.split(",")[quant-1]+'}');
  document.writeln ('.rcSubMenuStatic'+quant+' {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuBackground.split(",")[quant-1]+'; cursor:hand}');
  document.writeln ('.rcSubMenuHover'+quant+'  {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontHoverColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuHoverBackground.split(",")[quant-1]+'; cursor:hand}');
  document.writeln ('</style>');
}
// Build and show the main menu items
function showMenus(quant,definedOrientation)
{
  createStyles(quant);
  if(definedOrientation!=""){orientation=definedOrientation}
  document.writeln ('<table border="0" cellpadding="0" cellspacing="0"><tr>')  
  for (x=0; x<eval("Menu"+quant).length; x++)
  {
    document.writeln ('<td onclick="tdMouseClick(\''+quant+'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+')" ')       
    document.writeln ('><div id="'+quant+'button'+x+'" align="center"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align=center height="36" id="'+quant+'cell'+x+'" nowrap>');

if (x == 8){

document.writeln ('<div id="'+quant+'mainLink'+x+'"  class="rcMenuStatic'+quant+'"><A HREF="'+eval("Menu"+quant)[x][1]+'" class="navlink">&nbsp;&nbsp;'+eval("Menu"+quant)[x][0]+'&nbsp;&nbsp;</a></div></td>')

}

else if (eval("Menu"+quant)[x][1]=="none"){

document.writeln ('<div id="'+quant+'mainLink'+x+'"  class="rcMenuStatic'+quant+'"><A HREF="'+eval("Menu"+quant)[x][1]+'" class="navlink">&nbsp;&nbsp;'+eval("Menu"+quant)[x][0]+'&nbsp;&nbsp;</a></div></td><td width=14></td>')

}

else{

document.writeln ('<div id="'+quant+'mainLink'+x+'"  class="rcMenuStatic'+quant+'"><A HREF="'+eval("Menu"+quant)[x][1]+'" class="navlink">&nbsp;&nbsp;'+eval("Menu"+quant)[x][0]+'&nbsp;&nbsp;</a></div></td><td width=14></td>')

}

    document.writeln ('</tr></table></div></td>');    
  }
    document.writeln ('</tr></table>');   
// Build the sub menu items
  for (x=0; x<eval("Menu"+quant).length; x++)
  { 
    if (eval("subMenu"+quant)[x].length > 0)
    {     
      document.writeln ('<div id="'+quant+'MENU'+x+'" style="visibility:hidden; position:absolute; z-index:2" >');
      document.writeln ('<table width="'+eval("Menu"+quant)[x][1]+'" border="1" cellpadding=0 cellspacing="0" bordercolor="ffffff" bgColor="'+sborderColor.split(",")[quant-1]+'">');
      for (y=0; y<eval("subMenu"+quant)[x].length; y++)
      {
        document.writeln ('<tr>');
        if (eval("subMenu"+quant)[x][y][1].indexOf("#") != -1)
        {
          document.writeln ('<td HEIGHT="40" bgColor="'+eval("subMenu"+quant)[x][y][2]+'" id="'+quant+'subMenu'+x+y+'" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" onclick="tdMouseClick(\''+quant+'subLink'+x+y+'\')" nowrap')
          document.writeln ('><p style="font-family:'+sfontFace.split(",")[quant-1]+'; font-size:'+sfontSize.split(",")[quant-1]+'; color:'+eval("subMenu"+quant)[x][y][1]+'"id="'+quant+'subLink'+x+y+'">'+eval("subMenu"+quant)[x][y][0]+'</p></td></tr>');
        }

        else
        {
          document.writeln ('<td HEIGHT="24" id="'+quant+'subMenu'+x+y+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" onMouseOut="clearMenu('+quant+','+x+');" onclick="tdMouseClick(\''+quant+'subLink'+x+y+'\')" nowrap')
          document.writeln ('>&nbsp;<a id="'+quant+'subLink'+x+y+'" href="'+eval("subMenu"+quant)[x][y][1]+'" target="'+eval("subMenu"+quant)[x][y][2]+'" class="rcSubMenuStatic'+quant+'">'+eval("subMenu"+quant)[x][y][0]+'</a>&nbsp;</td></tr>');
        }
      }
      document.writeln ('</table></div>');
    }
  }
} 
// Change colour or menu and submenu items when the mouse hovers over.  
function highlightMenu(element,mainMenu,dropMenu,state,quant)
{
  hoverMenu();
  state=(state == "hover")?"rcMenuHover"+quant:"rcMenuStatic"+quant
  if (element == "sub")
  {
    for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++)
    {
      if (eval("subMenu"+quant)[mainMenu][x][1].indexOf("#") == -1){
        eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')
        eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')
      }
    } 
    if (eval("subMenu"+quant)[mainMenu][dropMenu][1].indexOf("#") == -1)  {
      eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')
      eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')
    }
  }
  else
  {
    eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"')
    eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"')
    if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1)
    {
      eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"')
      eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"')
    }
  }
}
// Find positioning for sub menus
function getOffset(obj, dim) 
{
  if(dim=="left") 
  {     
    oLeft = obj.offsetLeft;    
    while(obj.offsetParent!=null) 
    {    
      oParent = obj.offsetParent     
      oLeft += oParent.offsetLeft 
      obj = oParent 	
    }
    return oLeft
  }
  else if(dim=="top")
  {
    oTop = obj.offsetTop;
    while(obj.offsetParent!=null) 
    {
      oParent = obj.offsetParent
      oTop += oParent.offsetTop
      obj = oParent 	
    }
    return oTop
  }
  else if(dim=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(dim=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
  else
  {
    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
    return false;
  }
}
// Show sub menus
function popDown(quant, param, id, orientation)
{
  var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2)
  var browserAdjustment = (isNS6)?cellBorder:0
  var menu;
  var button;

  if (id)
  {    
    getOffset(eval(obj+'(id)'),'left');
    getOffset(eval(obj+'(id)'),'top');    
    getOffset(eval(obj+'(id)'),'width');  
    getOffset(eval(obj+'(id)'),'height');
    
    if (eval("Menu"+quant+"["+param+"][3]")=="right" && eval("subMenu"+quant+"["+param+"].length")>0) 
    { 
      oLeft=oLeft  
      oLeft=oLeft+oWidth; 
      getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width');
      oLeft=oLeft-oWidth ;
      alignAdjustment = cellBorder*2 + 1
    }
    else 
    {
      alignAdjustment = 0
      oLeft=oLeft
    }    
  }  

  
  n = 0;    
  while (n < eval("Menu"+quant).length)
  {          
    menu = quant+"MENU"+n
    if (param == n)
    {
      theObj = eval(obj+'(menu)');
      if (theObj)
      {
         theObj.style.visibility = "visible"
          if (orientation.toLowerCase()=="vertical"){
            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft+oWidth+cellBorder+parseInt(horizontalOffset.split(",")[quant-1]):oLeft+oWidth+cellBorderOffset+parseInt(horizontalOffset.split(",")[quant-1]);
            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop-cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+parseInt(verticalOffset.split(",")[quant-1])-browserAdjustment}
          else{
            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft-cellBorder+parseInt(horizontalOffset.split(",")[quant-1])+alignAdjustment:oLeft+parseInt(horizontalOffset.split(",")[quant-1])-browserAdjustment+alignAdjustment;
            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop+oHeight+cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+oHeight+cellBorderOffset+parseInt(verticalOffset.split(",")[quant-1]);}
        }
      
       highlightMenu('main',n,'','hover',quant)
       if (eval("subMenu"+quant)[param].length > 0)
       {
         for (x=0; x<eval("subMenu"+quant)[param].length; x++)
         {
           if(eval("subMenu"+quant)[param][x][1].indexOf("#") == -1){
             eval (obj+'("'+quant+'subMenu'+param+x+'").className = "rcSubMenuStatic'+quant+'"')
             eval (obj+'("'+quant+'subLink'+param+x+'").className = "rcSubMenuStatic'+quant+'"')  
           }       
         }
       }
    }
    else 
    {  
      for (x=1; x<quantity+1; x++)
      {       
        menu = x+"MENU"+n   
        //alert(menu)     
        if (eval(obj+'(menu)'))
        {
          eval(obj+'(menu).style.visibility = "hidden"')            
        }
        highlightMenu ('main',n,'','static',quant)
      }
    }

    n++
  }  
}
// Re-set timer for sub menus
function hoverMenu()
{
  if(timer)
  clearTimeout(timer)
}
// Set timer for sub menus
function clearMenu(quant,menu)
{
  setDelay = subMenuDelay*1000
  delay = (eval("subMenu"+quant)[menu].length > 0)?setDelay:1
  
  timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay)
}
// when you click the box, perform the same function as if the user had clicked the hyperlink
function tdMouseClick(theElement)
{
  eval(obj+'(theElement).click()')
}
//-->

<!-- Original:  CodeLifter.com (support@codelifter.com) -->
<!-- Web Site:  http://www.codelifter.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration = 5;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'scroll/1.jpg'
Pic[1] = 'scroll/2.jpg'
Pic[2] = 'scroll/3.jpg'
Pic[3] = 'scroll/4.jpg'
Pic[4] = 'scroll/5.jpg'
Pic[5] = 'scroll/6.jpg'
Pic[6] = 'scroll/7.jpg'
Pic[7] = 'scroll/8.jpg'
Pic[8] = 'scroll/9.jpg'

// to add more images, just continue
// the pattern, adding to the array below


// do not edit anything below this line
var t;
var j = rand(9-1);
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->


function pick_image ( )
{
  document.getElementById("random-image").innerHTML = "<IMG SRC=" + Pic[rand(9)-1] + " Border='1' height=140>";
}
