/*  You can get this script and many others 
    by visiting JavaScript City at: http://www.javascriptcity.com . */

pic_width_1=320;   /*change to match the height of all your images */
pic_height_1=230;   /* change to match the width of all your images */
border_size_1=0;   /* change to the border size you want on the images */
alignment_1=1;      /* 0=left,1=center */

/* define image urls */

if (document.images)
 {
     pic1a= new Image(pic_width_1,pic_height_1);
     pic1a.src="images/tagline_main_0.gif";  
     pic2a= new Image(pic_width_1,pic_height_1);
     pic2a.src="images/tagline_main_1.gif";
	 pic3a= new Image(pic_width_1,pic_height_1);
     pic3a.src="images/tagline_main_2.gif";
	 pic4a= new Image(pic_width_1,pic_height_1);
     pic4a.src="images/tagline_main_3.gif";
}    

/* define banner urls */

urlad1="";
urlad2="";
urlad3="";

/* no need to edit past this point (unless you want to add more image and url slots) */

if (alignment==1)
 {
  cent_it="<CENTER>";
  cent_it2="<\/CENTER>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }
 
function get_random_1(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_1()
{
 if (document.images)
 {
  var choose_one= get_random_1(4);  
  choose_one--;

  var pics= new Array(4) 
   pics[0]=pic1a.src;
   pics[1]=pic2a.src;
   pics[2]=pic3a.src;
   pics[3]=pic4a.src;


  var aurl= new Array(0)
  aurl[0]=urlad1;
  aurl[1]=urlad2;
  aurl[2]=urlad3;

  document.write(cent_it+"<IMG SRC='"+pics[choose_one]+"' width='"+pic_width_1+"' height='"+pic_height_1+"' border='"+border_size_1+"'>"+cent_it2);
 }
}
