<!-- Begin Javascript
// MY SCRIPTS
// Use this area to add new scripts that you need for your site
<!--PopUp
function openPopup(url,h,w) {
    var wint = (screen.height - h) / 2;
    var winl = (screen.width - w) / 2;
    popupWin = window.open(url,"castWin",'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=1,scrollbars=1,top='+wint+',screenY='+wint+',left='+winl+',screenX='+winl+',width='+w+',innerWidth='+w+',height='+h+',innerHeight='+h);
}

//#######################################
//Random Image script usage
//#######################################
//Usage Instructions
//Step 1: Populate the image array named arrayImg with the desired information
//Step 2: Link to this file from the head of the calling html document
//Step 3: Insert the setFunctions in the desired location of the html document
//
//Calling Example
//<script language="JavaScript" type="text/javascript">setImg();</script>
//#######################################
 
//#######################################
//Array variables
var i = 0;
var min = 1;
var max = 9;
var arrayImg = new Array(max);
//#######################################
 
//#######################################
//Image array data
arrayImg[1] = new Array(8);
arrayImg[1]['Img'] = '/images/photogallery/frontpage/fp001.jpg';
arrayImg[1]['Text1'] = '<br>Senator Joseph Biden and Delaware Secretary of State Harriet Smith Windsor';
arrayImg[1]['Text2'] = '<br><br>Groundbreaking Ceremony';
arrayImg[1]['PhotoBy'] = '';
arrayImg[1]['URL'] = '/photo/index.shtml';
arrayImg[1]['Width'] = '240';
arrayImg[1]['Height'] = '180';
arrayImg[1]['Alt'] = 'Photo: Senator Joseph Biden and Delaware Secretary of State Harriet Smith Windsor';
//----------------------------------------------------------------------------
arrayImg[2] = new Array(8);
arrayImg[2]['Img'] = '/images/photogallery/frontpage/fp002.jpg';
arrayImg[2]['Text1'] = '<br>Air Force Honor Guard';
arrayImg[2]['Text2'] = '<br><br>Groundbreaking Ceremony';
arrayImg[2]['PhotoBy'] = '';
arrayImg[2]['URL'] = '/photo/index.shtml';
arrayImg[2]['Width'] = '240';
arrayImg[2]['Height'] = '210';
arrayImg[2]['Alt'] = 'Photo: Air Force Honor Guard';
//----------------------------------------------------------------------------
arrayImg[3] = new Array(8);
arrayImg[3]['Img'] = '/images/photogallery/frontpage/fp003.jpg';
arrayImg[3]['Text1'] = '<br>Main Building Framework';
arrayImg[3]['Text2'] = '<br><br>Veterans Home';
arrayImg[3]['PhotoBy'] = '';
arrayImg[3]['URL'] = '/photo/page2.shtml';
arrayImg[3]['Width'] = '240';
arrayImg[3]['Height'] = '144';
arrayImg[3]['Alt'] = 'Photo: Main Building Framework';
//----------------------------------------------------------------------------
arrayImg[4] = new Array(8);
arrayImg[4]['Img'] = '/images/photogallery/frontpage/fp004.jpg';
arrayImg[4]['Text1'] = '<br>Miles of Piping Overhead!';
arrayImg[4]['Text2'] = '<br><br>Veterans Home';
arrayImg[4]['PhotoBy'] = '';
arrayImg[4]['URL'] = '/photo/page4.shtml';
arrayImg[4]['Width'] = '240';
arrayImg[4]['Height'] = '180';
arrayImg[4]['Alt'] = 'Photo: Miles of piping overhead!';
//---------------------------------------------------------------------------
arrayImg[5] = new Array(8);
arrayImg[5]['Img'] = '/images/photogallery/frontpage/fp005.jpg';
arrayImg[5]['Text1'] = '<br>Governor Ruth Ann Minner';
arrayImg[5]['Text2'] = '<br><br>Groundbreaking Ceremony';
arrayImg[5]['PhotoBy'] = '';
arrayImg[5]['URL'] = '/photo/page3.shtml';
arrayImg[5]['Width'] = '240';
arrayImg[5]['Height'] = '177';
arrayImg[5]['Alt'] = 'Photo: Governor Ruth Ann Minner';
//---------------------------------------------------------------------------
arrayImg[6] = new Array(8);
arrayImg[6]['Img'] = '/images/photogallery/frontpage/fp006.jpg';
arrayImg[6]['Text1'] = '<br>Welcome Sign';
arrayImg[6]['Text2'] = '<br><br>Veterans Home Construction Site';
arrayImg[6]['PhotoBy'] = '';
arrayImg[6]['URL'] = '/photo/index.shtml';
arrayImg[6]['Width'] = '240';
arrayImg[6]['Height'] = '180';
arrayImg[6]['Alt'] = 'Photo: Welcome Sign at the Delaware Veterans Home Construction Site';
//---------------------------------------------------------------------------
arrayImg[7] = new Array(8);
arrayImg[7]['Img'] = '/images/photogallery/frontpage/fp007.jpg';
arrayImg[7]['Text1'] = '<br>Governor Ruth Ann Minner Joined by Other Federal and State Officials';
arrayImg[7]['Text2'] = '<br><br>Groundbreaking Ceremony';
arrayImg[7]['PhotoBy'] = '';
arrayImg[7]['URL'] = '/photo/page3.shtml';
arrayImg[7]['Width'] = '240';
arrayImg[7]['Height'] = '180';
arrayImg[7]['Alt'] = 'Photo: Governor Ruth Ann Minner and Other Federal and State Officials at the Groundbreaking Ceremony';
//---------------------------------------------------------------------------
arrayImg[8] = new Array(8);
arrayImg[8]['Img'] = '/images/photogallery/frontpage/fp008.jpg';
arrayImg[8]['Text1'] = '<br>Front Porch Going Up';
arrayImg[8]['Text2'] = '';
arrayImg[8]['PhotoBy'] = '';
arrayImg[8]['URL'] = '/photo/page3.shtml';
arrayImg[8]['Width'] = '240';
arrayImg[8]['Height'] = '180';
arrayImg[8]['Alt'] = 'Photo: Front porch going up';
//---------------------------------------------------------------------------
arrayImg[9] = new Array(8);
arrayImg[9]['Img'] = '/images/photogallery/frontpage/fp009.jpg';
arrayImg[9]['Text1'] = '<br>Delaware Secretary of State Harriet Smith Windsor';
arrayImg[9]['Text2'] = '<br><br>Veterans Home Tour';
arrayImg[9]['PhotoBy'] = '';
arrayImg[9]['URL'] = '/photo/page2.shtml#';
arrayImg[9]['Width'] = '240';
arrayImg[9]['Height'] = '150';
arrayImg[9]['Alt'] = 'Photo: Touring the Facility';
 
