// SWIM Website Javascripts // www.swimuu.org// permission granted to copy without modifications with the following notice:// (c)2004 Pepi Acebo, Oatmeal Advertising & Design // www.myoatmeal.comvar preloadFlag = false;var objdir = "i/"var objarray=[]function newImage( myuri ) {	if (document.images) {		im = new Image();		im.src = myuri;		return im;	}}function ciany() {	// example: <a href="/" onmouseover="ciany('image_name','i/other_name_over.gif');"><img name="image_name" src="i/image_name.gif></a>	// a very flexible "change image" Javascript:	// any even number of arguments	// odd items are name or id of image	// even items are the replacement uri	if (document.images && (preloadFlag == true)) {		for (var i=0; i<ciany.arguments.length; i+=2) {			document[ciany.arguments[i]].src = ciany.arguments[i+1];		}	}	return true;}function ci() {	// example: <a href="/" onmouseover="ci('image_name','_over');"><img name="image_name" src="i/image_name.gif></a>	// a very concise gif-only "change image" Javascript:	// any even number of arguments	// odd items are name or id of image and the first part of the gif image name	// even items are the remainder of the replacement uri without .gif extension	// .gif extension is assumed	// var objdir defines image and object directory	if (document.images && (preloadFlag == true)) {		for (var i=0; i<ci.arguments.length; i+=2) {			document[ci.arguments[i]].src = objdir+[ci.arguments[i]]+[ci.arguments[i+1]]+".gif";		}	}	return true;}function refresh() {	history.back();	history.forward();	return true;}function setdir( mydir ) {	objdir=mydir; }function preloadim() {	// this function doesn't process arguments	// any images to be preloaded must be hard-coded (typed in) below 	if (document.images) {		icon_01_down = newImage( objdir + "icon_01_down.gif" );		icon_02_down = newImage( objdir + "icon_02_down.gif" );		icon_03_down = newImage( objdir + "icon_03_down.gif" );		icon_04_down = newImage( objdir + "icon_04_down.gif" );		icon_05_down = newImage( objdir + "icon_05_down.gif" );		icon_06_down = newImage( objdir + "icon_06_down.gif" );		menu_open_down = newImage( objdir + "menu_open_down.gif" );		menu_close_down = newImage( objdir + "menu_close_down.gif");		eec_bkgd_menu_off = newImage( objdir + "eec_bkgd_menu_off.gif" );		eec_bkgd_menu = newImage( objdir + "eec_bkgd_menu.gif" );		preloadFlag = true;	}}function preloadem() {	// this function preloads valid image uri arguments and calls preloadim()	preloadim()	if (document.images) {		for (var i=0; i<preloadem.arguments.length; i+=1) {			objarray=objarray + newImage( objdir + [preloadem.arguments[i]] );		}		preloadFlag = true;	}}function clearstatusbar() {	window.status=" "; 	return true;}function setstatusbar( mystatus ) {	window.status=mystatus; 	return true;}function myPopWindow() {	// file, width, height, left, top -- argument order		// top	if ( myPopWindow.arguments.length > 4) {		tt = myPopWindow.arguments[4]	} else {		tt = 100	}		// left	if ( myPopWindow.arguments.length > 3) {		ll = myPopWindow.arguments[3]	} else {		ll = 100	}		// height	if ( myPopWindow.arguments.length > 2) {		hh = myPopWindow.arguments[2]	} else {		hh = 360	}		// width	if ( myPopWindow.arguments.length > 1) {		ww = myPopWindow.arguments[1]	} else {		ww = 480	}		// file	if ( myPopWindow.arguments.length > 0) {		ff = myPopWindow.arguments[0]	} else {		ff = ""	}		myRef = window.open(ff, null, "height=" + hh + ", width=" + ww + 	", toolbar=no, location=no, directories=no, status=no, menubar=no," +	"resizable=yes, scrollbars=no, left=" + ll + ", top=" + tt );		return myRef;}