/* Start Image Rotation */
		var interval = 5; // delay between rotating images (in seconds)
		var random_display = 1; // 1 = no, 0 = yes
		interval *= 1000;

		var image_index = 0;
		image_list = new Array();
		image_list[image_index++] = new imageItem("images/samples/sample_01.jpg");
		image_list[image_index++] = new imageItem("images/samples/sample_02.jpg");
		image_list[image_index++] = new imageItem("images/samples/sample_03.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 */


/* window pop*/

function imagery()
	{
window.open('http://www.imageryadv.com/','','width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
	}
function wm()
	{
window.open('http://www.microsoft.com/windows/windowsmedia/download/default.asp','','width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
	}
function flash()
	{
window.open('http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','','width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
	}
function adkins()
	{
window.open('media/promos/adkins.html','','width=370,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
	}




	
function formhandler() { 
  var URL = document.form.URL.options[document.form.URL.selectedIndex].value;
  window.open(URL,'','width=370,height=480');
} 

function formhandler2() { 
  var URL = document.form.URL2.options[document.form.URL2.selectedIndex].value;
  window.open(URL,'','width=482,height=480');
} 

function formhandler3() { 
  var URL = document.form.URL3.options[document.form.URL3.selectedIndex].value;
  window.open(URL,'','width=482,height=480');
} 

function formhandler4() { 
  var URL = document.form.URL4.options[document.form.URL4.selectedIndex].value;
  window.open(URL,'','width=482,height=480');
} 

function formhandler5() { 
  var URL = document.form.URL5.options[document.form.URL5.selectedIndex].value;
  window.open(URL,'','width=370,height=480');
} 	