
window.onload = resizeIfOdd;
window.onresize = forceEvenWidth;

function resizeIfOdd(){
	if(navigator.userAgent.indexOf('Firefox/3') != -1 || navigator.userAgent.indexOf('WebKit') != -1)
		if(document.documentElement.clientWidth % 2 == 1)
			window.resizeBy(-1,0);};

function forceEvenWidth(){
 window.setTimeout('resizeIfOdd()',5);
};


var quote_over = new Image();
quote_over.src = "images/request_quote_over.jpg";

var evaluation_over = new Image();
evaluation_over.src = "images/job_shop_evaluation_over.jpg";

var made_ny_over = new Image();
evaluation_over.src = "images/made_ny/sidebar_over.jpg";

var installation_over = new Image();
installation_over.src = "images/installation/sidebar_over.jpg";

var gallery_over = new Image();
installation_over.src = "images/image_gallery_over.jpg.jpg";

function made_ny() {
	myWindow = window.open("made_ny.html", "made_in_new_york", "height=450,width=675,directories=0,scrolling=0,resizable=0,status=0,titlebar=0,titlebar=0,toolbar=0");
}

function installation() {
	myWindow = window.open("installations.html", "installation_locations", "height=550,width=675,directories=0,scrolling=0,resizable=0,status=0,titlebar=0,titlebar=0,toolbar=0");
}

function contact(page) {
	page = page + ".html";
	var myWindow=window.open(page,"Contact","height=550,width=675,directories=0,scrolling=0,resizable=0,status=0,titlebar=0,titlebar=0,toolbar=0");
	return;
}

function product_gallery() {
	page = "image_gallery.html";
	var myWindow=window.open(page,"Product_Gallery","height=650,width=540,directories=0,scrolling=0,resizable=0,status=0,titlebar=0,titlebar=0,toolbar=0");
}

function main_image(image_path) {
	gallery_image = new Image();
	gallery_image.src = image_path;
	next_image = new Image();
	document.writeln('<div class="image_wrapper"><img src="' + gallery_image.src  + '" id="main_image" width="' + gallery_image.width + '" height="' + gallery_image.height + '" alt="' + gallery_image.src + '" /></div>');
	document.writeln('<div id="controls" align="center">');
}
