function setTall() {
	if ( document.getElementById ) {
		// the divs array contains references to each column's div element.  
		// Replace 'center' 'right' and 'left' with your own.  
		// Or remove the last one entirely if you've got 2 columns.  Or add another if you've got 4!
		var divs = new Array( 
			new Array( 
				new Array( document.getElementById('lhs'), document.getElementById('middle') )
			)
		);
		
		for (var i = 0; i < divs.length; i++) {
			// Let's determine the maximum height out of all columns specified
			var maxHeight = 0;
			for (var j = 0; j < divs[i][0].length; j++) {
				if (divs[i][0][j].offsetHeight > maxHeight) {
					maxHeight = divs[i][0][j].offsetHeight;
				}
			}

			// Let's set all columns to that maximum height
			for (var j = 0; j < divs[i][0].length; j++) {
				divs[i][divs[i].length-1][j].style.height = maxHeight + 'px';
				if (divs[i][0][j].offsetHeight > maxHeight) {
					divs[i][divs[i].length-1][j].style.height = ( parseInt(divs[i][divs[i].length-1][j].style.height) - (divs[i][0][j].offsetHeight - maxHeight)) + 'px';
				}
			}
		}
	}
}

function doBrandSearch() {
	path = '';
	var criteriaValue = document.getElementById('brand_value').value;
	if( criteriaValue != '' ){
		path = path + '%20Brand::' + criteriaValue + '/';
	}
	if( path != '' ){
		if( criteriaValue == 'Ray-Ban' ) {
			document.location = '/products/Sunglasses/' + path;
		} else {
			document.location = '/products/glasses/' + path;
		}
	} else {
		alert( "No brand was selected" );
	}
}


function addToFavourites() {
	var url = location.href;
	var who = document.title;
	
	var ver = navigator.appName;
	var num = parseInt(navigator.appVersion);
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
		window.external.AddFavorite( url, who );
	} else {
		alert('Press Ctrl+D to Bookmark');
	} 
}