var i1 = new Image();
i1.src = 'images/ntb_06.jpg';
var i2 = new Image();
i2.src = 'images/ntb_08.jpg';
var i3 = new Image();
i3.src = 'images/ntb_10.jpg';
var i4 = new Image();
i4.src = 'images/ntb_12.jpg';
var i5 = new Image();
i5.src = 'images/ntb_14.jpg';
var i6 = new Image();
i6.src = 'images/ntb_16.jpg';
var ifac = new Image();
ifac.src = 'images/ntb_fac.jpg';
var inut = new Image();
inut.src = 'images/ntb_nut.jpg';

function mOver (pic) {
	document.images['img' + pic].src = 'images/ntb_' + pic + '.jpg';
}

function mOut (pic) {
	document.images['img' + pic].src = 'images/nt_' + pic + '.jpg';
}

function mOver2 (img, pic) {
	document.images[img].src = 'images/' + pic + '.jpg';
}

function mOver3 (img, pic) {
	document.images[img].src = 'images/' + pic + '.gif';
}

function newWindow(portfoliolrgcat) {
	portfoliolrgWindow = window.open(portfoliolrgcat,'portfoliolrgWin', 'width=600,height=550,scrollbars,resizable')
	portfoliolrgWindow.focus()
}

function popupDir (loc) {
	var newWin = window.open(loc, '', 'height=400,width=400,resizable,scrollbars')
	newWin.focus()
}

function fillForm () {
	d = document.form1;

	if(document.form1.same.checked==true) {
		d.shfirstName.value = d.firstName.value;
		d.shlastName.value = d.lastName.value;
		d.shaddress.value = d.address.value;
		d.shaddress2.value = d.address2.value;
		d.shcity.value = d.city.value;
		d.shstate.value = d.state.value;
		d.shzip.value = d.zip.value;
		d.shcountry.value = d.country.value;
	} else {
		d.shfirstName.value = '';
		d.shlastName.value = '';
		d.shaddress.value = '';
		d.shaddress2.value = '';
		d.shcity.value = '';
		d.shstate.value = '';
		d.shzip.value = '';
		d.shcountry.value = '';
	}
}

function popupPic (w, h, p, d) {
	var newWin = window.open('', '', 'width=' + (parseInt(w) + 40) + ',height=' + (parseInt(h) + 80) + ',left=10,top=10,scrollbars');
	newWin.document.write('<link rel="stylesheet" href="style.css" type="text/css">');
	newWin.document.write('<div align="center"><img src="' + d + '/' + p + '"><br><br>');
	newWin.document.write('<a href="javascript:self.close();">Close this window</a><br><br>');
}