//#######################################
//randomizer
  var range = max - min + 1;
  i = Math.floor(Math.random() * range)+1;
//#######################################
 
//#######################################
//get functions
function setImg(){
  document.write('<img src="' + arrayImg[i]['Img'] + '" width="' + arrayImg[i]['Width'] + '" height="' + arrayImg[i]['Height'] + '" alt="' + arrayImg[i]['Alt'] + '">');
}
function setImgURL(){
  document.write('<a href="'+arrayImg[i]['URL']+'"><img src="' + arrayImg[i]['Img'] + '" width="' + arrayImg[i]['Width'] + '" height="' + arrayImg[i]['Height'] + '" border="0" alt="' + arrayImg[i]['Alt'] + '"></a>');
}
function setText(){
  document.write(arrayImg[i]['Text']);
}
function setTextURL(){
  if(arrayImg[i]['Text2']!=''){
  document.write('<a href="'+arrayImg[i]['URL']+'">'+arrayImg[i]['Text1']+'</a> '+arrayImg[i]['Text2']);
  }else{
  document.write('<a href="'+arrayImg[i]['URL']+'">'+arrayImg[i]['Text1']+'</a>');
 }
}
function setURL(){
  document.write(arrayImg[i]['URL']);
}
function setPhotoBy(){
  document.write(arrayImg[i]['PhotoBy']);
}
//#######################################
 

// End Javascript -->
