
function popup(thename) {
		window.open(thename, "", "width=415, height=415,scrollbars=0");
	}
	
function closeup(thename) {
		window.open(thename, "", "width=432, height=432,scrollbars=0");
	}
	
function american(thename) {
		window.open(thename, "", "width=500, height=350,scrollbars=0");
	}
	
function steelefalls(thename) {
		window.open(thename, "", "width=504, height=440,scrollbars=0");
	}

function carriage(thename, attributes) {
		window.open(thename, "", attributes);
	}
	
function glass(thename) {
		window.open(thename, "", "width=450, height=400,scrollbars=0");
	}
	
function feature(thename, attributes) {
		window.open(thename, "", attributes);
	}

function appLaunch() {
		window.open("http://www.raynor.com/design/design-a-door_dealer.cfm","DesignADoor","width=740,height=500,scrollbars=0");
	}
	
function resolution() {
		document.write("<input name='screenresolution' type='hidden' value='" + screen.width + "x" + screen.height + "' />");
	}
	
if (document.images) {
	var img = new Array();
	//enter images into the array
	img[0] = 'images/nav_home_0.gif';
	img[1] = 'images/nav_home_1.gif';
	img[2] = 'images/nav_history_0.gif';
	img[3] = 'images/nav_history_1.gif';
	img[4] = 'images/nav_why_0.gif';
	img[5] = 'images/nav_why_1.gif';
	img[6] = 'images/nav_gallery_0.gif';
	img[7] = 'images/nav_gallery_1.gif';
	img[8] = 'images/nav_residential_0.gif';
	img[9] = 'images/nav_residential_1.gif';
	img[10] = 'images/nav_commercial_0.gif';
	img[11] = 'images/nav_commercial_1.gif';
	img[12] = 'images/nav_wood_0.gif';
	img[13] = 'images/nav_wood_1.gif';
	img[14] = 'images/nav_carriage_0.gif';
	img[15] = 'images/nav_carriage_1.gif';
	img[16] = 'images/nav_service_0.gif';
	img[17] = 'images/nav_service_1.gif';
	img[18] = 'images/nav_rfq_0.gif';
	img[19] = 'images/nav_rfq_1.gif';
	img[20] = 'images/nav_rfs_0.gif';
	img[21] = 'images/nav_rfs_1.gif';
	img[22] = 'images/nav_locations_0.gif';
	img[23] = 'images/nav_locations_1.gif';
	img[24] = 'images/nav_design_0.gif';
	img[25] = 'images/nav_design_1.gif';
	img[26] = 'images/nav_testimonials_0.gif';
	img[27] = 'images/nav_testimonials_1.gif';
	img[28] = 'images/nav_contact_0.gif';
	img[29] = 'images/nav_contact_1.gif';
	
	var im = new Array();
	
	for (var i = 0; i < img.length; i++) {
		im[i] = new Image();
		im[i].src = img[i];	
	}
}

function toggleImg(imageName, num) {
	if (document.images) {
		document.images[imageName].src = im[num].src;
	}
}
    
