<!-- hide from non-JavaScript browsers    
// Netscape 3.0 compatibility test (for javascript image swapping)
compat = false;
if( parseInt( navigator.appVersion ) >= 3 ) { compat = true; }
// cache images for quick swapping
if( compat )
{

menu_home_on = new Image;
menu_home_on.src = "images/menu_home_on.gif";
menu_home_off = new Image;
menu_home_off.src = "images/menu_home_off.gif";

menu_about_on = new Image;
menu_about_on.src = "images/menu_about_on.gif";
menu_about_off = new Image;
menu_about_off.src = "images/menu_about_off.gif";

menu_services_on = new Image;
menu_services_on.src = "images/menu_services_on.gif";
menu_services_off = new Image;
menu_services_off.src = "images/menu_services_off.gif";

menu_products_on = new Image;
menu_products_on.src = "images/menu_products_on.gif";
menu_products_off = new Image;
menu_products_off.src = "images/menu_products_off.gif";

menu_downloads_on = new Image;
menu_downloads_on.src = "images/menu_downloads_on.gif";
menu_downloads_off = new Image;
menu_downloads_off.src = "images/menu_downloads_off.gif";

menu_contact_on = new Image;
menu_contact_on.src = "images/menu_contact_on.gif";
menu_contact_off = new Image;
menu_contact_off.src = "images/menu_contact_off.gif";

menu2_design_on = new Image;
menu2_design_on.src = "images/menu2_design_on.gif";
menu2_design_off = new Image;
menu2_design_off.src = "images/menu2_design_off.gif";

menu2_printing_on = new Image;
menu2_printing_on.src = "images/menu2_printing_on.gif";
menu2_printing_off = new Image;
menu2_printing_off.src = "images/menu2_printing_off.gif";

menu2_fulfillment_on = new Image;
menu2_fulfillment_on.src = "images/menu2_fulfillment_on.gif";
menu2_fulfillment_off = new Image;
menu2_fulfillment_off.src = "images/menu2_fulfillment_off.gif";

menu2_survey_on = new Image;
menu2_survey_on.src = "images/menu2_survey_on.gif";
menu2_survey_off = new Image;
menu2_survey_off.src = "images/menu2_survey_off.gif";

menu2_scanning_on = new Image;
menu2_scanning_on.src = "images/menu2_scanning_on.gif";
menu2_scanning_off = new Image;
menu2_scanning_off.src = "images/menu2_scanning_off.gif";

menu2_reporting_on = new Image;
menu2_reporting_on.src = "images/menu2_reporting_on.gif";
menu2_reporting_off = new Image;
menu2_reporting_off.src = "images/menu2_reporting_off.gif";

menu2_software_on = new Image;
menu2_software_on.src = "images/menu2_software_on.gif";
menu2_software_off = new Image;
menu2_software_off.src = "images/menu2_software_off.gif";

menu2_technical_on = new Image;
menu2_technical_on.src = "images/menu2_technical_on.gif";
menu2_technical_off = new Image;
menu2_technical_off.src = "images/menu2_technical_off.gif";


}

// generic image swap function
function doSwapGen(x, y)
{
   if( compat ) { 
    document.images[x].src=eval(y+'.src'); 
   }
}

//Declare global variables
var imgWindow

function makeImgWindow(imgName,heading) {
	// Assemble content for the new window.
	content = "<html> <head> <title> Survey Systems, Inc. - Form Sample </title><link rel=STYLESHEET type=text/css href=htmlf/style.css></head>"
	content += "<body>  <p align=right> <a href='javascript:opener.closeImgWindow()' class=phone>Close this window</a><br></p>"
	content += " <center><img src='images/" + imgName + "' name='sample' border='0'> </center>"
	content += "</body> </html>"

	// If imgWindow does not exist or is closed, define imgWindow as a new window.
	if(!imgWindow || imgWindow.closed) {
		imgWindow = window.open("","","width=525,height=700,scrollbars=yes")
	} 
	else {
		// If the imgWindow already exists, bring it to the front.
		imgWindow.focus()
	}
	// Write the content to the new window.
	imgWindow.document.write(content)
	// End writing content.
	imgWindow.document.close()
}

// This function closes the new window.
function closeImgWindow() {
	// Close imgWindow
	imgWindow.close()

	// Bring the opener of imgWindow to the front.
	imgWindow.opener.focus()
}

// -->

