function swapImg(inImage, t){
	if (t == 1){
		if (inImage.src.indexOf('_on.gif') == -1) {
			inImage.src = inImage.src.slice(0,inImage.src.length-4) + '_on.gif';
		}
	}
	else {
		inImage.src = inImage.src.slice(0,inImage.src.length-7) + '.gif';
	}
}

function openWin(url, height, width) {
	var height = height;
	var width = width;
	var scroll = 0;
	var wleft = (screen.width - width-20) / 2;
	var wtop = (screen.height - height) / 2;
	window.open(url,'thewin','fullscreen=0,scrollbars='+scroll+',height='+height+',width='+width+',top='+wtop+',left='+wleft+'');
}
function openWin2(url, height, width, scroll) {
	var height = height;
	var width = width;
	var wleft = (screen.width - width-20) / 2;
	var wtop = (screen.height - height) / 2;
	window.open(url,'thewin','fullscreen=0,scrollbars='+scroll+',height='+height+',width='+width+',top='+wtop+',left='+wleft+'');
}
var navOpen = false;

function showNav(inSection){
	
	document.getElementById('subnav1').style.display = 'none';
	document.getElementById('subnav2').style.display = 'none';
	document.getElementById('subnav3').style.display = 'none';
	document.getElementById('subnav4').style.display = 'none';
	document.getElementById('subnav5').style.display = 'none';
	document.getElementById('subnav6').style.display = 'none';
	document.getElementById('subnav7').style.display = 'none';

	var sect = document.getElementById(inSection);
	sect.style.display = 'inline';
}
function swapImageColor(sku, prod_name){
	document.images['ProdImage'].src = '../prod_images/large/' + sku + '.jpg';
	ProdSku = sku; 
	ProdName = prod_name;
	document.getElementById('prodNameColor').innerHTML = ProdName;
}

function openProductLargeWindow(URL,WinName){
	NewWindow = window.open(URL,WinName,'scrollbars=yes,resizable=yes,toolbar=no,location=no,status=no,menubar=yes,width=540,height=425');
	NewWindow.focus();
}

function openSizeChartWindow(URL,WinName){
	NewWindow = window.open(URL,WinName,'scrollbars=yes,resizable=yes,toolbar=no,location=no,status=no,menubar=no,width=540,height=550')
	NewWindow.focus()
}