<!-- Hide from old browsers
window.console.log("Running code");
var imagenumber = 5 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array;
images[1] = "images/home1.jpg";
images[2] = "images/home2.jpg";
images[3] = "images/home3.jpg";
images[4] = "images/home4.jpg";
images[5] = "images/home5.jpg";
var image = images[rand1];

var Sweep_Youth = new Array("2-","2+","4-","4+","8+");
var Sweep_Junior = new Array("2-","2+","4-","4+","8+");
var Sweep_Senior = new Array("2-","2+","4-","4+","8+");
var Sweep_Master = new Array("2-","2+","4-","4+","8+");

var Sculling_Youth = new Array("1X","2X","4X");
var Sculling_Junior = new Array("1X","2X","4X");
var Sculling_Senior = new Array("1X","2X","4X");
var Sculling_Master = new Array("1X","2X","4X");

function swapOptions(the_array_name) { 	
	var numbers_select = window.document.the_form.the_examples; 	
	var the_array = eval(the_array_name); 	
	setOptionText(window.document.the_form.the_examples, the_array); }

function swapOptions2(the_array_name2) { 	
	var numbers_select = window.document.the_form2.the_examples2; 	
	var the_array2 = eval(the_array_name2); 	
	setOptionText2(window.document.the_form2.the_examples2, the_array2); }  
	function setOptionText(the_select, the_array) { 	for (loop=0; loop < the_select.options.length; loop++) 	{ 		the_select.options[loop].text = the_array[loop]; 	} }
function setOptionText2(the_select2, the_array2) { 	for (loop=0; loop < the_select2.options.length; loop++) 	{ 		the_select2.options[loop].text = the_array2[loop]; 	} }
function openwindow(theURL,winName,features) {   window.open(theURL,winName,features);}
function leapto(form,features) {  var prefix=form.choose_category.selectedIndex+1;  var leap_index=form.the_examples.selectedIndex;  
window.open(form.the_examples.options[leap_index].src="http://www.maxrigging.com/base/sweep"+[prefix]+"_"+[leap_index]+".html","_new","width=370 height=450"); }
function leapto2(form) {   var prefix2=form.choose_category2.selectedIndex+1;   var leap_index2=form.the_examples2.selectedIndex;   window.open(form.the_examples2.options[leap_index2].src="http://www.maxrigging.com/base/sculling"+[prefix2]+"_"+[leap_index2]+".html","_new","width=370 height=450"); }

function tippop (url,w,h,scroll,resize,center) {
if (center) {
var winPos = ',top='+((screen.height - h) / 2)+',left='+((screen.width - w) / 2);
}
var scrollArg = (scroll == false) ? '' : ',scrollbars=1';
var resizeArg = (resize == false) ? '' : ',resizable=1';
flyout = window.open (url,"newin"+scroll+resize+center,"width=" + w + ",height=" + h + scrollArg + resizeArg + winPos);
flyout.resizeTo(w,h);
flyout.focus();
}

// -- End Hiding Here -->
