//---------------------------------------------------------------------
function load_img(id, h, w)
{
	var l = (screen.width  - w)/2;
 	var t = (screen.height - h)/2;
	window.open('/img.php?img='+id, '', 'resizable=yes,scrollbars=yes,height='+h+',width='+w+',top='+t+',left='+l);
}
//---------------------------------------------------------------------
	hs.graphicsDir = '/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.75;

	// define the restraining box
	hs.useBox = true;
	hs.width = 640;
	hs.height = 480;

	// Add the controlbar
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: 1,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});


function SearchSubmit()
{
	url = '';
	if (document.getElementById('searchAll').checked)
		url = '/search/?text='+document.getElementById('searchText').value;
	else if (document.getElementById('searchProd').checked)
	{
		sel = document.getElementById('searchManuf');
		val = '';
		if (sel.selectedIndex > -1)
			val = sel.options[sel.selectedIndex].value
		url = '/selections/?price%5B0%5D='+document.getElementById('price0').value+
			'&price%5B1%5D='+document.getElementById('price1').value+
			'&manuf='+val+
			'&text='+document.getElementById('searchText').value;
	}
	if (url.length > 0)
		document.location.href = url;
	return false;

}

//---------------------------------------------------------------------

