
///////////////////////////////////////////////////////////////////////
// JavaScript Utilies
// Written for Rawwater Web site
// 
// (C) Q-ten 2001  
///////////////////////////////////////////////////////////////////////



var preloadFlag = false;
function preloadImages() {
if (document.images)  {
	// next load images
	
	
	//	servover=new Image();
	//	servover.src = '../images/b_serv_over.gif';
	//	servout=new Image();
	//	servout.src = '../images/b_serv_off.gif';
		
		
		preloadFlag = true;

		}
}

// functions that do MouseOvers and MouseOut calls

function rollovers(imName,imSource) {
		if (document.images && (preloadFlag == true)) {
		document[imName].src=eval(imSource + ".src");
	}
}


	
function doubleroll(oneName,oneSource,twoName,twoSource) {
		if (document.images && (preloadFlag == true)) {
		document[oneName].src=eval(oneSource + ".src");
		document[twoName].src=eval(twoSource + ".src");
		}
	}

// the search function


function searchit(){

// first pick up the search string from a prompt window

searchstring = window.prompt('please enter string to search', 'enter here');

// then check there is something worth searching

	if (searchstring) {
		if (searchstring != 'enter here')  {
		document.goFind.theString.value = searchstring;
		document.goFind.submit();
		
				}
		}
}


// the resource window opener
function resources(resourceURL) {
		var windowName = 'resources';
		var popup = window.open(resourceURL,windowName,'toolbar=0,scrollbars=yes,location=0,directories=0,status=1,menubar=0,alwaysRaised=1,resizable=1,width=540,height=470,screenX=50,screenY=50');	
 
// set the opener if it's not already set.  it's set automatically	
// in netscape 3.0+ and ie 3.0+.	
	if( navigator.appName.substring(0,8) == "Netscape" )	{		
		popup.location = resourceURL;		popup.opener = self;	}
	
		}

// the resource window opener
function information(resourceURL,infoheight,infowidth) {
		var windowName = 'resources';
		var windowInfo = 'toolbar=0,scrollbars=yes,location=0,directories=0,status=1,menubar=0,alwaysRaised=1,resizable=1,width=' + infowidth + ',height=' + infoheight + ',screenX=50,screenY=50';
		var popup = window.open(resourceURL,windowName,windowInfo);	
 
// set the opener if it's not already set.  it's set automatically	
// in netscape 3.0+ and ie 3.0+.	
	if( navigator.appName.substring(0,8) == "Netscape" )	{		
		popup.location = resourceURL;		popup.opener = self;	}
	
		}

// the diary window opener - should combine all three - but need to track usage through site.
function openfixedwin(resourceURL,infoheight,infowidth, windowName) {
		
		var windowInfo = 'toolbar=0,scrollbars=yes,location=0,directories=0,status=1,menubar=0,alwaysRaised=1,resizable=0, width=' + infowidth + ',height=' + infoheight + ',screenX=50,screenY=50';
		var popup = window.open(resourceURL,windowName,windowInfo);	
 
// set the opener if it's not already set.  it's set automatically	
// in netscape 3.0+ and ie 3.0+.	
	if( navigator.appName.substring(0,8) == "Netscape" )	{		
		popup.location = resourceURL;		popup.opener = self;	}
	
		}
		
		

	


