<!--
function myopen(filename,windowname,properties) {
	mywindow = window.open(filename,windowname,properties);
}
function activate() {
	thenumber = document.theform.thepulldown.selectedIndex;
	changeto = document.theform.thepulldown.options[thenumber].value;

	if (changeto == "gonowhere") {
		// do nothing
	} else {
		window.open(changeto,target="main_frame");
	}
}

function automatic() {
	thenumber = document.theform.thepulldown.selectedIndex;
	changeto = document.theform.thepulldown.options[thenumber].value;

	if (changeto == "gonowhere") {
		// do nothing
	} else {
		window.open(changeto,target="main_frame");
	}

}

function backtonorm() {
	var uagent = navigator.userAgent;

	if(uagent.indexOf('Mac',0) > -1) {
		window.scroll(0,0);
	}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}

var seconds = 2;
var doyouwantitrandom = 0;
seconds *= 1000;

var image_index = 0;
arrayofimages = new Array();

arrayofimages[image_index++] = new uniqueimage("assets/reen_machine_26_b.gif");
arrayofimages[image_index++] = new uniqueimage("assets/reen_machine_26_a.gif");
arrayofimages[image_index++] = new uniqueimage("assets/reen_machine_26.gif");

var number_of_image = arrayofimages.length;

function uniqueimage(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 (doyouwantitrandom) {
	image_index = generate(0, number_of_image-1);
	}
	else {
		image_index = (image_index+1) % number_of_image;
	}

	var new_image = get_ImageItemLocation(arrayofimages[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, seconds);
	}

/*  
Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
Script featured at SimplytheBest.net http://simplythebest.net/scripts/
*/

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
document.onselectstart = new Function("return true");

// -->
