<!--

if (document.images) {

home_on = new Image(111,38);
home_on.src = "images/home_on.gif";
home_off = new Image(111,38);
home_off.src = "images/home_off.gif";

sufism_on = new Image(111,38);
sufism_on.src = "images/sufism_on.gif";
sufism_off = new Image(111,38);
sufism_off.src = "images/sufism_off.gif";

teachings_on = new Image(111,38);
teachings_on.src = "images/teachings_on.gif";
teachings_off = new Image(111,38);
teachings_off.src = "images/teachings_off.gif";

library_on = new Image(111,38);
library_on.src = "images/library_on.gif";
library_off = new Image(111,38);
library_off.src = "images/library_off.gif";

}

function rollover(imgDocID,imgObjName) {
        if (document.images) {
        document.images[imgDocID].src = eval(imgObjName + ".src");
}}

pic_width=195;   
pic_height=64;  
border_size=0; 

if (document.images)
 {
     pic1= new Image(pic_width,pic_height);
     pic1.src="images/1.gif";  
     pic2= new Image(pic_width,pic_height); 
     pic2.src="images/2.gif"; 
     pic3= new Image(pic_width,pic_height);
     pic3.src="images/3.gif";  
     pic4= new Image(pic_width,pic_height);
     pic4.src="images/4.gif";  
     pic5= new Image(pic_width,pic_height);
     pic5.src="images/5.gif"; 
     pic6= new Image(pic_width,pic_height);
     pic6.src="images/6.gif";
     pic7= new Image(pic_width,pic_height);
     pic7.src="images/7.gif";
     pic8= new Image(pic_width,pic_height);
     pic8.src="images/8.gif";
     pic9= new Image(pic_width,pic_height);
     pic9.src="images/9.gif";
     pic10= new Image(pic_width,pic_height);
     pic10.src="images/10.gif";
     pic11= new Image(pic_width,pic_height);
     pic11.src="images/11.gif";
     pic12= new Image(pic_width,pic_height);
     pic12.src="images/12.gif";
     pic13= new Image(pic_width,pic_height);
     pic13.src="images/13.gif";
     pic14= new Image(pic_width,pic_height);
     pic14.src="images/14.gif";
     pic15= new Image(pic_width,pic_height);
     pic15.src="images/15.gif";
     pic16= new Image(pic_width,pic_height);
     pic16.src="images/16.gif";
     pic17= new Image(pic_width,pic_height);
     pic17.src="images/17.gif";
     pic18= new Image(pic_width,pic_height);
     pic18.src="images/18.gif";
     pic19= new Image(pic_width,pic_height);
     pic19.src="images/19.gif";
     pic20= new Image(pic_width,pic_height);
     pic20.src="images/20.gif";
     pic21= new Image(pic_width,pic_height);
     pic21.src="images/21.gif";
     pic22= new Image(pic_width,pic_height);
     pic22.src="images/22.gif";
     pic23= new Image(pic_width,pic_height);
     pic23.src="images/23.gif";
     pic24= new Image(pic_width,pic_height);
     pic24.src="images/24.gif";
     pic25= new Image(pic_width,pic_height);
     pic25.src="images/25.gif";
     pic26= new Image(pic_width,pic_height);
     pic26.src="images/26.gif";
     pic27= new Image(pic_width,pic_height);
     pic27.src="images/27.gif";
     pic28= new Image(pic_width,pic_height);
     pic28.src="images/28.gif";
     pic29= new Image(pic_width,pic_height);
     pic29.src="images/29.gif";
     pic30= new Image(pic_width,pic_height);
     pic30.src="images/30.gif";
     pic31= new Image(pic_width,pic_height);
     pic31.src="images/31.gif";
     pic32= new Image(pic_width,pic_height);
     pic32.src="images/32.gif";
     
 }    

function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_Image()
{
 if (document.images)
 {
  var choose_one= get_random(32);  
  choose_one--;

  var pics= new Array(32) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src; 
   pics[5]=pic6.src;
   pics[6]=pic7.src;
   pics[7]=pic8.src;
   pics[8]=pic9.src;
   pics[9]=pic10.src;
   pics[10]=pic11.src;
   pics[11]=pic12.src;
   pics[12]=pic13.src;
   pics[13]=pic14.src;
   pics[14]=pic15.src;
   pics[15]=pic16.src;
   pics[16]=pic17.src;
   pics[17]=pic18.src;
   pics[18]=pic19.src;
   pics[19]=pic20.src;
   pics[20]=pic21.src;
   pics[21]=pic22.src;
   pics[22]=pic23.src;
   pics[23]=pic24.src;
   pics[24]=pic25.src;
   pics[25]=pic26.src;
   pics[26]=pic27.src;
   pics[27]=pic28.src;
   pics[28]=pic29.src;
   pics[29]=pic30.src;
   pics[30]=pic31.src;
   pics[31]=pic32.src;

  document.write("<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>");
 }
}

function popup(url) {
    noteWindow = window.open(url, "noteWindowlet", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=400");
}
// -->

