function makeWin (imsrc, ww, wh) {
	ww = ww + 25;
	wh = wh + 50;
	var w1 = window.open('','w1','width='+ww+',height='+wh+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');
	w1.document.open();
	w1.document.write("<html><head><title>Image Zoom<\/title><META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\"><META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\"><\/head>");
	w1.document.write("<body bgcolor='#FFFFFF' text='#000000' leftmargin=2 topmargin=10><p align=center>");
	w1.document.write("<img name=theimg src=" + imsrc + "><br>");
	w1.document.write("<a href=\"javascript:window.close();\"><font size=1 face=tahoma color=#000000>close window<\/font><\/a><\/body><\/html>");
	w1.focus();
	return false;
}

$(function(){
	$.awpPaging({ /* v5 */
		'onDone'					: null,
		'itemsPerPage'				: 9,
		'numPageControls'			: 6,
		'showAllPagesControls'		: true,
		'progressTimeout'			: 400,
		'dataDef'					: [
			// id
			{	'sel'		: '.vwitem',
				'kind'		: 'value-attr'},
			// name
			{	'sel'		: '.name-link',
				'kind'		: 'html',
				'sort'		: 'alpha',
				'name'		: 'name'},
			// new icon
			{	'sel'		: '.name-new',
				'kind'		: 'html'},
			// description
			{	'sel'		: '.detail',
				'kind'		: 'html'},
			// price
			{	'sel'		: '.price',
				'kind'		: 'html'},
			// url
			{	'sel'		: '.name-link, .image-link',
				'kind'		: 'href-attr'},
			// image url
			{	'sel'		: '.image img',
				'kind'		: 'src-attr'},
			// code
			{	'sel'		: '.code .value',
				'kind'		: 'text'},
			// availability message
			{	'sel'		: '.availability',
				'kind'		: 'html'},
			// out-of-stock message
			{	'sel'		: '.outofstock',
				'kind'		: 'html'},
			// price sort
			{	'sel'		: '',
				'kind'		: 'none',
				'sort'		: 'numeric',
				'name'		: 'price'}
		]
	});
});
