/* Start Image Rotation */
		var interval = 15; // delay between rotating images (in seconds)
		var random_display = 1; // 0 = no, 1 = yes
		interval *= 1000;

		var image_index = 0;
		image_list = new Array();
		image_list[image_index++] = new imageItem("images/topimage/01.jpg");
		image_list[image_index++] = new imageItem("images/topimage/02.jpg");
		image_list[image_index++] = new imageItem("images/topimage/03.jpg");
		image_list[image_index++] = new imageItem("images/topimage/04.jpg");
		image_list[image_index++] = new imageItem("images/topimage/05.jpg");
		image_list[image_index++] = new imageItem("images/topimage/06.jpg");
		image_list[image_index++] = new imageItem("images/topimage/07.jpg");
		image_list[image_index++] = new imageItem("images/topimage/08.jpg");
		image_list[image_index++] = new imageItem("images/topimage/09.jpg");
		image_list[image_index++] = new imageItem("images/topimage/10.jpg");
		var number_of_image = image_list.length;
		function imageItem(image_location) {
		this.image_item = new Image();
		this.image_item.src = image_location;
		}
		function get_ImageItemLocation(imageObj) {
		return(imageObj.image_item.src)
		}
		function generate(x, y) {
		var range = y - x + 1;
		return Math.floor(Math.random() * range) + x;
		}
		function getNextImage() {
		if (random_display) {
		image_index = generate(0, number_of_image-1);
		}
		else {
		image_index = (image_index+1) % number_of_image;
		}
		var new_image = get_ImageItemLocation(image_list[image_index]);
		return(new_image);
		}
		function rotateImage(place) {
		var new_image = getNextImage();
		document[place].src = new_image;
		var recur_call = "rotateImage('"+place+"')";
		setTimeout(recur_call, interval);
		}
		
/* End Image Rotation */

function formhandler1() { 
  var URL = document.form.URL1.options[document.form.URL1.selectedIndex].value;
  window.open(URL,'','width=750,height=400');
} 

function formhandler2() { 
  var URL = document.form.URL2.options[document.form.URL2.selectedIndex].value;
  window.open(URL,'','width=750,height=400');
} 

function formhandler3() { 
  var URL = document.form.URL3.options[document.form.URL3.selectedIndex].value;
  window.open(URL,'','width=750,height=400');
} 

function formhandler4() { 
  var URL = document.form.URL4.options[document.form.URL4.selectedIndex].value;
  window.open(URL,'','width=750,height=400');
} 

function formhandler5() { 
  var URL = document.form.URL5.options[document.form.URL5.selectedIndex].value;
  window.open(URL,'','width=750,height=400');
} 
function formhandler6() { 
  var URL = document.form.URL6.options[document.form.URL6.selectedIndex].value;
  window.open(URL,'','width=750,height=400');
} 

function formhandler7() { 
  var URL = document.form.URL7.options[document.form.URL7.selectedIndex].value;
  window.open(URL,'','width=750,height=400');
}

function popup(location_href) {
  F = window.open("offsite.php?loc="+location_href,"popup","width=400,height=300");
  return false;
}
function f_open_window_max( aURL, aWinName )
{
   var wOpen;
   var sOptions;


   sOptions = 'directories=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,toolbar=yes';
   sOptions = sOptions + ',width=' + (screen.availWidth - 10).toString();
   sOptions = sOptions + ',height=' + (screen.availHeight - 122).toString();
   sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';

   wOpen = window.open( '', aWinName, sOptions );
   wOpen.location = aURL;
   wOpen.focus();
   wOpen.moveTo( 0, 0 );
   wOpen.resizeTo( screen.availWidth, screen.availHeight );
   return wOpen;
}

 



